/* =====================================================================
   public/assets/css/pages.css — inner pages (pages/show, services, blog)
   Load AFTER style.css. Only edit the 6 variables below to retheme.
   They fall back to your theme variables if style.css defines them.
   ===================================================================== */
:root {
    --pg-primary: var(--primary-color, #0a2540);
    /* navy */
    --pg-primary-2: var(--primary-dark, #061a2e);
    --pg-accent: var(--accent-color, #f5a623);
    /* gold */
    --pg-text: var(--text-color, #4a5568);
    --pg-heading: var(--heading-color, #0f1f33);
    --pg-light: #f6f8fb;
    --pg-border: #e5eaf1;
    --pg-radius: 14px;
    --pg-shadow: 0 8px 28px rgba(10, 37, 64, .08);
}

/* ---------- Page header / breadcrumb banner ---------- */
.page-header {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 90px 0 70px;
    background: var(--pg-primary);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.page-header-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, rgba(6, 26, 46, .92) 0%, rgba(10, 37, 64, .75) 55%, rgba(10, 37, 64, .45) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 18px;
    max-width: 820px;
}

.page-header .short-description {
    color: rgba(255, 255, 255, .85);
    font-size: 1.05rem;
    max-width: 700px;
    margin-bottom: 18px;
}

.page-header .breadcrumb {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: .9rem;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: var(--pg-accent);
}

.page-header .breadcrumb-item.active {
    color: var(--pg-accent);
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

/* ---------- Content area ---------- */
.content-area {
    padding: 64px 0;
    background: #fff;
}

.service-image-wrapper {
    border-radius: var(--pg-radius);
    overflow: hidden;
    box-shadow: var(--pg-shadow);
    margin-bottom: 28px;
}

.service-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s ease;
}

.service-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Rich text coming from the admin editor */
.blog-content {
    color: var(--pg-text);
    font-size: 1.02rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.blog-content>*:first-child {
    margin-top: 0;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--pg-heading);
    font-weight: 700;
    line-height: 1.3;
    margin: 2rem 0 .9rem;
}

.blog-content h2 {
    font-size: 1.7rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--pg-border);
    position: relative;
}

.blog-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 70px;
    height: 2px;
    background: var(--pg-accent);
}

.blog-content h3 {
    font-size: 1.35rem;
}

.blog-content h4 {
    font-size: 1.15rem;
}

.blog-content p {
    margin-bottom: 1.15rem;
}

.blog-content a {
    color: var(--pg-primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--pg-accent);
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: var(--pg-accent);
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.3rem;
}

.blog-content li {
    margin-bottom: .5rem;
}

.blog-content ul li::marker {
    color: var(--pg-accent);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

.blog-content blockquote {
    margin: 1.6rem 0;
    padding: 18px 22px;
    background: var(--pg-light);
    border-left: 4px solid var(--pg-accent);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--pg-heading);
}

.blog-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--pg-border);
    border-radius: 10px;
    overflow: hidden;
    font-size: .95rem;
    display: block;
    overflow-x: auto;
    /* never break mobile layout */
}

.blog-content th {
    background: var(--pg-primary);
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.blog-content th,
.blog-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pg-border);
    white-space: nowrap;
}

.blog-content tr:nth-child(even) td {
    background: var(--pg-light);
}

.blog-content .local-areas-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

/* [areas_list] output */
.blog-content .local-areas-list li {
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
}

.blog-content .local-areas-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--pg-accent);
    font-size: .8rem;
}

/* Inline form shown between image and content (mobile one) */
.content-area article>.hero-form-card {
    margin: 0 0 28px;
}

/* ---------- FAQ accordion ---------- */
.content-area .accordion-item {
    border: 1px solid var(--pg-border);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.content-area .accordion-button {
    font-weight: 600;
    color: var(--pg-heading);
    background: #fff;
    padding: 16px 20px;
    box-shadow: none;
}

.content-area .accordion-button:not(.collapsed) {
    background: var(--pg-light);
    color: var(--pg-primary);
}

.content-area .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .25);
}

.content-area .accordion-button::after {
    filter: grayscale(1);
}

.content-area .accordion-body {
    color: var(--pg-text);
    line-height: 1.8;
    padding: 4px 20px 20px;
}

/* ---------- Sidebar ---------- */
.sidebar-holder {
    height: 100%;
}

.sidebar-wrapper {
    position: sticky;
    top: 100px;
}

/* sits under the sticky navbar */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--pg-shadow);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pg-heading);
    margin: 0 0 18px;
    padding-bottom: 12px;
    position: relative;
    border-bottom: 1px solid var(--pg-border);
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 2px;
    background: var(--pg-accent);
}

/* Recent posts */
.recent-post {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--pg-border);
}

.recent-post:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.recent-post:first-of-type {
    padding-top: 0;
}

.recent-post img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.recent-post-content h6 {
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.recent-post-content h6 a {
    color: var(--pg-heading);
    text-decoration: none;
    transition: color .2s;
}

.recent-post-content h6 a:hover {
    color: var(--pg-accent);
}

.recent-post-content span {
    font-size: .78rem;
    color: #8492a6;
}

.recent-post-content span i {
    color: var(--pg-accent);
    margin-right: 4px;
}

/* CTA card */
.cta-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 28px 24px;
    border-radius: var(--pg-radius);
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-2) 100%);
    box-shadow: var(--pg-shadow);
}

.cta-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(245, 166, 35, .18);
}

.cta-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.cta-card p {
    color: rgba(255, 255, 255, .8);
    font-size: .92rem;
    margin-bottom: 18px;
    position: relative;
}

.cta-card a {
    position: relative;
    display: inline-block;
    padding: 12px 22px;
    border-radius: 50px;
    background: var(--pg-accent);
    color: var(--pg-primary-2);
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.cta-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(245, 166, 35, .4);
}

/* WhatsApp widget (replaces the inline style="background:#25D366") */
.sidebar-widget.whatsapp-widget,
.sidebar-widget[style*="25D366"] {
    background: #25d366 !important;
    border: 0 !important;
    padding: 14px;
    transition: transform .2s, box-shadow .2s;
}

.sidebar-widget[style*="25D366"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 211, 102, .35);
}

.sidebar-widget[style*="25D366"] a {
    color: #fff !important;
}

.sidebar-widget[style*="25D366"] h5 {
    color: #fff !important;
    font-weight: 700;
}

.sidebar-widget[style*="25D366"] small {
    color: rgba(255, 255, 255, .9);
}

/* ---------- Related services ---------- */
.related-services {
    padding: 70px 0 80px;
    background: var(--pg-light);
}

.related-services .section-title {
    margin-bottom: 42px;
}

.related-services .section-title h3 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--pg-heading);
    margin-bottom: 8px;
}

.related-services .section-title p {
    color: var(--pg-text);
    margin: 0;
}

.related-card {
    height: 100%;
    background: #fff;
    border-radius: var(--pg-radius);
    overflow: hidden;
    border: 1px solid var(--pg-border);
    box-shadow: 0 4px 16px rgba(10, 37, 64, .05);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(10, 37, 64, .14);
}

.related-img {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}

.related-card:hover .related-img img {
    transform: scale(1.08);
}

.related-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-body h4,
.related-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pg-heading);
    margin: 0 0 8px;
}

.related-body p {
    font-size: .92rem;
    color: var(--pg-text);
    margin: 0 0 16px;
    flex: 1;
}

.related-link {
    font-weight: 600;
    font-size: .92rem;
    color: var(--pg-primary);
    text-decoration: none;
    transition: color .2s, gap .2s;
}

.related-link:hover {
    color: var(--pg-accent);
}

.related-link i {
    transition: transform .2s;
}

.related-link:hover i {
    transform: translateX(4px);
}

/* Owl carousel (service-carousel) */
.service-carousel .owl-stage {
    display: flex;
}

.service-carousel .owl-item {
    display: flex;
}

.service-carousel .item {
    width: 100%;
    padding: 6px 4px 14px;
}

.service-carousel .owl-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.service-carousel .owl-nav button.owl-prev,
.service-carousel .owl-nav button.owl-next {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--pg-primary) !important;
    border: 1px solid var(--pg-border) !important;
    box-shadow: 0 4px 12px rgba(10, 37, 64, .08);
    transition: all .2s;
}

.service-carousel .owl-nav button:hover {
    background: var(--pg-accent) !important;
    color: #fff !important;
    border-color: var(--pg-accent) !important;
}

.service-carousel .owl-dots {
    text-align: center;
    margin-top: 14px;
}

.service-carousel .owl-dot span {
    width: 9px;
    height: 9px;
    background: #cbd5e1;
    display: block;
    border-radius: 50%;
    margin: 0 4px;
    transition: all .2s;
}

.service-carousel .owl-dot.active span {
    background: var(--pg-accent);
    width: 26px;
    border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .page-header {
        min-height: 260px;
        padding: 70px 0 50px;
    }

    .content-area {
        padding: 44px 0;
    }

    .sidebar-wrapper {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        min-height: 220px;
        padding: 56px 0 40px;
    }

    .page-header .breadcrumb {
        border-radius: 14px;
        font-size: .82rem;
        padding: 8px 14px;
    }

    .blog-content {
        font-size: .98rem;
        line-height: 1.75;
    }

    .blog-content h2 {
        font-size: 1.4rem;
    }

    .sidebar-widget {
        padding: 18px;
    }

    .related-services {
        padding: 50px 0 60px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .related-card,
    .related-img img,
    .service-image-wrapper img,
    .cta-card a {
        transition: none;
    }
}

/* =====================================================================
   Department Updates (/updates, /updates/{slug})
   ===================================================================== */
.update-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.update-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.update-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--pg-border);
    color: var(--pg-heading);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}

.update-chip small {
    background: var(--pg-light);
    border-radius: 50px;
    padding: 1px 8px;
    font-size: .72rem;
    color: var(--pg-text);
}

.update-chip:hover {
    border-color: var(--pg-accent);
    color: var(--pg-primary);
}

.update-chip.active {
    background: var(--pg-primary);
    border-color: var(--pg-primary);
    color: #fff;
}

.update-chip.active small {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.update-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--pg-border);
    border-radius: 50px;
    padding: 4px 4px 4px 16px;
    min-width: 260px;
    flex: 1;
    max-width: 340px;
}

.update-search i {
    color: #94a3b8;
    margin-right: 8px;
}

.update-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .9rem;
    min-width: 0;
}

.update-search button {
    border: 0;
    background: var(--pg-accent);
    color: var(--pg-primary-2);
    font-weight: 600;
    font-size: .85rem;
    padding: 8px 18px;
    border-radius: 50px;
}

.department-link.active {
    border-color: var(--pg-accent);
    background: rgba(245, 166, 35, .08);
}

.update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--pg-border);
    font-size: .88rem;
    color: #64748b;
}

.update-meta i {
    color: var(--pg-accent);
    margin-right: 6px;
}

.update-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--pg-heading);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.update-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--pg-border);
}

.update-share a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pg-light);
    color: var(--pg-primary);
    text-decoration: none;
    transition: all .2s;
}

.update-share a:hover {
    background: var(--pg-accent);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .update-search {
        max-width: none;
        width: 100%;
    }
}