.public-notice-bar {
    background: #fff8e8;
    border-bottom: 1px solid #ecdcae;
    color: #6d5415;
}

.public-notice-bar.notice-emergency {
    background: #fff0ef;
    border-color: #f1c4bf;
    color: #8a261e;
}

.public-notice-bar.notice-important {
    background: #fff8e8;
}

.notice-inner {
    min-height: 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 12px;
}

.notice-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-copy strong {
    font-weight: 800;
}

.notice-copy span {
    opacity: .86;
}

.notice-inner > a {
    white-space: nowrap;
    font-weight: 800;
    text-decoration: underline;
}

.home-slider {
    position: relative;
    height: clamp(360px, 37.5vw, 720px);
    min-height: 360px;
    max-height: 720px;
    overflow: hidden;
    background: #12385f;
}

.slider-track {
    position: relative;
    height: 100%;
    min-height: inherit;
}

.home-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
    background: #12385f;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
    display: flex;
    align-items: center;
    color: #fff;
}

.home-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.home-slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-slide-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-slide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7,31,57,.64), rgba(7,31,57,.25) 58%, rgba(7,31,57,.12));
}

.slide-content {
    position: relative;
    z-index: 2;
    padding-block: 90px;
}

.home-slide-kps-logo {
    position: absolute;
    z-index: 3;
    top: 26px;
    left: 50%;
    width: 108px;
    height: 108px;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.20));
}

.home-slide h1 {
    max-width: 850px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.08;
    margin: 18px 0 8px;
}

.public-urdu .home-slide h1 {
    line-height: 1.6;
}

.slider-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(8,31,56,.36);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.slider-prev { left: 22px; }
.slider-next { right: 22px; }

.slider-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
}

.slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.48);
    cursor: pointer;
}

.slider-dots button.active {
    width: 28px;
    background: #fff;
}

.home-module-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 26px;
}

.home-module-head h2 {
    margin: 11px 0 0;
    color: var(--kps-navy);
    font-size: clamp(28px, 4vw, 43px);
    line-height: 1.15;
}

.public-urdu .home-module-head h2 {
    line-height: 1.7;
}

.module-view-all {
    color: var(--kps-navy);
    font-size: 12px;
    font-weight: 800;
    border-bottom: 1px solid #bccbdd;
    padding-bottom: 3px;
}

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

.public-news-card {
    background: #fff;
    border: 1px solid var(--kps-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(17,45,76,.055);
    transition: transform .18s ease, box-shadow .18s ease;
}

.public-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--kps-shadow);
}

.news-card-media {
    display: block;
    height: 215px;
    position: relative;
    overflow: hidden;
    background: #eef4fb;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.public-news-card:hover .news-card-media img {
    transform: scale(1.025);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top right, rgba(214,163,41,.15), transparent 38%),
        linear-gradient(135deg, #12385f, #1d567f);
    color: rgba(255,255,255,.74);
    font-weight: 800;
    font-size: 34px;
}

.featured-ribbon {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--kps-gold);
    color: #253547;
    font-size: 10px;
    font-weight: 800;
}

.news-card-body {
    padding: 17px 17px 19px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--kps-muted);
    font-size: 10px;
    margin-bottom: 8px;
}

.news-card-meta span:first-child {
    color: var(--kps-navy-2);
    font-weight: 700;
}

.news-card-body h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.38;
    color: var(--kps-navy);
}

.public-urdu .news-card-body h3 {
    font-size: 20px;
    line-height: 1.9;
}

.news-card-body p {
    margin: 0 0 12px;
    color: #607083;
    font-size: 12px;
    line-height: 1.7;
}

.public-urdu .news-card-body p {
    font-size: 14px;
    line-height: 2;
}

.read-more-link {
    color: var(--kps-navy);
    font-size: 11px;
    font-weight: 800;
}

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

.event-card {
    background: #fff;
    border: 1px solid var(--kps-line);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
}

.event-date-box {
    width: 64px;
    min-height: 67px;
    border-radius: 14px;
    background: #eef4fb;
    color: var(--kps-navy);
    display: grid;
    align-content: center;
    justify-items: center;
}

.event-date-box strong {
    font-size: 22px;
    line-height: 1;
}

.event-date-box span {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 700;
}

.event-card-copy h3 {
    margin: 0 0 5px;
    color: var(--kps-navy);
    font-size: 15px;
}

.public-urdu .event-card-copy h3 {
    font-size: 18px;
}

.event-meta {
    font-size: 10px;
    color: var(--kps-muted);
    margin-top: 3px;
}

.event-card-copy p {
    margin: 8px 0 0;
    color: #607083;
    font-size: 11px;
}

.download-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.download-card {
    border: 1px solid var(--kps-line);
    border-radius: 15px;
    padding: 16px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    background: #fff;
}

.download-card:hover {
    border-color: #bacbdd;
    background: #fafcff;
}

.download-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--kps-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.download-category {
    display: block;
    color: var(--kps-navy-2);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-urdu .download-category {
    text-transform: none;
}

.download-card h3 {
    margin: 4px 0;
    font-size: 14px;
    color: var(--kps-navy);
}

.public-urdu .download-card h3 {
    font-size: 17px;
}

.download-card small {
    display: inline-block;
    color: var(--kps-muted);
    margin-inline-end: 7px;
    font-size: 9px;
}

.download-card p {
    margin: 6px 0 0;
    color: #68778a;
    font-size: 10px;
}

.gallery-preview-section {
    background: #102f51;
    color: #fff;
}

.gallery-preview-section .section-kicker {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.gallery-preview-section .home-module-head h2 {
    color: #fff;
}

.gallery-preview-section .module-view-all {
    color: #fff;
    border-color: rgba(255,255,255,.35);
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gallery-preview-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 190px;
    background: #163b62;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.035);
}

.gallery-preview-item figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 30px 11px 10px;
    background: linear-gradient(transparent, rgba(5,23,40,.78));
    font-size: 10px;
}

.compact-title-band {
    padding: 58px 0;
}

.title-kicker {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.public-news-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 230px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--kps-line);
    border-radius: 16px;
}

.public-news-filter label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #556678;
    margin-bottom: 6px;
}

.public-news-filter input,
.public-news-filter select {
    width: 100%;
    min-height: 43px;
    border: 1px solid #ced8e4;
    border-radius: 10px;
    padding: 9px 11px;
    font: inherit;
    background: #fff;
    color: var(--kps-text);
}

.public-filter-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.filter-submit {
    margin: 0;
    border: 0;
    cursor: pointer;
}

.filter-reset {
    font-size: 11px;
    color: var(--kps-muted);
    font-weight: 700;
}

.news-page-grid {
    margin-top: 4px;
}

.public-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    font-size: 12px;
}

.public-pagination a {
    color: var(--kps-navy);
    font-weight: 800;
}

.news-detail-header {
    background:
        radial-gradient(circle at top right, rgba(214,163,41,.15), transparent 36%),
        linear-gradient(120deg, #12385f, #1d567f);
    color: #fff;
}

.news-detail-title-wrap {
    padding-block: 70px 66px;
    max-width: 980px;
}

.news-detail-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11px;
    opacity: .8;
}

.news-detail-title-wrap h1 {
    margin: 16px 0 12px;
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.15;
}

.public-urdu .news-detail-title-wrap h1 {
    line-height: 1.7;
}

.news-detail-title-wrap > p {
    margin: 0;
    max-width: 820px;
    font-size: 16px;
    opacity: .88;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 34px;
    align-items: start;
}

.news-detail-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--kps-shadow);
    margin-bottom: 28px;
}

.news-detail-content {
    color: #44576a;
    font-size: 15px;
    line-height: 1.95;
}

.public-urdu .news-detail-content {
    font-size: 18px;
    line-height: 2.35;
}

.news-side-card {
    position: sticky;
    top: 105px;
    border: 1px solid var(--kps-line);
    border-radius: 17px;
    padding: 18px;
    background: #fafcff;
}

.news-side-card h3 {
    margin: 0 0 13px;
    color: var(--kps-navy);
    font-size: 15px;
}

.side-info-row {
    border-top: 1px solid var(--kps-line);
    padding: 10px 0;
}

.side-info-row span,
.side-info-row strong {
    display: block;
}

.side-info-row span {
    color: var(--kps-muted);
    font-size: 9px;
    margin-bottom: 3px;
}

.side-info-row strong {
    font-size: 11px;
}

.side-back-btn {
    width: 100%;
    margin-top: 12px;
}

.related-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1000px) {
    .news-card-grid,
    .download-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .notice-inner,
    .home-module-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .notice-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .home-slider,
    .slider-track,
    .home-slide {
        height: min(125vw, 675px);
        min-height: 500px;
        max-height: 675px;
    }

    .home-slide-media img {
        object-position: center;
    }

    .home-slide-shade {
        background: linear-gradient(rgba(7,31,57,.34), rgba(7,31,57,.60));
    }

    .home-slide-kps-logo {
        top: 18px;
        width: 88px;
        height: 88px;
    }

    .slider-arrow {
        display: none;
    }

    .event-grid,
    .news-card-grid,
    .download-card-grid,
    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .public-news-filter {
        grid-template-columns: 1fr;
    }

    .public-filter-actions {
        justify-content: space-between;
    }
}

@media (max-width: 460px) {
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview-item,
    .gallery-preview-item img {
        min-height: 240px;
    }
}


/* =========================================================
   STEP 12C — MOBILE SLIDER FORCE VISIBILITY
   ========================================================= */
@media (max-width: 720px) {
    .home-slider {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 4 / 5;
        overflow: hidden;
    }

    .home-slider .slider-track,
    .home-slider .home-slide {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .home-slider .home-slide {
        position: absolute;
        inset: 0;
    }

    .home-slider .home-slide.active {
        opacity: 1 !important;
        z-index: 2 !important;
        pointer-events: auto !important;
    }

    .home-slider .home-slide-media,
    .home-slider .home-slide-media img {
        width: 100% !important;
        height: 100% !important;
    }

    .home-slider .home-slide-media img {
        object-fit: cover !important;
        object-position: center center !important;
    }

    .home-slider .slide-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 4;
        padding-top: 110px;
        padding-bottom: 42px;
    }
}


/* =========================================================
   STEP 12E — NEWS RELATED LINK / EMBED
   ========================================================= */
.news-related-resource {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--kps-line);
}

.news-related-resource-head {
    margin-bottom: 15px;
}

.news-related-resource-head h2 {
    margin: 6px 0 0;
    color: var(--kps-navy);
    font-size: clamp(20px, 3vw, 30px);
}

.news-related-link-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
}

.news-related-embed-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--kps-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--kps-shadow);
}

.news-related-embed {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
    background: #fff;
}

.news-related-embed-note {
    margin: 9px 2px 0;
    color: var(--kps-muted);
    font-size: 11px;
    line-height: 1.6;
}

.public-urdu .news-related-resource-head,
.public-urdu .news-related-embed-note {
    text-align: right;
}

@media (max-width: 720px) {
    .news-related-resource {
        margin-top: 26px;
        padding-top: 22px;
    }

    .news-related-embed {
        min-height: 420px;
    }

    .news-related-link-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
