/*
 * ============================================================
 *  SORECO II – Sorsogon II Electric Cooperative
 *  Main Stylesheet  |  assets/css/style.css
 *  Edit this file for ALL visual / layout changes.
 * ============================================================
 */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --blue:       #003a8c;
  --blue-mid:   #0057c8;
  --blue-light: #1a7fe8;
  --gold:       #f7c22c;
  --gold-dark:  #d9a60a;
  --red:        #c0392b;
  --white:      #ffffff;
  --off-white:  #f4f6fb;
  --dark:       #0d1b2a;
  --gray:       #5a6a7e;
  --light-gray: #dde3ed;
  --card-shadow: 0 4px 24px rgba(0,58,140,0.10);
  --transition:  all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  overflow-x: hidden;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--blue);
  color: rgba(255,255,255,0.80);
  font-size: 0.78rem;
  padding: 6px 0;
}
.topbar .inner {
  max-width: 1280px; margin: auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 4px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .right { display: flex; gap: 18px; align-items: center; }
.topbar .socials a { font-size: 0.9rem; margin-left: 6px; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.main-header {
  background: #1a3a8a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  position: sticky; top: 0; z-index: 1000;
}
.main-nav {
  max-width: 1280px; margin: auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  transition: height 0.25s ease;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.logo-img {
  width: 56px; height: 56px; object-fit: contain;
  transition: width 0.25s ease, height 0.25s ease;
}
.logo-text {
  line-height: 1.2;
}
.logo-text .tagline { transition: opacity 0.2s ease, max-height 0.25s ease; }

/* ── Shrunk header on scroll (desktop) ─────────────────────── */
.main-header.scrolled .main-nav { height: 52px; }
.main-header.scrolled .logo-img { width: 40px; height: 40px; }
.main-header.scrolled .logo-text .tagline { opacity: 0; max-height: 0; overflow: hidden; }
.main-header.scrolled .logo-text .name { font-size: 1.1rem; }
.logo-icon {
  width: 50px; height: 50px; background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold); flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text .name {
  font-family: 'Oswald', sans-serif; font-size: 1.25rem;
  font-weight: 700; color: #ffffff; letter-spacing: 1px; display: block;
}
.logo-text .tagline {
  font-size: 0.68rem; color: rgba(255,255,255,0.75);
  text-transform: uppercase; letter-spacing: 0.5px; display: block;
}
.nav-links { display: flex; align-items: center; list-style: none; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px; padding: 8px 14px;
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 0.88rem;
  color: #ffffff; text-decoration: none; border-radius: 6px;
  transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { background: rgba(255,255,255,0.15); color: #ffffff; }
.nav-links .arrow { font-size: 0.65rem; transition: transform 0.2s; }
.nav-links > li:hover .arrow { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(13,27,42,0.18), 0 2px 6px rgba(13,27,42,0.06);
  border-radius: 12px; min-width: 270px; z-index: 2000; overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.dropdown-inner { padding: 8px; }
.dropdown a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  padding: 11px 14px; border-radius: 8px;
  font-size: 0.87rem; color: var(--dark); text-decoration: none;
  font-weight: 500; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dropdown a i.dd-icon {
  display: flex !important;
  width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
  background: var(--off-white); color: var(--blue);
  align-items: center; justify-content: center;
  font-size: 0.82rem; transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: var(--off-white); color: var(--blue); }
.dropdown a:hover i.dd-icon { background: var(--blue); color: var(--gold); }
.dropdown .sub-label {
  padding: 12px 14px 6px; font-size: 0.66rem; text-transform: uppercase;
  color: var(--gray); font-weight: 700; letter-spacing: 1.2px;
}
.dropdown .sub-label:not(:first-child) {
  margin-top: 4px; border-top: 1px solid var(--light-gray); padding-top: 10px;
}
.nav-links > li > a .arrow { transition: transform 0.18s ease; }
.nav-links > li.dd-active > a .arrow { transform: rotate(180deg); }

.btn-portal:hover { background: var(--gold-dark); transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; background: #ffffff;
  border-radius: 2px; transition: var(--transition);
}

/* ── TICKER ─────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--red); overflow: hidden;
  white-space: nowrap; padding: 8px 0;
}
.ticker-content {
  display: inline-block; animation: ticker 30s linear infinite;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.88rem; letter-spacing: 0.5px; color: var(--white);
}
.ticker-content span { margin-right: 80px; }
.ticker-content i { color: var(--gold); margin-right: 6px; }
@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── HERO SLIDER ────────────────────────────────────────── */
.hero { position: relative; height: 580px; overflow: hidden; background: var(--blue); }
.hero-slides { display: flex; height: 100%; transition: transform 1s cubic-bezier(0.86,0,0.07,1); }
.hero-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(0,15,50,0.80) 0%,rgba(0,40,120,0.30) 60%,transparent 100%);
}
.hero-content {
  position: relative; z-index: 10; max-width: 600px; padding: 0 80px;
  animation: slideIn 0.7s ease forwards;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-tag {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
  padding: 4px 12px; border-radius: 3px; margin-bottom: 16px;
}
.hero-content h1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 3.4rem; color: var(--white); line-height: 1.08;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px;
}
.hero-content p { color: rgba(255,255,255,0.82); font-size: 1rem; line-height: 1.6; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-controls {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 20;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--gold); width: 28px; border-radius: 5px; }
.hero-arrow { display: none !important; }

/* ── QUICK LINKS BAR ────────────────────────────────────── */
.quick-links { background: var(--blue); padding: 0; }
.quick-links-inner {
  max-width: 1280px; margin: auto;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.quick-link-item {
  display: flex; align-items: center; gap: 12px; padding: 18px 24px;
  color: rgba(255,255,255,0.88); text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.12); transition: var(--transition);
}
.quick-link-item:last-child { border-right: none; }
.quick-link-item:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
.quick-link-item i { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; }
.quick-link-item:hover i { color: var(--white); }
.ql-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; display: block;
}
.ql-sub { font-size: 0.73rem; opacity: 0.70; display: block; }

/* ── SECTION COMMONS ────────────────────────────────────── */
section { padding: 70px 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 3px; color: var(--blue-light);
  background: rgba(0,87,200,0.08); padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}
.section-header h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 2.5rem; text-transform: uppercase; color: var(--blue);
  letter-spacing: 1px; line-height: 1.1;
}
.section-header p { color: var(--gray); max-width: 540px; margin: 12px auto 0; font-size: 0.95rem; line-height: 1.6; }
.section-divider { width: 60px; height: 4px; background: var(--gold); border-radius: 2px; margin: 12px auto 0; }
.container { max-width: 1280px; margin: auto; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold); color: var(--dark);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 28px; border-radius: 6px; text-decoration: none;
  border: none; cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--white);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 28px; border-radius: 6px; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6); transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-dark {
  background: var(--dark); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 24px; border-radius: 6px; text-decoration: none;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-dark:hover { background: var(--blue); }
.btn-outline-dark {
  background: transparent; color: var(--dark);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 24px; border-radius: 6px; text-decoration: none;
  border: 2px solid var(--dark); transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

/* ── POWER RATES ────────────────────────────────────────── */
#rates { background: var(--white); }
.rates-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.rate-card { border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); transition: var(--transition); }
.rate-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,58,140,0.18); }
.rate-card-head { background: var(--blue); padding: 18px 24px; color: var(--white); }
.rate-card-head h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px;
}
.rate-card-head .period { font-size: 0.75rem; opacity: 0.7; margin-top: 2px; }
.rate-card-body { padding: 20px 24px; background: var(--white); }
.rate-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--light-gray); font-size: 0.88rem;
}
.rate-row:last-child { border-bottom: none; }
.rate-row .label { color: var(--gray); font-weight: 500; max-width: 55%; }
.rate-row .value { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; color: var(--blue); text-align: right; }
.rate-card.highlight .rate-card-head { background: var(--gold); color: var(--dark); }
.rate-card.highlight .rate-row .value { color: var(--gold-dark); }

/* ── OFFICES ────────────────────────────────────────────── */
#offices { background: var(--off-white); }
.offices-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.office-card {
  background: var(--white); border-radius: 10px; box-shadow: var(--card-shadow);
  overflow: hidden; text-decoration: none; transition: var(--transition);
  display: flex; flex-direction: column;
}
.office-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,58,140,0.16); }
.office-img {
  height: 140px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--gold); position: relative; overflow: hidden;
}
.office-img::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,transparent,transparent 8px,rgba(255,255,255,0.03) 8px,rgba(255,255,255,0.03) 16px);
}
.office-info { padding: 14px 16px; flex: 1; }
.office-info h4 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; text-transform: uppercase; color: var(--blue); letter-spacing: 0.5px;
}
.office-info p { font-size: 0.75rem; color: var(--gray); margin-top: 4px; }
.office-info .office-badge {
  display: inline-block; background: var(--off-white); color: var(--blue-mid);
  font-size: 0.68rem; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── NEWS ───────────────────────────────────────────────── */
#news { background: var(--white); }
.news-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.news-featured {
  background: var(--off-white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--card-shadow); text-decoration: none;
  display: flex; flex-direction: column; transition: var(--transition);
}
.news-featured:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,58,140,0.14); }
.news-featured-img {
  height: 260px;
  background: linear-gradient(135deg,#0d3880 0%,#1a6acc 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--gold); position: relative;
}
.news-featured-img .news-cat {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); color: var(--dark);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 3px;
}
.news-featured-body { padding: 24px; flex: 1; }
.news-featured-body .date { font-size: 0.75rem; color: var(--gray); margin-bottom: 8px; }
.news-featured-body h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.4rem; color: var(--blue); line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.news-featured-body p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  background: var(--off-white); border-radius: 10px; padding: 16px;
  display: flex; gap: 14px; text-decoration: none;
  transition: var(--transition); box-shadow: 0 2px 8px rgba(0,58,140,0.06);
}
.news-item:hover { transform: translateX(4px); box-shadow: var(--card-shadow); }
.news-item-icon {
  width: 52px; height: 52px; background: var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--gold); flex-shrink: 0;
}
.news-item-text .date { font-size: 0.72rem; color: var(--gray); }
.news-item-text h4 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.95rem; color: var(--blue); text-transform: uppercase;
  letter-spacing: 0.4px; margin-top: 3px; line-height: 1.3;
}
.news-item-text p { font-size: 0.78rem; color: var(--gray); margin-top: 4px; line-height: 1.5; }

/* ── BULLETIN ───────────────────────────────────────────── */
#bulletin { background: var(--off-white); }
.bulletin-wrapper { position: relative; overflow: hidden; }
.bulletin-track { display: flex; gap: 20px; transition: transform 0.5s ease; }
.bulletin-card {
  flex-shrink: 0; width: calc(25% - 15px); background: var(--white);
  border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow);
  cursor: pointer; transition: var(--transition);
}
.bulletin-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,58,140,0.16); }
.bulletin-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gold);
}
.bulletin-info { padding: 14px 16px; }
.bulletin-info .bul-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  color: var(--blue-light); letter-spacing: 1px;
}
.bulletin-info h4 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--blue); text-transform: uppercase;
  margin-top: 4px; line-height: 1.3;
}
.bulletin-nav { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.bulletin-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--blue); background: var(--white);
  color: var(--blue); cursor: pointer; font-size: 0.9rem;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.bulletin-btn:hover { background: var(--blue); color: var(--white); }

/* ── ABOUT ──────────────────────────────────────────────── */
#about { background: var(--blue); color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-main-box {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 40px; text-align: center;
}
.about-main-box i { font-size: 5rem; color: var(--gold); margin-bottom: 16px; display: block; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.stat-box { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 18px; text-align: center; }
.stat-box .num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 2.2rem; color: var(--gold); }
.stat-box .lbl { font-size: 0.75rem; opacity: 0.75; margin-top: 2px; }
#about .section-header { text-align: left; }
#about .section-header h2 { color: var(--white); }
#about .section-label { background: rgba(247,194,44,0.18); color: var(--gold); }
#about .section-divider { margin-left: 0; }
.about-text p { line-height: 1.8; font-size: 0.95rem; opacity: 0.88; margin-bottom: 16px; }

/* ── CSR ────────────────────────────────────────────────── */
#csr { background: var(--white); }
.csr-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.csr-card { border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); transition: var(--transition); }
.csr-card:hover { transform: translateY(-4px); }
.csr-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gold); cursor: pointer; position: relative;
}
.csr-play {
  position: absolute; inset: 0; background: rgba(0,0,0,0.30);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.csr-play i { font-size: 2.5rem; color: var(--white); opacity: 0.85; }
.csr-thumb:hover .csr-play { background: rgba(0,58,140,0.5); }
.csr-caption { padding: 14px 16px; background: var(--white); }
.csr-caption h4 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; text-transform: uppercase; color: var(--blue);
}
.csr-caption p { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }

/* ── CONTACT STRIP ──────────────────────────────────────── */
#contact-strip { background: var(--gold); padding: 40px 24px; }
.contact-strip-inner {
  max-width: 1280px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.contact-strip-text h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 1.8rem; text-transform: uppercase; color: var(--dark); letter-spacing: 1px;
}
.contact-strip-text p { color: var(--dark); opacity: 0.75; font-size: 0.9rem; }
.contact-strip-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 60px 24px 0; }
.footer-grid {
  max-width: 1280px; margin: auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin: 16px 0; opacity: 0.70; }
.footer-socials { display: flex; gap: 10px; margin-top: 12px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.70); font-size: 0.85rem;
  text-decoration: none; transition: var(--transition);
}
.footer-socials a:hover { background: var(--blue-mid); border-color: var(--blue-mid); color: var(--white); }
.footer-col h5 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--white); margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.footer-col ul li a:before { content: '›'; color: var(--gold); font-weight: 700; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.83rem; }
.footer-contact-item i { color: var(--gold); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  max-width: 1280px; margin: 40px auto 0; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 0.78rem; opacity: 0.55;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); opacity: 1; }

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 12px; max-width: 600px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.modal-head {
  background: var(--blue); color: var(--white); padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px;
}
.modal-close { background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; opacity: 0.7; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 28px 24px; }
.modal-body p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ── MOBILE MENU (app-like, shared by ALL pages) ────────── */
.overlay-bg { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:4999; backdrop-filter:blur(2px); }
.overlay-bg.open { display:block; }
.mobile-menu {
  display:flex; flex-direction:column; position:fixed; top:0; right:-100%;
  width:min(340px,90vw); height:100%; background:#fff; z-index:5000;
  box-shadow:-6px 0 40px rgba(0,0,0,0.22);
  transition:right 0.32s cubic-bezier(0.4,0,0.2,1); overflow:hidden;
}
.mobile-menu.open { right:0; }
.mm-head {
  background:linear-gradient(135deg,#040e2b 0%,#1a3a8a 100%);
  padding:0 18px; height:68px; flex-shrink:0;
  display:flex; align-items:center; justify-content:space-between;
}
.mm-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.mm-brand .logo-icon { width:40px; height:40px; flex-shrink:0; }
.mm-brand img { width:40px; height:40px; object-fit:contain; flex-shrink:0; }
.mm-name { display:block; font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:.95rem; color:#fff; letter-spacing:1px; white-space:nowrap; }
.mm-sub  { display:block; font-size:.55rem; color:rgba(255,255,255,0.65); text-transform:uppercase; letter-spacing:.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mm-close { background:rgba(255,255,255,0.12); border:none; color:#fff; width:32px; height:32px; border-radius:50%; font-size:.95rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s; flex-shrink:0; }
.mm-close:hover { background:rgba(255,255,255,0.22); }
.mm-quick { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:14px 18px 10px; border-bottom:1px solid #eef0f5; flex-shrink:0; }
.mqb { display:flex; flex-direction:column; align-items:center; gap:5px; padding:11px 6px; background:#f4f6fb; border-radius:10px; text-decoration:none; color:#1a3a8a; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.5px; transition:all .2s; }
.mqb i { font-size:1.2rem; }
.mqb:hover { background:#1a3a8a; color:#fff; }
.mqb.gold { background:#f7c22c; color:#0d1b2a; }
.mqb.gold:hover { background:#d9a60a; }
.mm-body { flex:1; overflow-y:auto; padding-bottom:16px; }
.mm-sec { padding:12px 18px 4px; font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:1.5px; color:#9aabbc; }
.mm-item { display:flex; align-items:center; gap:10px; padding:12px 18px; color:#0d1b2a; text-decoration:none; font-weight:600; font-size:.86rem; border-bottom:1px solid #f0f2f7; transition:all .15s; }
.mm-item:hover { background:#f4f6fb; color:#1a3a8a; padding-left:24px; }
.mm-icon { width:32px; height:32px; border-radius:7px; background:#eef1fb; display:flex; align-items:center; justify-content:center; font-size:.85rem; color:#1a3a8a; flex-shrink:0; }
.mm-item.sub { padding:9px 18px 9px 32px; font-size:.8rem; font-weight:500; color:#5a6a7e; }
.mm-item.sub:hover { color:#1a3a8a; padding-left:38px; background:#f4f6fb; }
.mm-foot { padding:14px 18px; border-top:1px solid #eef0f5; flex-shrink:0; background:#f8fafd; }
.mm-foot a { display:flex; align-items:center; justify-content:center; gap:8px; background:#1a3a8a; color:#fff; padding:10px; border-radius:8px; font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:.88rem; text-transform:uppercase; letter-spacing:1px; text-decoration:none; }
.mm-foot a:hover { background:#0d2a6e; }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── SCROLL TO TOP ──────────────────────────────────────── */
#scrollTop {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; background: var(--blue); color: var(--white);
  border: none; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  z-index: 999; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,58,140,0.30); transition: var(--transition);
}
#scrollTop:hover { background: var(--gold); color: var(--dark); }
#scrollTop.visible { display: flex; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .offices-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .nav-links, .btn-portal { display: none; }
  .hamburger { display: flex; }
  .main-nav { height: 60px; }
  .logo-img { width: 44px; height: 44px; }
  .logo-text .name { font-size: 1.05rem; }
  .logo-text .tagline { font-size: 0.6rem; }
  .rates-grid  { grid-template-columns: 1fr; }
  .news-grid   { grid-template-columns: 1fr; }
  .about-grid  { grid-template-columns: 1fr; }
  .csr-grid    { grid-template-columns: 1fr 1fr; }
  .quick-links-inner { grid-template-columns: repeat(2,1fr); }
  .bulletin-card { width: calc(50% - 10px); }
  .hero-content { padding: 0 40px; }
  .hero-content h1 { font-size: 2.4rem; }
}
@media (max-width: 620px) {
  .main-nav { height: 56px; padding: 0 14px; }
  .logo-img { width: 38px; height: 38px; }
  .logo-text .name { font-size: 0.95rem; letter-spacing: 0.5px; }
  .logo-text .tagline { font-size: 0.55rem; }
  .offices-grid { grid-template-columns: 1fr; }
  .csr-grid     { grid-template-columns: 1fr; }
  .quick-links-inner { grid-template-columns: 1fr 1fr; }
  .bulletin-card { width: 100%; }
  .hero { height: 420px; }
  .hero-content h1 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-strip-inner { flex-direction: column; align-items: flex-start; }
}

/* ── LOGIN DROPDOWN ─────────────────────────────────────────── */
.nav-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.btn-login {
  display: flex; align-items: center; gap: 7px;
  background: var(--blue); color: var(--white);
  border: 2px solid var(--blue-mid);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 8px 16px; border-radius: 6px; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.btn-login:hover { background: var(--blue-mid); border-color: var(--blue-light); }
/* ── USER ICON BUTTON ──────────────────────────────────── */
.btn-user-icon {
  background: transparent;
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0;
}
.btn-user-icon:hover { opacity: 0.75; }

.login-dropdown-wrap { position: relative; }
.login-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,58,140,0.20);
  min-width: 260px; z-index: 3000; overflow: hidden;
  animation: dropIn 0.2s ease;
}
@keyframes dropIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
.login-dropdown.open { display: block; }
.login-dropdown-title {
  background: var(--blue); color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
  padding: 10px 16px;
}
.login-option {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  text-decoration: none; color: var(--dark);
  transition: var(--transition); border-bottom: 1px solid var(--light-gray);
}
.login-option:last-child { border-bottom: none; }
.login-option:hover { background: var(--off-white); }
.login-option i {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.login-option.admin i { background: rgba(0,58,140,0.10); color: var(--blue); }
.login-option.user  i { background: rgba(247,194,44,0.18); color: var(--gold-dark); }
.login-option.admin:hover i { background: var(--blue); color: var(--white); }
.login-option.user:hover  i { background: var(--gold); color: var(--dark); }
.login-option div strong { display: block; font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.login-option div span   { font-size: 0.75rem; color: var(--gray); }

/* ── RESPONSIVE (update for nav-actions) ───────────────────── */
@media (max-width: 900px) {
  .nav-actions { display: none; }
}

/* ════════════════════════════════════════════════════════════
   GLOBAL MOBILE SAFETY NET
   Many inner pages use inline two-column grids with no classes.
   These rules collapse them to a single column on phones and
   prevent horizontal overflow site-wide.
   ════════════════════════════════════════════════════════════ */
* { -webkit-text-size-adjust: 100%; }
/* Note: overflow-x is intentionally NOT set on <html> — doing so makes the
   sticky header stop sticking. body already has overflow-x:hidden above. */
body { max-width: 100%; }
img { max-width: 100%; height: auto; }

@media (max-width: 700px) {
  /* Collapse inline 2- and 3-column grids written as inline styles */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  /* Tame oversized inline horizontal padding on inner page wrappers */
  [style*="padding:0 24px"],
  [style*="padding: 0 24px"] { padding-left: 16px !important; padding-right: 16px !important; }

  /* Tables become horizontally scrollable instead of overflowing */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBILE STICKY BOTTOM NAV (app-style) — phones/tablets only
   ════════════════════════════════════════════════════════════ */
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4000;
    background: #0d2353;
    border-top: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; align-items: stretch;
  }
  .bottom-nav a {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 6px 2px; text-decoration: none;
    color: rgba(255,255,255,0.72);
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2px;
    text-transform: uppercase; text-align: center; line-height: 1.1;
    transition: color 0.15s;
  }
  .bottom-nav a i { font-size: 1.15rem; color: rgba(255,255,255,0.72); transition: color 0.15s; }
  .bottom-nav a span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav a:active { color: #fff; }
  .bottom-nav a.bn-accent i { color: var(--gold); }
  .bottom-nav a:hover, .bottom-nav a:hover i { color: var(--gold); }

  /* Lift content so the fixed bar never covers the footer/last section */
  body { padding-bottom: 64px; }
  /* The body quick-links bar is redundant with the bottom nav on mobile */
  .quick-links { display: none; }
  #scrollTop { bottom: 76px; }
}