/*
 * Theme Name:		GWT-Wordpress 25.3.3
 * Theme URI:		http://i.gov.ph
 * Description:		Custom WordPress theme based on the draft Unified Web Content Policy
 *					prepared by the PCDSPO, DOST-ASTI, and DOST-ICTO. Theme is built on
 *					HTML5 responsive WordPress framework based on ZURB's Foundation.
 * Version:			25.3.3
 * Author:			iGovPhil
 * Author URI:		http://i.gov.ph
 * License:			MIT License
 * License URI:		http://www.opensource.org/licenses/mit-license.php
 * Tags: 			theme-options, rtl-language-support, featured-images, editor-style, custom-menu,
 *					responsive-layout, right-sidebar, left-sidebar, one-column, two-columns, three-columns
 */


 /** Your style here **/

/**
 * Municipality of Santa Ana, Pampanga
 * Visual design layered on top of the GWT / Foundation framework.
 * Loaded after theme.css, so it only needs to override colours and spacing.
 */

/* ---------- Self-hosted fonts (no external request) ---------- */
@font-face{font-family:'Merriweather';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/santaana/merriweather-700.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Merriweather';font-style:normal;font-weight:900;font-display:swap;src:url(fonts/santaana/merriweather-900.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:200 900;font-display:swap;src:url(fonts/santaana/sourcesans3-var.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
	--sa-navy: #0b2a5b; --sa-navy-2: #123a7a; --sa-gold: #f2b705; --sa-red: #c8102e;
	--sa-ink: #1c2430; --sa-muted: #5b6574; --sa-line: #dfe4ec; --sa-bg: #f4f6fa; --sa-card: #fff;
}

body {
	font-family: "Source Sans 3", system-ui, "Helvetica Neue", Arial, sans-serif;
	color: var(--sa-ink);
	background: var(--sa-bg);
}
.off-canvas-content { background: var(--sa-bg); }
h1, h2, h3, h4 { font-family: Merriweather, Georgia, serif; color: var(--sa-navy); line-height: 1.25; }
a { color: var(--sa-navy-2); }

/* ---------- GOVPH top bar (#main-nav) ---------- */
#main-nav { background-color: #1b1b1b; box-shadow: none; }
#main-nav li:not(.has-form) a:not(.button),
#main-nav li.active:not(.has-form) a:not(.button) { color: #ddd; font-size: .85rem; }
#main-nav .name a { color: #fff !important; font-weight: 700; letter-spacing: .04em; }
#main-nav ul .name a:hover,
#main-nav ul li:hover:not(.has-form) > a,
#main-nav .dropdown li:not(.has-form) a:not(.button):hover,
#main-nav .dropdown li:not(.has-form):hover > a:not(.button) { background: #2c2c2c; color: #fff; }
#main-nav .top-bar-left > ul > li,
#main-nav .top-bar-right > ul > li { border-right: 1px solid #2c2c2c; }
#main-nav .dropdown.menu .is-dropdown-submenu { background: #1b1b1b; border: 0; }
#main-nav .has-dropdown > a::after { border-color: rgba(255,255,255,.5) transparent transparent transparent; }
#main-nav .top-bar-right input[type="search"] { background: #2c2c2c; border: 0; color: #fff; box-shadow: none; }
#main-nav .top-bar-right input[type="search"]::placeholder { color: #aaa; }
#accessibility-button { background-color: transparent; }
#accessibility-button .fa-universal-access { color: var(--sa-gold); }
#main-nav .is-dropdown-submenu .fa { color: #ddd; }

/* off-canvas title bar (small screens) */
.title-bar { background: #1b1b1b; }
.title-bar-right .name a, .title-bar-left .name a, .title-bar-title { color: #fff; font-family: inherit; }
.title-bar-right button::after { background: #fff; box-shadow: 0 7px 0 #fff, 0 14px 0 #fff; }
#offCanvasRight { background-color: var(--sa-navy); font-family: inherit; }
#offCanvasRight a { color: #fff; }

/* ---------- Masthead ---------- */
.container-masthead {
	background: linear-gradient(135deg, var(--sa-navy) 0%, var(--sa-navy-2) 100%);
	color: #fff;
	border-bottom: 4px solid var(--sa-gold);
}
.container-masthead .logo { margin: 14px 0; }
.container-masthead .logo, .container-masthead .logo a, h1.logo, h1.logo a { color: #fff; }
#textlogo-image { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; margin-right: 14px; background: #fff; }
#textlogo-image img { width: 86px; height: 86px; transform: scale(1.22); } /* crops the seal's white padding */
#footer .sa-footer-seal { border-radius: 50%; background: #fff; }
#agency-heading { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
#agency-name {
	font-family: Merriweather, Georgia, serif;
	font-weight: 900;
	font-size: 1.9rem !important;
	line-height: 1.15;
	border-top: 0;
	padding-top: 0;
	margin-top: 2px;
}
#agency-tagline { font-size: .95rem; opacity: .9; margin-top: 2px; }
#pst-container { color: var(--sa-gold); font-family: inherit; font-variant-numeric: tabular-nums; margin-top: 18px; }
#pst-container, #pst-container div { color: var(--sa-gold); }
.container-masthead #tp-seal { max-height: 70px; width: auto; }

/* ---------- Auxiliary (section) menu ---------- */
#auxiliary { background: #fff; border-bottom: 1px solid var(--sa-line); box-shadow: 0 2px 6px rgba(0,0,0,.04); }
#aux-main > ul { background: transparent; }
#aux-main > ul > li { border-right: 0; }
#aux-main li:not(.has-form) a:not(.button),
#aux-main li.active:not(.has-form) a:not(.button) {
	color: var(--sa-navy);
	font-family: inherit;
	font-weight: 600;
	font-size: .95rem;
	line-height: 48px;
	border-bottom: 3px solid transparent;
	background: transparent;
}
#aux-main ul li:hover:not(.has-form) > a,
#aux-main li.sa-current:not(.has-form) > a:not(.button),
#aux-main li.current-menu-item:not(.has-form) a:not(.button) {
	background: #f7f9fc;
	border-bottom-color: var(--sa-red);
}

/* Services dropdown (and any other submenu) in the main menu */
#aux-main .is-dropdown-submenu, #aux-main .dropdown.menu .vertical { background: #fff; border: 1px solid var(--sa-line); border-top: 3px solid var(--sa-gold); min-width: 270px; z-index: 5; }
#aux-main .is-dropdown-submenu li { border: 0; }
#aux-main .is-dropdown-submenu li:not(.has-form) a:not(.button) {
	line-height: 38px !important; font-size: .9rem; font-weight: 600; border-bottom: 0; white-space: nowrap;
}
#aux-main .is-dropdown-submenu li:not(.has-form) a:not(.button):hover { background: #f1f5fb; color: var(--sa-navy); border-bottom: 0; }
/* every dropdown item uses the same navy text (no highlighted last item) */

/* second-level flyouts (offices, barangays): readable, scrollable when long */
#aux-main .is-dropdown-submenu .is-dropdown-submenu { min-width: 330px; max-height: 70vh; overflow-y: auto; top: -3px; }
#aux-main .is-dropdown-submenu .is-dropdown-submenu li:not(.has-form) a:not(.button) { white-space: normal; line-height: 1.3 !important; padding: 9px 14px; font-size: .88rem; }
#aux-main .is-dropdown-submenu .has-dropdown > a::after { border-color: transparent transparent transparent rgba(11,42,91,.5); }
#aux-main .has-dropdown > a::after { border-color: rgba(11,42,91,.5) transparent transparent transparent; }

/* ---------- Page chrome ---------- */
#breadcrumbs { background: transparent; }
.breadcrumbs { background: #fff; border-color: var(--sa-line); }
.container-banner { border-top: 0; }
.container-banner .entry-title { color: var(--sa-navy); }
.callout.secondary, .widget.callout { background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 8px; }
.container-main .entry-title a { color: var(--sa-navy); }
.post-box .callout { border-radius: 8px; }
#back-to-top { background-color: var(--sa-navy); opacity: .85; }

/* ---------- Front page ---------- */
.sa-main { padding: 0; }
.sa-section { padding: 48px 0; }
.sa-section.sa-alt { background: #fff; }
.sa-section .columns { margin-bottom: 18px; }
.sa-kicker { color: var(--sa-red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.sa-kicker-gold { color: var(--sa-gold); }
.sa-title { font-size: 1.6rem; margin: 0 0 .3rem; }
.sa-subtitle { margin-top: 18px; }
.sa-muted { color: var(--sa-muted); }
.sa-note {
	font-size: .85rem; color: var(--sa-muted); background: #fffbea;
	border: 1px dashed #e5cf7a; padding: 8px 12px; border-radius: 6px;
}
.sa-tag {
	display: inline-block; font-size: .7rem; font-weight: 700; background: #fff3cd; color: #7a5a00;
	padding: 1px 7px; border-radius: 3px; margin-left: 6px; vertical-align: middle;
}

/* hero */
.sa-hero {
	color: #fff;
	background:
		linear-gradient(90deg, rgba(11,42,91,.92), rgba(11,42,91,.55)),
		repeating-linear-gradient(45deg, #1e4b8f 0 18px, #1a4383 18px 36px);
	padding: 64px 0;
}
.sa-hero-title { color: #fff; font-size: 2.5rem; margin: .2rem 0 .6rem; }
.sa-hero p { max-width: 560px; font-size: 1.08rem; opacity: .95; }
.button.sa-btn-gold { background: var(--sa-gold); color: var(--sa-navy); font-weight: 700; margin: 6px 8px 0 0; }
.button.sa-btn-gold:hover, .button.sa-btn-gold:focus { background: #ffc928; color: var(--sa-navy); }
.button.sa-btn-ghost { background: transparent; border: 2px solid #fff; color: #fff; font-weight: 700; margin: 6px 8px 0 0; }
.button.sa-btn-ghost:hover, .button.sa-btn-ghost:focus { background: rgba(255,255,255,.12); color: #fff; }
.button.sa-btn-navy { background: var(--sa-navy); color: #fff; font-weight: 700; margin-top: 12px; }
.button.sa-btn-navy:hover, .button.sa-btn-navy:focus { background: var(--sa-navy-2); color: #fff; }
.sa-facts {
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
	padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.sa-facts b { display: block; font-size: 1.5rem; color: var(--sa-gold); font-family: Merriweather, Georgia, serif; }
.sa-facts span { font-size: .85rem; opacity: .9; }

/* cards */
.sa-card {
	display: block; background: var(--sa-card); border: 1px solid var(--sa-line);
	border-radius: 8px; padding: 18px; height: 100%; margin-bottom: 0;
}
.sa-card h3 { margin: .2rem 0 .4rem; font-size: 1.08rem; }
.sa-card p { margin: 0; color: var(--sa-muted); }
.sa-svc { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; transition: .15s; }
.sa-svc:hover { border-color: var(--sa-navy-2); transform: translateY(-2px); }
.sa-ico {
	width: 44px; height: 44px; border-radius: 8px; background: #e8eef9; color: var(--sa-navy);
	display: grid; place-items: center; flex: none; font-weight: 700; font-size: .8rem;
}
.sa-officials .sa-card { text-align: center; }
.sa-avatar {
	width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; background: #e8eef9;
	display: grid; place-items: center; font-family: Merriweather, Georgia, serif; font-size: 1.6rem; color: var(--sa-navy);
}
.sa-role { color: var(--sa-red); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

.sa-card-btn { width: 100%; text-align: center; cursor: pointer; font: inherit; transition: .15s; }
.sa-card-btn:hover, .sa-card-btn:focus { border-color: var(--sa-navy-2); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(11,42,91,.12); }
.sa-card-btn p { color: var(--sa-red); font-weight: 600; }
.sa-dept h3 { font-size: .98rem; min-height: 2.5em; }
.sa-head-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-top: .4rem !important; }
.sa-card .sa-head { color: var(--sa-ink); font-weight: 700; margin-top: 0; }
#sb-modal { border-radius: 8px; padding: 1.6rem; }
#sb-modal .sa-table { margin-top: 12px; }

/* news */
.sa-news { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sa-line); }
.sa-news small { color: var(--sa-muted); }
.sa-news h3 { margin: .1rem 0 .2rem; font-size: 1.02rem; }
.sa-news h3 a { color: var(--sa-navy); }
.sa-news p { margin: 0; color: var(--sa-muted); }
.sa-thumb { height: 84px; border-radius: 6px; background: linear-gradient(135deg, #d9e3f5, #b9c9e8); overflow: hidden; }
.sa-thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.sa-thumb-lg { height: 140px; margin-bottom: 12px; }

/* sidebar */
#sidebar-right .widget, #sidebar-right .sa-card { margin-bottom: 16px; padding: 18px; height: auto; }
#sidebar-right .widget-title { font-size: 1.08rem; margin-top: 0; }
.sa-hotline { display: flex; justify-content: space-between; border-bottom: 1px solid var(--sa-line); padding: 7px 0; }
.sa-hotline b { color: var(--sa-red); }
.sa-list { margin: 0 0 0 1.1rem; }
.sa-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.sa-badge {
	flex: 1 1 120px; border: 1px solid var(--sa-line); border-radius: 6px; padding: 10px; text-align: center;
	font-weight: 700; color: var(--sa-navy); text-decoration: none; font-size: .88rem; background: #fafbfd;
}

/* tables */
.sa-table { width: 100%; border-collapse: collapse; background: #fff; margin-bottom: 0; }
.sa-table th, .sa-table td { padding: 10px 12px; border-bottom: 1px solid var(--sa-line); text-align: left; }
.sa-table th { background: var(--sa-navy); color: #fff; font-weight: 600; }
.sa-table tbody tr:nth-child(even) { background: #fff; }

/* barangays */
.sa-brgy {
	display: block; width: 100%; text-align: left; cursor: pointer; font: inherit;
	background: #fff; border: 1px solid var(--sa-line); border-left: 4px solid var(--sa-gold);
	padding: 10px 12px; border-radius: 4px; font-weight: 600; color: var(--sa-navy);
	transition: .15s;
}
.sa-brgy:hover, .sa-brgy:focus { border-color: var(--sa-navy-2); border-left-color: var(--sa-gold); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(11,42,91,.12); }
.sa-center { text-align: center; }

/* service card picture / long badge */
.sa-ico-img { background: #fff; border: 1px solid var(--sa-line); width: 64px; height: 64px; padding: 4px; }
.sa-ico-img img { width: 100%; height: 100%; object-fit: contain; }
.sa-ico-long { font-size: .66rem; letter-spacing: .02em; }
.sa-svc .sa-ico { flex: none; }

/* downloadable forms page */
.sa-forms-page { padding: 1.5rem 0 2.5rem; }
.sa-forms-filter input { max-width: 28rem; margin: 6px 0 10px; }
.sa-forms-group { margin-bottom: 8px; }
.sa-forms-group .sa-subtitle { font-size: 1.15rem; border-bottom: 2px solid var(--sa-gold); padding-bottom: 6px; }
.sa-forms-list { list-style: none; margin: 0 0 10px; padding: 0; }
.sa-form { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--sa-line); border-radius: 6px; padding: 10px 14px; margin-bottom: 8px; }
.sa-form-ico { color: var(--sa-red); font-size: 1.4rem; }
.sa-form-title { flex: 1; font-weight: 600; color: var(--sa-navy); }
.sa-form-title small { display: block; font-weight: 400; color: var(--sa-muted); }
.button.sa-form-dl { margin: 0; padding: .55rem 1rem; }
.sa-form [hidden], .sa-note[hidden] { display: none; }

/* news: clickable thumbnails + full story page */
a.sa-thumb { display: block; }
.sa-news .sa-more { margin-top: 4px; }
.sa-story { background: #fff; border: 1px solid var(--sa-line); border-radius: 8px; padding: 24px 28px; }
.sa-back { margin-bottom: 14px; font-weight: 600; }
.sa-story .entry-meta { margin-bottom: 14px; }
.sa-story-image { margin: 0 0 18px; }
.sa-story-image img { width: 100%; border-radius: 6px; }
.sa-story .entry-content { font-size: 1.05rem; line-height: 1.75; }
.sa-story-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--sa-line); font-weight: 600; }
.sa-story-next { text-align: right; }

/* equal-height card rows (flex instead of Foundation float) */
.sa-equal { display: flex; flex-wrap: wrap; }
.sa-equal::before, .sa-equal::after { display: none; }
.sa-equal > .columns { display: flex; float: none; }
.sa-equal > .columns > .sa-card { width: 100%; }

.sa-tour { text-align: left; cursor: pointer; font: inherit; transition: .15s; }
.sa-tour:hover, .sa-tour:focus { border-color: var(--sa-navy-2); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(11,42,91,.12); }
.sa-more { display: inline-block; margin-top: 10px; color: var(--sa-red); font-weight: 700; font-size: .9rem; }
.sa-thumb-xl { height: 220px; margin-bottom: 14px; }
#tour-modal { border-radius: 8px; padding: 1.6rem; max-width: 40rem; }
#brgy-modal { border-radius: 8px; padding: 1.6rem; max-width: 34rem; }
#brgy-modal .sa-table { margin-top: 12px; }
#brgy-modal td:first-child { font-weight: 600; color: var(--sa-navy); width: 45%; }
.sa-tba { color: var(--sa-muted); font-style: italic; }

/* contact form */
.sa-contact label { font-weight: 600; margin-top: 10px; }
.sa-contact input, .sa-contact textarea, .sa-contact select { margin-bottom: 0; }
.sa-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Top bar menu: keep items dark, never gray boxes ---------- */
#main-nav .top-bar-left > ul > li,
#main-nav .top-bar-right > ul > li { background: transparent; }
#main-nav li:not(.has-form) > a:not(.button) { background: transparent; line-height: 58px; }
#main-nav li.current-menu-item:not(.has-form) a:not(.button) { background: transparent; }
#main-nav li.name:not(.has-form) > a:not(.button) { color: #fff; }
#main-nav li:not(.has-form):hover > a:not(.button),
#main-nav li:not(.has-form) > a:not(.button):focus { background: #2c2c2c; color: #fff; }

/* ---------- Smooth scrolling ---------- */
html { scroll-behavior: smooth; }
.sa-carousel, .sa-hero, .sa-section { scroll-margin-top: 58px; }
@media screen and (max-width: 63.9375em) { .sa-carousel, .sa-hero, .sa-section { scroll-margin-top: 42px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Highlights carousel (Foundation Orbit) ---------- */
.sa-carousel { position: relative; background: var(--sa-navy); border-bottom: 4px solid var(--sa-gold); }
.sa-carousel .orbit-container { height: auto !important; background: var(--sa-navy); }
.sa-slide {
	min-height: 380px; display: flex !important; align-items: center;
	background-size: cover; background-position: center; color: #fff;
}
.sa-slide:not(.is-active) { display: none !important; }
.sa-slide > .row { width: 100%; }
.sa-slide-1 { background-image: linear-gradient(120deg, #0b2a5b, #1e4b8f); }
.sa-slide-2 { background-image: linear-gradient(120deg, #0b3b4f, #1d7a8c); }
.sa-slide-3 { background-image: linear-gradient(120deg, #4a1220, #a3243c); }
.sa-slide-4 { background-image: linear-gradient(120deg, #3a2a05, #b8860b); }
.sa-slide-body { padding: 48px 4rem 64px; }
.sa-slide h2 { color: #fff; font-size: 2.2rem; margin: .2rem 0 .6rem; }
.sa-slide p { font-size: 1.1rem; opacity: .95; margin-bottom: 1.2rem; }
.sa-carousel .orbit-previous, .sa-carousel .orbit-next {
	background: rgba(0,0,0,.25); color: #fff; padding: 1rem .8rem; border: 0;
}
.sa-carousel .orbit-previous:hover, .sa-carousel .orbit-next:hover { background: rgba(0,0,0,.55); }
.sa-carousel .orbit-bullets { position: absolute; bottom: 12px; left: 0; width: 100%; margin: 0; z-index: 10; }
.sa-carousel .orbit-bullets button { width: 12px; height: 12px; background: rgba(255,255,255,.45); border: 0; }
.sa-carousel .orbit-bullets button.is-active, .sa-carousel .orbit-bullets button:hover { background: var(--sa-gold); }
.sa-carousel .orbit-button-controls { top: 0; right: 0; background: rgba(0,0,0,.25); color: #fff; border: 0; z-index: 11; }
.sa-carousel .orbit-slide-number, .sa-carousel .orbit-caption { display: none; }
@media screen and (max-width: 40em) {
	.sa-slide { min-height: 340px; }
	.sa-slide-body { padding: 32px 3rem 56px; }
	.sa-slide h2 { font-size: 1.6rem; }
}

/* ---------- Agency footer ---------- */
#footer.sa-footer, #footer { background: #1b1b1b; border-top: 0; color: #bbb; font-size: .92rem; }
#footer .widget { padding: 1.6rem 0 1rem; }
#footer .widget-title { color: #fff; font-family: inherit; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
#footer a { color: #bbb; display: block; padding: 2px 0; text-decoration: none; }
#footer a:hover, #footer a:focus { color: #fff; }
#footer .sa-footer-seal { display: block; margin-bottom: 10px; }
#footer p { margin: 0; }
.sa-subfoot { background: #111; color: #888; font-size: .82rem; text-align: center; padding: 12px 16px; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 63.9375em) {
	#agency-name { font-size: 1.6rem !important; }
	.sa-hero { padding: 40px 0; }
	.sa-hero .columns + .columns { margin-top: 24px; }
}
@media screen and (max-width: 40em) {
	#agency-name { font-size: 1.45rem !important; }
	#textlogo-image, #textlogo-image img { width: 64px; height: 64px; }
	#textlogo-image { display: inline-block; margin: 0 auto; }
	#textlogo-wrapper { text-align: center; }
	.sa-hero-title { font-size: 1.9rem; }
	.sa-news { grid-template-columns: 1fr; }
	.sa-news .sa-thumb { display: none; }
	#pst-container { text-align: center; margin-top: 0; }
}

/* seal badge, sitemap */
.sa-badge-seal { display: flex; justify-content: center; padding: 6px; }
.sa-badge-seal img { width: 80px; height: 80px; }
.sa-sitemap .sa-list { margin-left: 1.1rem; }
.sa-carousel .orbit { position: relative; }
#footer .widget-title { font-family: inherit; }

/* ---------- Bids and Awards / Careers ---------- */
.sa-listbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 12px; }
.sa-listbar input[type=search] { flex: 1 1 260px; max-width: 420px; margin: 0; }
.sa-listbar select { width: auto; margin: 0; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-chip { border: 1px solid var(--sa-line); background: #fff; color: var(--sa-navy); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; margin: 0; }
.sa-chip:hover, .sa-chip:focus { border-color: var(--sa-navy-2); }
.sa-chip.is-on { background: var(--sa-navy); color: #fff; border-color: var(--sa-navy); }
.sa-items { list-style: none; margin: 0 0 14px; padding: 0; }
.sa-item { background: #fff; border: 1px solid var(--sa-line); border-left: 5px solid var(--sa-navy-2); border-radius: 8px; padding: 14px 18px; margin-bottom: 12px; }
.sa-item-closed, .sa-item-cancelled { border-left-color: #8a94a6; }
.sa-item-awarded { border-left-color: #1a7f37; }
.sa-item-open { border-left-color: var(--sa-gold); }
.sa-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; font-size: .85rem; }
.sa-badge-state { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; padding: 2px 9px; border-radius: 4px; }
.sa-st-open { background: #fff3cd; color: #6b4e00; }
.sa-st-closed, .sa-st-cancelled, .sa-st-filled { background: #e8ebf0; color: #3a4352; }
.sa-st-awarded { background: #dff3e4; color: #14612b; }
.sa-item-type { color: var(--sa-muted); font-weight: 600; }
.sa-item-ref { margin-left: auto; color: var(--sa-muted); font-variant-numeric: tabular-nums; }
.sa-item-title { font-size: 1.1rem; margin: 2px 0 8px; line-height: 1.3; }
.sa-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 18px; margin: 0 0 8px; }
.sa-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sa-muted); }
.sa-meta dd { margin: 0; font-weight: 600; }
.sa-item-body { margin: 8px 0; }
.sa-item-files { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sa-item-files .button { margin: 0; padding: .55rem 1rem; }
.sa-more-details summary { cursor: pointer; font-weight: 700; color: var(--sa-navy-2); padding: 4px 0; }
.sa-trans-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sa-trans-links .button { margin: 0; }

/* Bids and Awards: title + Download only */
.sa-bidlist { list-style: none; margin: 14px 0; padding: 0; }
.sa-bid { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--sa-line); border-left: 5px solid var(--sa-navy-2); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.sa-bid .sa-form-ico { color: var(--sa-red); font-size: 1.5rem; flex: none; }
.sa-bid-title { flex: 1; font-family: Merriweather, Georgia, serif; font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--sa-navy); text-decoration: none; }
a.sa-bid-title:hover, a.sa-bid-title:focus { text-decoration: underline; }
.sa-bid-files { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sa-bid-files .button { margin: 0; padding: .55rem 1.1rem; }
@media screen and (max-width: 40em) { .sa-bid { flex-wrap: wrap; } .sa-bid-files { width: 100%; justify-content: flex-start; } }

/* Departments and Offices: separate page + link block on the home page */
.sa-deptlink { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; height: auto; margin-top: 8px; }
.sa-deptlink h3 { margin: 0 0 4px; font-size: 1.15rem; }
.sa-deptlink p { margin: 0; }
.sa-deptlink .button { margin: 0; }
.sa-deptlist { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.sa-deptlist li { margin: 0; scroll-margin-top: 120px; }
.sa-deptlist li:target .sa-card { border-color: var(--sa-gold); box-shadow: 0 0 0 3px rgba(242,183,5,.35); }
.sa-deptlist .sa-card { height: 100%; }
.sa-deptlist h2 { font-size: .98rem; border: 0; margin: .2rem 0 .4rem; padding: 0; min-height: 2.5em; line-height: 1.25; }

/* pictures of officials, SB members, barangays */
.sa-avatar-img { overflow: hidden; background: #fff; border: 2px solid var(--sa-line); padding: 0; }
.sa-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-thumb-xs { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 10px; border: 1px solid var(--sa-line); }
.sa-brgy-photo { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; margin: 6px 0 12px; }
.sa-cap-wrap { display: inline-flex; align-items: center; gap: 12px; }
.sa-cap-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--sa-line); }

/* privacy policy page */
.sa-policy-head { background: var(--sa-navy); color: #fff; border-radius: 8px; padding: 18px 22px; margin-bottom: 18px; border-left: 6px solid var(--sa-gold); }
.sa-policy-head p { margin: 0; color: #fff; }
.sa-policy-head .sa-policy-title { font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 1.3rem; }
.entry-content h2 { font-size: 1.25rem; color: var(--sa-navy); margin-top: 1.6rem; padding-bottom: 6px; border-bottom: 2px solid var(--sa-gold); }
.entry-content h3 { font-size: 1.05rem; color: var(--sa-red); margin-top: 1.2rem; }
.entry-content ul li { margin-bottom: .45rem; }
.sa-policy-contact { background: #fff; border: 1px solid var(--sa-line); border-left: 4px solid var(--sa-gold); border-radius: 6px; padding: 14px 18px; margin: 10px 0 18px; }
.sa-policy-contact p { margin: 0 0 4px; }

/* ---------- Images: sample photos, no layout shift, soft reveal ---------- */
.sa-slide { position: relative; overflow: hidden; }
.sa-slide-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sa-slide.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,42,91,.9), rgba(11,42,91,.45) 55%, rgba(11,42,91,.1)); }
.sa-slide > .row { position: relative; z-index: 2; }
.sa-slide.is-active { animation: saFade .7s ease both; } /* orbit runs with useMUI:false (GWT ships no Motion UI CSS) */
@keyframes saFade { from { opacity: 0; } to { opacity: 1; } }

.sa-thumb { position: relative; }
.sa-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa-js .sa-thumb img { opacity: 0; transition: opacity .35s ease; }
.sa-js .sa-thumb img.is-loaded { opacity: 1; }
.sa-thumb-lg img { height: 100%; }
@media (prefers-reduced-motion: reduce) { .sa-slide.is-active { animation: none; } .sa-thumb img { transition: none; } }

/* tourism cards: content starts at the top (buttons centre their content by default) */
.sa-tour { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.sa-tour .sa-thumb-lg { flex: none; }
.sa-badge-seal { flex: 1 1 100%; }
.sa-forms-group { scroll-margin-top: 70px; }
.sa-forms-group:target .sa-subfoot, .sa-forms-group:target > .sa-subtitle { color: var(--sa-red); }

/* ---------- Message of the Mayor ---------- */
.sa-mayor { background: #fff; border-top: 4px solid var(--sa-gold); }
.sa-mayor-photo { max-width: 260px; margin: 0 auto 18px; }
.sa-mayor-photo img, .sa-mayor-side img { display: block; width: 100%; height: auto; border-radius: 10px; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(11,42,91,.18); }
.sa-mayor-initials {
	width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; display: grid; place-items: center;
	background: linear-gradient(135deg, #e8eef9, #b9c9e8); color: var(--sa-navy);
	font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 3.4rem; box-shadow: 0 6px 18px rgba(11,42,91,.12);
}
.sa-mayor-quote { margin: .4rem 0 1rem; padding: 0 0 0 18px; border-left: 4px solid var(--sa-gold); }
.sa-mayor-quote p { font-size: 1.12rem; line-height: 1.75; color: var(--sa-ink); font-style: italic; }
.sa-mayor-sign { margin: 0 0 14px; line-height: 1.4; }
.sa-mayor-sign strong { font-family: Merriweather, Georgia, serif; color: var(--sa-navy); font-size: 1.05rem; }
.sa-mayor-sign span { color: var(--sa-muted); font-size: .92rem; }
.sa-mayor-layout { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.sa-mayor-side { order: 2; }
.sa-mayor-text { font-size: 1.08rem; line-height: 1.8; }
@media screen and (max-width: 40em) { .sa-mayor-layout { grid-template-columns: 1fr; } .sa-mayor-side { order: -1; max-width: 260px; margin: 0 auto; } }

/* breadcrumbs: Foundation's light-blue link (#2ba6cb on white = 2.8:1) fails WCAG AA; use the site navy (9:1) */
#breadcrumbs .breadcrumbs a, #breadcrumbs a.pathway { color: #123a7a; text-decoration: underline; }
#breadcrumbs .breadcrumbs li, #breadcrumbs .breadcrumbs .separator { color: #3a4352; }

/* Tourism: one row that scrolls sideways (swipe, scrollbar, arrows or arrow keys) */
.sa-rail-wrap { position: relative; }
.sa-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 16px; -webkit-overflow-scrolling: touch; scrollbar-color: var(--sa-navy-2, #123a7a) #e3e8f1; outline-offset: 2px; }
.sa-rail-item { flex: 0 0 calc((100% - 40px) / 3); min-width: 280px; scroll-snap-align: start; display: flex; }
.sa-rail-item > .sa-tour { width: 100%; margin: 0; }
.sa-rail::-webkit-scrollbar { height: 10px; }
.sa-rail::-webkit-scrollbar-track { background: #e3e8f1; border-radius: 6px; }
.sa-rail::-webkit-scrollbar-thumb { background: #123a7a; border-radius: 6px; }
.sa-rail-btn { position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #c9d2e3; background: #fff; color: #0b2a5b; font-size: 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(11,42,91,.2); }
.sa-rail-btn:hover, .sa-rail-btn:focus { background: #0b2a5b; color: #fff; }
.sa-rail-prev { left: -14px; } .sa-rail-next { right: -14px; }
@media (max-width: 40em) { .sa-rail-item { flex-basis: 82%; } .sa-rail-prev { left: 2px; } .sa-rail-next { right: 2px; } }
@media (prefers-reduced-motion: reduce) { .sa-rail { scroll-behavior: auto; } }

/* Data Privacy notice popup (contact form) */
.sa-consent { display: block; background: #f4f6fa; border: 1px solid var(--sa-line, #dfe4ec); border-radius: 8px; padding: 10px 12px; margin: 12px 0; font-weight: 600; cursor: pointer; }
.sa-consent input { margin: 0 8px 0 0; vertical-align: middle; }
#privacy-modal ul { margin: 0 0 12px 1.2rem; }
#privacy-modal .sa-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
#privacy-modal .sa-consent input { flex: none; margin: 4px 0 0; width: 18px; height: 18px; }
#privacy-modal .sa-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0; }
#privacy-modal .sa-actions .button { margin: 0; padding: 12px 20px; line-height: 1.2; }
#privacy-modal .sa-actions .button.secondary { background: #e9ecf2; color: #1c2430; }
#privacy-modal .sa-actions .button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 40em) { #privacy-modal .sa-actions .button { flex: 1 1 100%; } }

/* Footer, first column: larger seal, centred with its text */
#footer .sa-footer-seal { width: 132px; height: 132px; margin: 0 auto 14px; object-fit: contain; }
#footer #supplementary > .columns:first-child { text-align: center; }
#footer #supplementary > .columns:first-child .widget-title, #footer #supplementary > .columns:first-child p { text-align: center; }

/* Pagination under the Transparency table */
.sa-table tbody tr[hidden] { display: none; }
.sa-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 4px; }
.sa-pager[hidden] { display: none; }
.sa-pager-info { color: var(--sa-muted, #5b6574); font-size: .95rem; }
.sa-pager-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-pg { min-width: 40px; padding: 8px 12px; border: 1px solid var(--sa-line, #dfe4ec); background: #fff; color: var(--sa-navy, #0b2a5b); border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
.sa-pg:hover:not(:disabled), .sa-pg:focus { background: #eef3fb; border-color: var(--sa-navy, #0b2a5b); }
.sa-pg.is-on { background: var(--sa-navy, #0b2a5b); color: #fff; border-color: var(--sa-navy, #0b2a5b); }
.sa-pg:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 40em) { .sa-pager { justify-content: center; } .sa-pager-info { width: 100%; text-align: center; } }

/* "Read more" links inside text must not rely on colour alone (WCAG 1.4.1) */
.entry-content a.moretag, .entry-content p a.more-link { text-decoration: underline; font-weight: 600; }
