/* =========================================================
   LGU TABACO PUBLIC ADVISORIES
   Formal government design - Poppins / Blue / Black
========================================================= */

.lgu-advisories {
    --lgu-blue: #004EB1;
    --lgu-dark-blue: #07346B;
    --lgu-light-blue: #EDF5FF;
    --lgu-text: #202833;
    --lgu-muted: #596579;
    --lgu-border: #DCE5EF;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px 55px;
    box-sizing: border-box;
    color: var(--lgu-text);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.75;
}

.lgu-advisories *,
.lgu-advisories *::before,
.lgu-advisories *::after {
    box-sizing: border-box;
}

.lgu-advisories a {
    text-decoration: none;
}

.lgu-advisories p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--lgu-text);
}

/* PAGE HEADER */

.lgu-adv-header {
    margin: 0 auto 35px;
    max-width: 850px;
    text-align: center;
}

.lgu-adv-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--lgu-blue);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.lgu-adv-header h1 {
    margin: 0 0 12px;
    color: var(--lgu-dark-blue);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
}

.lgu-adv-header p {
    margin: 0;
    color: var(--lgu-muted);
    font-size: 18px;
}

/* SEARCH AND FILTER */

.lgu-adv-filter {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(210px, 280px) auto;
    gap: 12px;
    margin: 0 0 30px;
    padding: 18px;
    background: #F7F9FC;
    border: 1px solid var(--lgu-border);
    border-radius: 10px;
}

.lgu-adv-filter input,
.lgu-adv-filter select {
    width: 100%;
    min-height: 52px;
    padding: 10px 15px;
    border: 1px solid #C9D5E3;
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--lgu-text);
    font-family: inherit;
    font-size: 18px;
}

.lgu-adv-filter input:focus,
.lgu-adv-filter select:focus {
    outline: 2px solid rgba(0, 78, 177, .18);
    border-color: var(--lgu-blue);
}

.lgu-adv-filter button {
    min-height: 52px;
    padding: 10px 24px;
    border: 0;
    border-radius: 6px;
    background: var(--lgu-blue);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.lgu-adv-filter button:hover {
    background: var(--lgu-dark-blue);
}

/* ADVISORY CARD GRID */

.lgu-adv-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

.lgu-adv-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--lgu-border);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(20, 45, 75, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lgu-adv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(20, 45, 75, .09);
}

/* =========================================================
   CARD IMAGE - KEEP ORIGINAL SIZE (250PX)
   These dimensions apply only to the listing cards.
========================================================= */

.lgu-adv-card-image-link {
    display: block;
    padding: 15px 15px 0;
}

.lgu-adv-card-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #F5F8FC;
    border: 1px solid #E8EDF4;
    border-radius: 6px;
}

.lgu-adv-card-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: contain;
    object-position: center;
}

.lgu-adv-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

/* CATEGORY AND PRIORITY */

.lgu-adv-card-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
}

.lgu-adv-category,
.lgu-adv-priority {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.lgu-adv-category {
    background: var(--lgu-light-blue);
    color: var(--lgu-blue);
}

.lgu-adv-priority-normal {
    background: #EDF2F7;
    color: #344054;
}

.lgu-adv-priority-important {
    background: #FFF3D6;
    color: #805500;
}

.lgu-adv-priority-urgent {
    background: #FDECEC;
    color: #B42318;
}

/* CARD TEXT */

.lgu-adv-card h2 {
    margin: 0 0 10px;
    color: var(--lgu-dark-blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.lgu-adv-card h2 a {
    color: var(--lgu-dark-blue);
}

.lgu-adv-card h2 a:hover {
    color: var(--lgu-blue);
}

.lgu-adv-excerpt {
    margin-bottom: 18px;
    color: var(--lgu-text);
    font-size: 18px;
    line-height: 1.7;
}

.lgu-adv-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--lgu-border);
    color: var(--lgu-muted);
    font-size: 15px;
    line-height: 1.6;
}

.lgu-adv-card-meta strong {
    color: var(--lgu-dark-blue);
    font-weight: 600;
}

/* READ FULL ADVISORY */

.lgu-adv-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 18px;
    padding: 10px 16px;
    border: 1px solid var(--lgu-blue);
    border-radius: 5px;
    background: #FFFFFF;
    color: var(--lgu-blue);
    font-size: 17px;
    font-weight: 600;
    transition: all .2s ease;
}

.lgu-adv-read-more:hover {
    background: var(--lgu-blue);
    color: #FFFFFF;
}

/* PAGINATION */

.lgu-adv-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.lgu-adv-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 43px;
    height: 43px;
    padding: 0 12px;
    border: 1px solid var(--lgu-border);
    border-radius: 5px;
    color: var(--lgu-blue);
    font-size: 17px;
    font-weight: 600;
}

.lgu-adv-pagination a.is-current,
.lgu-adv-pagination a:hover {
    border-color: var(--lgu-blue);
    background: var(--lgu-blue);
    color: #FFFFFF;
}

/* EMPTY RESULTS */

.lgu-adv-empty {
    padding: 45px 20px;
    border: 1px solid var(--lgu-border);
    border-radius: 8px;
    background: #F8FAFD;
    text-align: center;
}

.lgu-adv-empty h2 {
    margin: 0 0 10px;
    color: var(--lgu-dark-blue);
    font-size: 26px;
}

.lgu-adv-empty p {
    margin: 0 0 20px;
}

/* =========================================================
   FULL ADVISORY DETAIL PAGE
========================================================= */

.lgu-adv-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 12px;
}

/* BACK LINK */

.lgu-adv-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 27px;
    color: var(--lgu-blue);
    font-size: 18px;
    font-weight: 600;
}

.lgu-adv-back:hover {
    color: var(--lgu-dark-blue);
}

/* DETAIL HEADER */

.lgu-adv-detail-header {
    margin-bottom: 25px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--lgu-border);
}

.lgu-adv-detail-header .lgu-adv-card-labels {
    margin-bottom: 15px;
}

.lgu-adv-detail-header h1 {
    margin: 0 0 12px;
    color: var(--lgu-dark-blue);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.lgu-adv-detail-subtitle {
    margin: 0;
    color: var(--lgu-muted);
    font-size: 18px;
}

/* =========================================================
   DETAIL IMAGE - 800PX
   Applies only after opening a full advisory.
========================================================= */

.lgu-adv-detail-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 760px;
    height: 800px;
    min-height: 200px;
    max-height: 800px;
    margin: 30px auto 38px;
    overflow: hidden;
    background: #F7F9FC;
    border: 1px solid var(--lgu-border);
    border-radius: 8px;
}

.lgu-adv-detail-image {
    display: block;
    width: 100%;
    max-width: 760px;
    height: 100%;
    max-height: 800px;
    object-fit: contain;
    object-position: center;
}

/* INFORMATION SECTION */

.lgu-adv-information {
    margin: 25px 0 35px;
}

.lgu-adv-information h2,
.lgu-adv-detail-content h2,
.lgu-adv-pdf-section h2 {
    margin: 0 0 18px;
    color: var(--lgu-dark-blue);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.lgu-adv-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--lgu-border);
    border-left: 1px solid var(--lgu-border);
}

.lgu-adv-information-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 17px 19px;
    border-right: 1px solid var(--lgu-border);
    border-bottom: 1px solid var(--lgu-border);
}

.lgu-adv-information-item span {
    color: var(--lgu-muted);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.lgu-adv-information-item strong {
    color: var(--lgu-text);
    font-size: 18px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* FULL ADVISORY BODY */

.lgu-adv-detail-content {
    margin: 35px 0;
}

.lgu-adv-content-text {
    color: var(--lgu-text);
    font-size: 18px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.lgu-adv-content-text p {
    margin: 0 0 20px;
    color: var(--lgu-text);
    font-size: 18px;
    line-height: 1.85;
}

.lgu-adv-content-text h1,
.lgu-adv-content-text h2,
.lgu-adv-content-text h3,
.lgu-adv-content-text h4 {
    margin: 25px 0 12px;
    color: var(--lgu-dark-blue);
    font-weight: 700;
    line-height: 1.4;
}

.lgu-adv-content-text h3 {
    font-size: 22px;
}

.lgu-adv-content-text h4 {
    font-size: 20px;
}

.lgu-adv-content-text ul,
.lgu-adv-content-text ol {
    margin: 0 0 22px;
    padding-left: 28px;
    color: var(--lgu-text);
    font-size: 18px;
    line-height: 1.85;
}

.lgu-adv-content-text li {
    margin-bottom: 8px;
}

.lgu-adv-content-text a {
    color: var(--lgu-blue);
    text-decoration: underline;
}

.lgu-adv-content-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

/* PDF ATTACHMENT */

.lgu-adv-pdf-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 35px 0;
    padding: 24px;
    border: 1px solid var(--lgu-border);
    border-left: 5px solid var(--lgu-blue);
    border-radius: 7px;
    background: #F7F9FC;
}

.lgu-adv-pdf-section h2 {
    margin-bottom: 5px;
}

.lgu-adv-pdf-section p {
    margin: 0;
    color: var(--lgu-muted);
    font-size: 18px;
}

.lgu-adv-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 22px;
    border-radius: 5px;
    background: var(--lgu-blue);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: background .2s ease;
}

.lgu-adv-pdf-button:hover {
    background: var(--lgu-dark-blue);
    color: #FFFFFF;
}

/* DETAIL FOOTER */

.lgu-adv-detail-footer {
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid var(--lgu-border);
    color: var(--lgu-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* RESPONSIVE TABLET */

@media (max-width: 950px) {
    .lgu-adv-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lgu-adv-filter {
        grid-template-columns: 1fr 1fr;
    }

    .lgu-adv-filter button {
        grid-column: 1 / -1;
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 600px) {
    .lgu-advisories {
        padding: 22px 13px 40px;
    }

    .lgu-adv-header {
        margin-bottom: 25px;
    }

    .lgu-adv-header h1 {
        font-size: 32px;
    }

    .lgu-adv-header p {
        font-size: 18px;
    }

    .lgu-adv-filter {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .lgu-adv-filter button {
        grid-column: auto;
    }

    .lgu-adv-results {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* MOBILE CARD IMAGE - KEEP AT 250PX */

    .lgu-adv-card-image-wrap {
        height: 250px;
    }

    .lgu-adv-card-image {
        max-height: 250px;
    }

    /* MOBILE DETAIL IMAGE - 800PX */

    .lgu-adv-detail-image-wrap {
        width: 100%;
        height: 800px;
        min-height: 200px;
        max-height: 800px;
        margin: 22px auto 30px;
    }

    .lgu-adv-detail-image {
        max-height: 800px;
    }

    .lgu-adv-card h2 {
        font-size: 22px;
    }

    .lgu-adv-excerpt {
        font-size: 18px;
    }

    .lgu-adv-detail-header h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    .lgu-adv-detail-subtitle {
        font-size: 18px;
    }

    .lgu-adv-information-grid {
        grid-template-columns: 1fr;
    }

    .lgu-adv-information-item {
        padding: 15px;
    }

    .lgu-adv-information-item strong {
        font-size: 18px;
    }

    .lgu-adv-content-text,
    .lgu-adv-content-text p,
    .lgu-adv-content-text ul,
    .lgu-adv-content-text ol {
        font-size: 18px;
    }

    .lgu-adv-pdf-section {
        align-items: stretch;
        padding: 18px;
    }

    .lgu-adv-pdf-button {
        width: 100%;
    }
}

/* ACCESSIBILITY */

.lgu-advisories a:focus-visible,
.lgu-advisories button:focus-visible,
.lgu-advisories input:focus-visible,
.lgu-advisories select:focus-visible {
    outline: 3px solid rgba(0, 78, 177, .35);
    outline-offset: 3px;
}