/* =============================================================
   7. PAGE HERO BANNER (Inner Pages)
   ============================================================= */
.page-hero-banner {
    background-color: var(--color-navy);
    padding: 190px 0 3rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.page-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(11, 83, 148, 0.85);
    background-blend-mode: multiply;
    background-image: url('../images/hero-bg/dp3akb-office.jpeg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    z-index: 0;
}
.page-hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
    z-index: 2;
}
.page-hero-banner .container-xl {
    position: relative;
    z-index: 2;
}
.page-hero-title {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}
.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.page-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}
.page-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.75); }
.page-breadcrumb .breadcrumb-item a:hover { color: var(--color-gold); }
.page-breadcrumb .breadcrumb-item.active { color: var(--color-gold); }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* =============================================================
   8. FOOTER
   ============================================================= */

/* Pre-footer CTA — element removed from footer.php, CSS retained for reference only */

/* Footer Main */
.site-footer { background: var(--color-navy-dark); color: rgba(255,255,255,0.8); }
.footer-main { padding: 4rem 0 3rem; }

.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 0.25rem;
}
.footer-brand-full {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
    margin-bottom: 0.15rem;
}
.footer-brand-region {
    font-size: 0.78rem;
    color: var(--color-gold-light);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}
.footer-logo { object-fit: contain; }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* Footer Headings */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}
.footer-subheading {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

/* Footer Social */
.footer-social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.footer-social-link:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-contact-list li { display: flex; gap: 0.75rem; font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.footer-contact-list a { color: rgba(255,255,255,0.85); }
.footer-contact-list a:hover { color: var(--color-gold); }
.footer-contact-icon {
    color: var(--color-gold);
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Footer Quick Links */
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.72);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition-fast);
    padding: 0.1rem 0;
}
.footer-links a::before {
    content: '›';
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition-fast);
}
.footer-links a:hover { color: var(--color-gold); padding-left: 4px; }

/* Footer Hours */
.footer-hours { display: flex; flex-direction: column; gap: 0.15rem; }
.hours-item { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; font-size: 0.85rem; }
.hours-day { color: rgba(255,255,255,0.75); }
.hours-time { font-weight: 600; color: var(--color-white); font-size: 0.82rem; }
.hours-item.closed .hours-time { color: rgba(255,255,255,0.4); font-style: italic; }
.hours-divider { height: 1px; background: rgba(255,255,255,0.08); }

/* Footer Map */
.map-embed-wrapper { 
    position: relative; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    /* Fix webkit border-radius masking */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.map-embed-wrapper iframe {
    display: block;
    width: 100%;
    border-radius: 16px;
}
.map-overlay-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff;
    color: #1a73e8;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease;
    z-index: 10;
}
.map-overlay-btn:hover {
    background: #f8f9fa;
    color: #1a73e8;
}
/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copy { font-size: 0.95rem; color: rgba(255,255,255,0.55); }
.footer-copy strong { color: rgba(255,255,255,0.8); }
.footer-bottom-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.footer-bottom-links a { font-size: 0.95rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--color-gold); }

/* =============================================================
   9. FLOATING WHATSAPP BUTTON
   ============================================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-whatsapp);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    transition: all var(--transition-base);
    text-decoration: none;
}
.floating-whatsapp:hover {
    background: var(--color-whatsapp-dk);
    color: var(--color-white);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}
.floating-whatsapp-icon { font-size: 1.75rem; }
.floating-whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    background: var(--color-navy-dark);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: all var(--transition-fast);
}
.floating-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%; right: -5px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--color-navy-dark);
    border-right: none;
}
.floating-whatsapp:hover .floating-whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}
/* Pulse animation */
.floating-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-whatsapp);
    animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* =============================================================
   10. BACK TO TOP BUTTON
   ============================================================= */
.back-to-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9998;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy-dark);
    transform: translateY(-2px);
}

/* =============================================================
   10B. FLOATING WHATSAPP BUTTON
   ============================================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 5.2rem;
    right: 1.75rem;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.floating-whatsapp:hover {
    background: #1EBE57;
    color: #ffffff;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* =============================================================
   11. NEWS CARDS (used in index.php)
   ============================================================= */
.news-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}
.news-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.news-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.news-card:hover .news-card-img { transform: scale(1.05); }
.news-card-cat {
    position: absolute; top: 0.75rem; left: 0.75rem;
    background: var(--color-gold); color: var(--color-navy-dark);
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; padding: 0.2rem 0.6rem; border-radius: 2rem;
}
.news-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.news-card-meta { display: flex; gap: 0.75rem; font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 0.6rem; flex-wrap: wrap; }
.news-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.4; }
.news-card-title a { color: var(--color-navy); }
.news-card-title a:hover { color: var(--color-gold-dark); }
.news-card-excerpt { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 1rem; flex: 1; }

/* Single post body content — replaces inline style="font-size:1.05rem;line-height:1.8" */
.single-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}
.single-post-content p { margin-bottom: 1.25rem; }
.single-post-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1rem 0; }


/* =============================================================
   12. SIDEBAR
   ============================================================= */
.sidebar-widget {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.sidebar-widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-gold);
}
.sidebar-post-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-post-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.sidebar-post-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-info { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-post-title { font-size: 0.82rem; font-weight: 600; color: var(--color-navy); line-height: 1.35; }
.sidebar-post-title:hover { color: var(--color-gold-dark); }
.sidebar-post-date { font-size: 0.73rem; color: var(--color-text-muted); }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.sidebar-cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.86rem; }
.sidebar-cat-list a { color: var(--color-text); }
.sidebar-cat-list a:hover { color: var(--color-navy); font-weight: 600; }
.sidebar-cat-count { background: var(--color-navy-subtle); color: var(--color-navy); font-size: 0.73rem; font-weight: 700; border-radius: 2rem; padding: 0.1rem 0.55rem; }

/* =============================================================
   13. EMPTY STATE
   ============================================================= */
.empty-state { padding: 4rem 2rem; }
.empty-state-icon { font-size: 4rem; color: var(--color-border); }
.empty-state-title { font-size: 1.4rem; color: var(--color-text-muted); }
.empty-state-desc { color: var(--color-text-muted); }

/* =============================================================
   14. PAGINATION
   ============================================================= */
.pagination .page-link {
    color: var(--color-navy);
    border-color: var(--color-border);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
}
.pagination .page-link:hover { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.pagination .page-item.active .page-link { background: var(--color-navy); border-color: var(--color-navy); }

/* =============================================================
   15. AOS OVERRIDE
   ============================================================= */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* =============================================================
   16. RESPONSIVE HELPERS
   ============================================================= */
@media (max-width: 767.98px) {
    :root {
        --section-py: 3rem;
        --section-py-sm: 2rem;
    }
    .footer-bottom-links { justify-content: center; }
    .back-to-top { bottom: 1.75rem; right: 1rem; }
}

@media (max-width: 575.98px) {
    .top-info-bar { height: auto; padding: 0.4rem 0; }
    .pre-footer-cta .d-flex { flex-direction: column; }
}

/* =============================================================
   17. PRINT STYLES
   ============================================================= */
@media print {
    .site-header, .floating-whatsapp, .back-to-top,
    .pre-footer-cta, .top-info-bar { display: none !important; }
    .site-main { padding-top: 0 !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* =============================================================
   18. HEADER BANNER & PORTAL WIDGETS
   ============================================================= */


@media (max-width: 767.98px) {
    .banner-title-top { font-size: 0.65rem; }
    .banner-title-main { font-size: 0.85rem; }
    .banner-logo-img { width: 50px; height: 50px; }
}

/* Sidebar Widgets — used in portal/widget areas (not main sidebar) */
.sidebar-widget-alt {
    background: var(--color-light-gray);
    border: 1px solid var(--color-border);
}
.widget-header {
    background: var(--color-navy);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--color-gold);
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
}
.custom-link-list li {
    margin-bottom: 0.6rem;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 0.4rem;
}
.custom-link-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.custom-link-list a {
    color: var(--color-text);
    font-weight: 500;
}
.custom-link-list a:hover {
    color: var(--color-navy-light);
    text-decoration: underline;
}

/* =========================================================
   12. AJAX LIVE SEARCH
   ========================================================= */
.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0; /* Match rigid government style */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
}
.ajax-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
    text-decoration: none !important;
}
.ajax-search-item:last-child {
    border-bottom: none;
}
.ajax-search-item:hover, .ajax-search-item:focus {
    background-color: var(--color-light-gray);
    color: var(--color-navy);
}
.ajax-search-title {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}
.ajax-search-item .badge {
    font-size: 0.75rem;
    font-weight: 500;
}
.text-light-muted {
    color: #ced4da;
}

@media (max-width: 991.98px) {
    .page-hero-banner {
        padding: 180px 0 2rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero-banner {
        padding: 160px 0 1.5rem;
    }
}
