/* Public campaigns stage.
   Portrait and landscape posters share one frame:
   the artwork is contained, never cropped or stretched. */

.cmp {
    --cmp-ink: #122830;
    --cmp-muted: #5c6b74;
    --cmp-blue: #06607f;
    --cmp-blue-deep: #04384a;
    --cmp-gold: #d4af37;
    --cmp-line: rgba(6, 96, 127, 0.14);
    --cmp-paper: #f3efe8;
    position: relative;
    padding: 64px 0 36px;
    background:
        radial-gradient(900px 320px at 0% 0%, rgba(6, 96, 127, 0.07), transparent 70%),
        radial-gradient(720px 280px at 100% 0%, rgba(212, 175, 55, 0.16), transparent 62%),
        #f7f5f2;
    color: var(--cmp-ink);
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

.cmp--archive {
    padding-top: 42px;
    padding-bottom: 72px;
}

.cmp__wrap {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.cmp__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.cmp__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--cmp-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cmp__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1f9d55;
    box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.55);
    animation: cmp-pulse 2.2s ease-out infinite;
}

.cmp h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--cmp-blue-deep) !important;
}

.cmp h2 span {
    color: #9a7420 !important;
}

.cmp__lead {
    max-width: 62ch;
    margin: 10px 0 0;
    color: var(--cmp-muted);
    font-size: 16px;
    line-height: 1.55;
}

.cmp__all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--cmp-line);
    background: #fff;
    color: var(--cmp-blue-deep) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cmp__all:hover,
.cmp__all:focus-visible {
    border-color: var(--cmp-gold);
    color: var(--cmp-blue);
    transform: translateY(-1px);
}

.cmp__card {
    display: grid;
    grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
    background: #fff;
    border: 1px solid var(--cmp-line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 40, 51, 0.07);
}

.cmp__card[data-orientation="landscape"] {
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.9fr);
}

.cmp__card[data-orientation="landscape"] .cmp__plinth {
    align-items: center;
}

.cmp__plinth {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
        var(--cmp-paper);
    border-right: 1px solid rgba(6, 96, 127, 0.08);
}

.cmp__poster {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.cmp__poster img,
.cmp__tile-poster img,
.cmp-lightbox__frame img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
}

.cmp__card[data-orientation="portrait"] .cmp__poster img {
    width: auto;
    max-height: min(680px, 78vh);
    border-radius: 4px;
    box-shadow: 0 22px 44px rgba(16, 40, 51, 0.18);
}

.cmp__card[data-orientation="landscape"] .cmp__poster img {
    width: 100%;
    max-height: 460px;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(16, 40, 51, 0.16);
}

.cmp__zoom {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) translateY(6px);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(4, 56, 74, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cmp__poster:hover .cmp__zoom,
.cmp__poster:focus-visible .cmp__zoom {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cmp__poster:focus-visible,
.cmp__btn:focus-visible,
.cmp__all:focus-visible,
.cmp__tile-poster:focus-visible,
.cmp-lightbox__close:focus-visible {
    outline: 3px solid var(--cmp-gold);
    outline-offset: 3px;
}

.cmp__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 36px 28px;
}

.cmp__meta,
.cmp__actions,
.cmp__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cmp__status,
.cmp__tax {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cmp__status--live,
.cmp__status--new {
    background: #e7f6ee;
    color: #0f7a3d;
}

.cmp__status--ending {
    background: #fff4df;
    color: #8a5a00;
}

.cmp__status--closed {
    background: #eef1f3;
    color: #5c6b74;
}

.cmp__tax {
    background: rgba(6, 96, 127, 0.08);
    color: var(--cmp-blue);
    letter-spacing: 0.06em;
}

.cmp__rule {
    width: 46px;
    height: 3px;
    margin: 16px 0 14px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--cmp-gold), var(--cmp-blue));
}

.cmp__copy h3,
.cmp__tile-copy h3 {
    margin: 0;
    color: var(--cmp-blue-deep) !important;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.cmp__urdu {
    margin: 10px 0 0;
    color: var(--cmp-blue);
    font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 2.35;
}

.cmp__summary,
.cmp__notice {
    margin: 12px 0 0;
    color: #314048;
    font-size: 15.5px;
    line-height: 1.6;
}

.cmp__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0 0;
}

.cmp__facts div {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f5f7f8;
}

.cmp__facts .is-wide {
    grid-column: 1 / -1;
}

.cmp__facts dt {
    margin: 0 0 3px;
    color: #6d7b83;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cmp__facts dd {
    margin: 0;
    color: var(--cmp-ink);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
}

.cmp__notice {
    padding-top: 2px;
}

.cmp__actions {
    margin-top: 18px;
}

.cmp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cmp__btn--gold {
    background: var(--cmp-gold) !important;
    color: #1a1a1a !important;
}

.cmp__btn--gold:hover,
.cmp__btn--gold:focus-visible {
    background: var(--cmp-blue) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.cmp__btn--line {
    background: #fff !important;
    border-color: rgba(6, 96, 127, 0.28);
    color: var(--cmp-blue-deep) !important;
}

.cmp__btn--line:hover,
.cmp__btn--line:focus-visible {
    border-color: var(--cmp-blue);
    color: var(--cmp-blue);
}

.cmp__contact {
    margin: 14px 0 0;
    color: var(--cmp-muted);
    font-size: 13.5px;
}

.cmp__contact a {
    color: var(--cmp-blue) !important;
    font-weight: 700;
    text-decoration: none;
}

.cmp__contact a:hover,
.cmp__contact a:focus-visible {
    text-decoration: underline;
}

.cmp__shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.cmp__tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--cmp-line);
    border-radius: 22px;
    overflow: hidden;
}

.cmp__tile-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    margin: 0;
    padding: 16px;
    border: 0;
    background: var(--cmp-paper);
    cursor: zoom-in;
}

.cmp__tile[data-orientation="portrait"] .cmp__tile-poster img {
    width: auto;
    max-height: 250px;
    box-shadow: 0 12px 28px rgba(16, 40, 51, 0.14);
}

.cmp__tile[data-orientation="landscape"] .cmp__tile-poster img {
    width: 100%;
    max-height: 160px;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(16, 40, 51, 0.12);
}

.cmp__tile-copy {
    padding: 14px 16px 16px;
}

.cmp__tile-copy h3 {
    margin-top: 8px;
    font-size: 1.05rem;
}

.cmp__tile-copy p {
    margin: 4px 0 0;
    color: var(--cmp-muted);
    font-size: 13px;
}

.cmp-lightbox[hidden] {
    display: none !important;
}

.cmp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cmp-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 18, 24, 0.84);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.cmp-lightbox__frame {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(960px, 100%);
    margin: 0;
}

.cmp-lightbox__frame img {
    max-height: calc(100vh - 132px);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.cmp-lightbox__close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--cmp-blue-deep);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cmp-lightbox figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: min(100%, 640px);
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
}

.cmp-lightbox figcaption a {
    color: var(--cmp-gold);
    font-weight: 700;
    text-decoration: none;
}

.cmp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

html.cmp-lock,
html.cmp-lock body {
    overflow: hidden;
}

@keyframes cmp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); }
}

@media (max-width: 980px) {
    .cmp__shelf {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .cmp {
        padding: 40px 0 20px;
    }

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

    .cmp__card,
    .cmp__card[data-orientation="landscape"] {
        grid-template-columns: 1fr;
    }

    .cmp__plinth {
        border-right: 0;
        border-bottom: 1px solid rgba(6, 96, 127, 0.08);
        padding: 18px 14px 16px;
    }

    .cmp__copy {
        padding: 22px 18px 20px;
    }

    .cmp__facts {
        grid-template-columns: 1fr;
    }

    .cmp__facts .is-wide {
        grid-column: auto;
    }

    .cmp__actions,
    .cmp__btn {
        width: 100%;
    }

    .cmp__shelf {
        grid-template-columns: 1fr;
    }

    .cmp-lightbox {
        padding: 12px;
    }

    .cmp-lightbox__close {
        top: 8px;
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmp__pulse {
        animation: none;
    }

    .cmp__all,
    .cmp__btn,
    .cmp__zoom {
        transition: none;
    }
}
