/* ==========================================================================
   CIIF Oil Mills Group — Government portal theme
   Layout patterned after standard PH government agency portals
   ========================================================================== */

:root {
  /* CIIF brand palette: coconut green + gold */
  --blue: #008B45;          /* primary (CIIF green) */
  --blue-dark: #006B3A;     /* primary hover */
  --blue-darker: #0A4D2C;   /* deep green — headings, banners */
  --green: #F4D21F;         /* accent (CIIF gold) */
  --orange: #ee5c29;
  --dark: #1d1d1b;
  --gray-darkest: #212529;
  --gray-dark: #343434;
  --gray: #6c757d;
  --gray-mid: #495057;
  --gray-light: #f5f5f5;
  --gray-lighter: #f8f9fa;
  --border: #dee2e6;
  --white: #ffffff;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: 'Roboto Condensed', 'Roboto', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-darkest);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Page shell (boxed layout)
   ========================================================================== */

.page-shell {
  max-width: 1366px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 24px rgba(0,0,0,.06);
}

/* ==========================================================================
   Header: top nav bar + brand banner strip
   ========================================================================== */

.site-header {
  background: var(--white);
  position: relative;
  z-index: 200;
}

/* --- Top navigation bar --- */

.top-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.top-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
}

.govph-link {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--gray-dark);
  text-transform: uppercase;
  padding: 0 18px 0 0;
}

.govph-link:hover { color: var(--blue); }

.main-nav { display: flex; align-items: stretch; list-style: none; flex-wrap: wrap; }

.main-nav > li { position: relative; display: flex; }

.main-nav > li > a {
  display: flex;
  align-items: center;
  color: #555555;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 23px 11px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.main-nav > li > a:hover,
.main-nav > li.active > a,
.main-nav > li.open > a {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* --- Search --- */

.nav-search { position: relative; }

.search-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #555555;
  font-size: 15px;
  padding: 0 14px;
}

.search-toggle:hover { color: var(--blue); }

.search-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  padding: 12px;
  z-index: 400;
  white-space: nowrap;
}

.search-panel.open { display: flex; gap: 8px; }

.search-panel input {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  width: 240px;
  outline: none;
}

.search-panel input:focus { border-color: var(--blue); }

.search-panel .btn { padding: 9px 18px; }

/* --- Brand banner strip --- */

.brand-strip {
  background: linear-gradient(90deg, #f2f5f7 0%, #e9eef2 50%, #f2f5f7 100%);
  border-bottom: 1px solid var(--border);
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gray-darkest);
}

.brand img.brand-logo {
  height: 88px;
  width: auto;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; }

.brand-text .brand-official {
  font-size: 15.5px;
  color: var(--gray);
}

.brand-text .brand-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-darkest);
}

.header-seals {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-seals img { height: 66px; width: auto; }
.header-seals a { display: block; }

/* --- Floating side tabs --- */

.side-tab {
  position: fixed;
  right: 0;
  z-index: 500;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 20px 11px;
  border-radius: 0 3px 3px 0;
}

.side-tab:hover { color: var(--white); }

.side-tab-feedback { top: 170px; background: var(--blue); }
.side-tab-feedback:hover { background: var(--blue-dark); }

.side-tab-trade { top: 330px; background: var(--green); color: #0A4D2C; }
.side-tab-trade:hover { background: #E5C100; color: #0A4D2C; }

.main-nav .caret {
  display: inline-block;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  list-style: none;
  z-index: 300;
}

.main-nav > li:hover > .dropdown-menu,
.main-nav > li.open > .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  color: var(--gray-darkest);
  border-bottom: 1px solid var(--gray-light);
}

.dropdown-menu li:last-child a { border-bottom: 0; }

.dropdown-menu a:hover { background: var(--gray-lighter); color: var(--blue); }

/* --- Mobile nav toggle --- */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--blue-darker);
  font-size: 20px;
  line-height: 1;
}

/* ==========================================================================
   Hero slider
   ========================================================================== */

.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--gray-dark);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
}

.hero-slide.active { display: block; animation: heroFade .8s ease; }

@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 40, .32);
}

.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-caption .container { max-width: 1000px; }

.hero-caption h2 {
  font-size: 58px;
  font-weight: 300;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.hero-caption p {
  margin: 18px auto 0;
  font-size: 16.5px;
  max-width: 760px;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

.hero-caption .btn { margin-top: 22px; }

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 3;
}

.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 0;
  border: 0;
  background: rgba(255,255,255,.85);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active { background: var(--blue); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,.35);
  border: 0;
  color: var(--white);
  font-size: 26px;
  width: 46px; height: 46px;
  cursor: pointer;
  border-radius: 3px;
  transition: background .2s;
}

.hero-arrow:hover { background: rgba(0,0,0,.6); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }

.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--blue-darker); }

/* ==========================================================================
   Generic sections
   ========================================================================== */

.section { padding: 64px 0; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue-darker);
}

.section-title .title-rule {
  width: 64px;
  height: 4px;
  background: var(--green);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-title p {
  margin-top: 14px;
  color: var(--gray);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-alt { background: var(--gray-light); }

/* --- Card grid (featured / news) --- */

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(16, 42, 67, .06);
  transition: box-shadow .2s, transform .2s;
}

.card:hover { box-shadow: 0 14px 30px rgba(16, 42, 67, .14); transform: translateY(-4px); }

.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.card-date {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
  margin-bottom: 8px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-darker);
  line-height: 1.25;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card p { font-size: 14.5px; color: var(--gray-mid); flex: 1; }

.card .card-link {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13.5px;
  letter-spacing: .06em;
}

.card .card-link::after { content: " \2192"; }

/* --- Modern news cards (announcements) --- */

.news-card .card-img {
  aspect-ratio: 16 / 9;
}

.news-card .card-excerpt {
  font-size: 14.5px;
  color: var(--gray-mid);
  flex: 1;
}

.news-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
}

.news-card .card-footer .card-date {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.news-card .card-footer .card-date::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.btn-readmore {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12.5px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  white-space: nowrap;
  transition: all .2s;
}

.btn-readmore:hover { background: var(--blue); color: var(--white); }

/* --- Single announcement view --- */

.article-photo {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 26px;
}

.article-photo img { width: 100%; max-height: 460px; object-fit: cover; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 18px;
}

.article-meta::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.article-body { max-width: 820px; font-size: 16.5px; }
.article-body p { margin-bottom: 16px; }

/* --- Who we are / short description block --- */

.who-we-are {
  background: linear-gradient(rgba(10,77,44,.88), rgba(10,77,44,.93)), url('../images/photo-seedlings.jpg') center/cover no-repeat, var(--blue-darker);
  color: var(--white);
  text-align: center;
}

.who-we-are h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.who-we-are .title-rule {
  width: 64px; height: 4px;
  background: var(--green);
  margin: 14px auto 24px;
  border-radius: 2px;
}

.who-we-are p {
  max-width: 820px;
  margin: 0 auto 12px;
  font-size: 17px;
  color: #eaf5ee;
}

.who-we-are .btn { margin-top: 20px; }

/* --- Stats strip --- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
  margin-top: 44px;
}

.stat .stat-value {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.stat .stat-label {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #bfe3cc;
  margin-top: 6px;
}

/* --- Extra links strip --- */

.extra-links {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}

.extra-links .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}

.extra-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 14px;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.extra-links a:hover { color: var(--blue); }

.extra-links .seal-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
}

/* ==========================================================================
   Page banner (interior pages)
   ========================================================================== */

.page-banner {
  background: linear-gradient(rgba(6,48,27,.84), rgba(6,48,27,.84)), var(--blue-darker);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 54px 0;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  margin-top: 10px;
  color: #bfe3cc;
}

.breadcrumb a { color: #ddf0e4; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #7fb193; }

/* ==========================================================================
   Interior page content
   ========================================================================== */

.page-content { padding: 56px 0; }

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--blue-darker);
  text-transform: uppercase;
  margin: 34px 0 14px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--gray-dark);
  margin: 26px 0 10px;
}

.page-content p { margin-bottom: 14px; }

.page-content ul, .page-content ol { margin: 0 0 16px 24px; }
.page-content li { margin-bottom: 6px; }

.content-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 44px;
  align-items: start;
}

.sidebar-box {
  background: var(--gray-lighter);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--blue-darker);
  margin: 0 0 14px;
}

.sidebar-box ul { list-style: none; margin: 0; }
.sidebar-box li { border-bottom: 1px solid var(--border); }
.sidebar-box li:last-child { border-bottom: 0; }
.sidebar-box li a { display: block; padding: 9px 0; font-size: 14.5px; }

/* --- Member company cards --- */

.company-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--gray-lighter);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 30px;
  margin-bottom: 24px;
}

.company-card .company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  min-height: 120px;
}

.company-card .company-logo img { max-height: 96px; width: auto; }

.company-card h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--blue-darker);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.company-card .company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--gray);
}

.company-card .company-meta span { display: inline-flex; align-items: center; gap: 6px; }
.company-card .company-meta strong { color: var(--gray-dark); }

@media (max-width: 640px) {
  .company-card { grid-template-columns: 1fr; text-align: center; }
  .company-card .company-meta { justify-content: center; }
}

/* --- Tables (procurement etc.) --- */

.table-wrap { overflow-x: auto; margin-bottom: 24px; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}

.data-table th {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13.5px;
  text-align: left;
  padding: 12px 14px;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:nth-child(even) td { background: var(--gray-lighter); }

/* --- Year tabs --- */

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.year-tabs button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 9px 20px;
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  border-radius: 3px;
  cursor: pointer;
  transition: all .15s;
}

.year-tabs button.active,
.year-tabs button:hover {
  background: var(--blue);
  color: var(--white);
}

.year-panel { display: none; }
.year-panel.active { display: block; }

/* --- Awarded label + table pagination --- */

.bid-details {
  margin-top: 8px;
  font-size: 13.5px;
}

.bid-details > summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  color: var(--blue);
  list-style: none;
  user-select: none;
}

.bid-details > summary::-webkit-details-marker { display: none; }

.bid-details > summary::before {
  content: "\25B6";
  font-size: 9px;
  transition: transform .15s;
}

.bid-details[open] > summary::before { transform: rotate(90deg); }
.bid-details > summary:hover { color: var(--blue-dark); }

.bid-details-body {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--gray-lighter);
  border-left: 3px solid var(--green);
  border-radius: 0 4px 4px 0;
  color: var(--gray-mid);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.badge-awarded {
  display: inline-block;
  background: var(--green);
  color: #0A4D2C;
  border: 1px solid #0A4D2C;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.table-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -10px 0 28px;
}

.table-pagination button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 7px 15px;
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  border-radius: 3px;
  cursor: pointer;
  transition: all .15s;
}

.table-pagination button:hover:not(:disabled) { background: var(--blue); color: var(--white); }
.table-pagination button:disabled { opacity: .4; cursor: default; }

.table-pagination .pg-info {
  font-size: 13.5px;
  color: var(--gray);
}

.table-pagination .pg-showall {
  margin-left: auto;
  border-color: var(--gray);
  color: var(--gray-mid);
}

.table-pagination .pg-showall:hover { background: var(--gray-lighter); color: var(--gray-darkest); }

/* --- Vision / mission cards --- */

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.vm-card {
  background: var(--gray-lighter);
  border: 1px solid var(--border);
  border-top: 5px solid var(--green);
  border-radius: 4px;
  padding: 34px 30px;
}

.vm-card h2 { margin-top: 0; }

/* --- Product cards --- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}

.product-card .card-img {
  aspect-ratio: auto;
  height: 220px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.product-card .card-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 184px;
  object-fit: contain;
}

.product-section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--blue-darker);
  text-transform: uppercase;
  margin: 40px 0 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green);
}

.product-section-title:first-of-type { margin-top: 0; }

@media (max-width: 991px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* --- Contact --- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info-item .ci-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info-item h3 { margin: 0 0 4px; }

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
  color: var(--gray-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 18px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue); }

/* --- Search page --- */

.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-bottom: 28px;
}

.search-page-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
}

.search-page-form input:focus { border-color: var(--blue); }

ul.search-results {
  list-style: none;
  margin: 0 0 30px;
}

ul.search-results li {
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-light);
}

ul.search-results li a { font-weight: 500; }

ul.search-results .sr-date {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-top: 3px;
}

/* --- Location map --- */

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(16, 42, 67, .06);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.muted-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gray);
}

@media (max-width: 600px) {
  .map-wrap iframe { height: 300px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--gray-dark); color: #cfcfcf; font-size: 14.5px; }

.footer-upper {
  padding: 54px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-upper h3 {
  font-family: var(--font-heading);
  color: var(--white);
  text-transform: uppercase;
  font-size: 16.5px;
  letter-spacing: .05em;
  margin-bottom: 18px;
}

.footer-upper p { margin-bottom: 10px; }

.footer-upper ul { list-style: none; }
.footer-upper li { margin-bottom: 9px; }
.footer-upper a { color: #cfcfcf; }
.footer-upper a:hover { color: var(--white); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand img {
  height: 84px;
  width: auto;
}

.footer-brand .fb-name {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  font-size: 17px;
  line-height: 1.2;
}

.social-links { display: flex; gap: 10px; margin-top: 16px; }

.social-links a {
  width: 38px; height: 38px;
  border: 1px solid #5a5a5a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfcfcf;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

.social-links a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.footer-govph {
  background: var(--gray-darkest);
  padding: 40px 0;
  border-top: 1px solid #454545;
}

.footer-govph .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-govph h3 {
  font-family: var(--font-heading);
  color: var(--white);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.footer-govph p { font-size: 13.5px; color: #a9a9a9; }

.footer-govph ul { list-style: none; }
.footer-govph li { margin-bottom: 7px; font-size: 13.5px; }
.footer-govph a { color: #a9a9a9; }
.footer-govph a:hover { color: var(--white); }

.footer-copyright {
  background: #171717;
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: #8d8d8d;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
  .top-nav-inner { justify-content: space-between; }
  .govph-link { padding: 14px 0; }
  .nav-toggle { display: block; margin: 8px 0; }
  .header-seals img { height: 46px; }
  .brand img.brand-logo { height: 64px; }
  .brand-text .brand-name { font-size: 18px; }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--border);
  }

  .main-nav.open { display: flex; }

  .main-nav > li { display: block; }

  .main-nav > li > a {
    display: block;
    padding: 13px 8px;
    white-space: normal;
    border-bottom: 1px solid var(--gray-light);
  }

  /* Mobile: show the search inline inside the open menu */
  .nav-search { display: block; padding: 12px 8px; }
  .search-toggle { display: none; }
  .search-panel {
    display: flex;
    gap: 8px;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    white-space: normal;
  }
  .search-panel input { width: 100%; flex: 1; }

  .dropdown-menu {
    position: static;
    border: 0;
    border-top: 0;
    box-shadow: none;
    background: var(--gray-lighter);
  }

  .dropdown-menu a { padding-left: 28px; }

  .side-tab { display: none; }

  .card-grid, .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-upper { grid-template-columns: 1fr 1fr; }
  .content-two-col, .contact-grid, .vm-grid, .product-grid { grid-template-columns: 1fr; }
  .hero-caption h2 { font-size: 30px; }
  .hero-slide { min-height: 400px; }
}

@media (max-width: 600px) {
  .card-grid, .stats-strip, .footer-upper, .footer-govph .container { grid-template-columns: 1fr; }
  .hero-caption h2 { font-size: 24px; }
  .hero-caption p { font-size: 15px; }
  .hero-slide { min-height: 340px; }
  .hero-arrow { display: none; }
  .section { padding: 44px 0; }
  .section-title h2 { font-size: 25px; }
  .page-banner h1 { font-size: 28px; }
  .top-strip .container { justify-content: center; }
}

/* ==========================================================================
   Entrance animations
   Page fades in on load; sections rise gently into view while scrolling.
   Note: the page shell animates OPACITY ONLY — animating transform here
   would break the sticky nav and the fixed side tabs.
   ========================================================================== */

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.page-shell {
  animation: pageFadeIn .45s ease-out both;
}

/* Scroll reveal. The `js-anim` class is added by JavaScript, so if scripts
   are unavailable everything stays visible. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease-out, transform .55s ease-out;
  will-change: opacity, transform;
}

.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered entrance for items sitting side by side in a grid */
.js-anim .reveal[data-delay="1"] { transition-delay: .09s; }
.js-anim .reveal[data-delay="2"] { transition-delay: .18s; }
.js-anim .reveal[data-delay="3"] { transition-delay: .27s; }

/* Respect the visitor's motion preference */
@media (prefers-reduced-motion: reduce) {
  .page-shell { animation: none; }
  .js-anim .reveal,
  .js-anim .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-slide.active { animation: none; }
}
