@import url('https://fonts.googleapis.com/css?family=Roboto:400,700|Open+Sans:400,700&display=swap');

/* === BASE RESET === */
html { scroll-behavior: smooth; }

body {
  background-color: #e6e6e6;
  margin: 0;
  padding: 0;
  padding-top: 100px;
  font-family: 'Roboto', sans-serif;
}

/* === HEADER === */
header {
  padding: 1rem 0;
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  transition: top 0.3s ease-in-out, opacity 0.3s ease-in-out;
  background: transparent;
}
.header-container {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; position: relative; flex-wrap: nowrap;
}
.header-left { display: flex; align-items: center; flex: 1; }
.header-right { display: flex; align-items: center; justify-content: flex-end; }
.header-logo-link { text-decoration: none; color: inherit; display: inline-block; }
.logo-inline { display: flex; align-items: center; gap: 20px; }
.profile-pic-small { width: 50px; height: auto; border-radius: 6px; }
.header-name { margin: 0; font-size: 1.5rem; }
.header-hidden { top: -100px; opacity: 0; pointer-events: none; }

.menu-toggle {
  display: none; font-size: 2rem; background: none !important; border: none;
  color: #0066cc; cursor: pointer; padding: 0.5rem; line-height: 1; z-index: 1001;
  -webkit-tap-highlight-color: transparent; appearance: none; margin-left: auto; margin-top: -3px;
}
.menu-toggle:focus { background: none !important; outline: none; box-shadow: none; }
.menu-toggle:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }

/* === NAVIGATION === */
.header-nav {
  display: flex; gap: 4px; align-items: center;
  transition: all 0.3s ease; opacity: 1; pointer-events: auto;
}
.header-nav a {
  text-decoration: none; color: #333; font-weight: 500;
  padding: 6px 10px; border-radius: 6px; transition: color 0.2s ease, background-color 0.2s ease;
}
.header-nav a:hover { color: #0066cc; background-color: rgba(0, 102, 204, 0.08); }
.header-nav a.active { color: #0066cc; font-weight: 700; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 150px; padding: 6px 0; z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 8px 16px; white-space: nowrap; color: #333; border-radius: 0; }
.nav-dropdown-menu a:hover { background: #f0f4ff; color: #0066cc; }

/* === SECTION & LAYOUT === */
section {
  padding: 2rem; max-width: 900px; margin: 0 auto 2rem;
  background: #fff; border-radius: 8px; box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
a { color: #0066cc; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin-bottom: 20px; }
.bio { max-width: 600px; margin-top: 1rem; }
.profile-pic { width: 150px; border-radius: 8px; }

/* === SOCIAL ICONS === */
.social-icons { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 1rem; }
.social-icons a img { height: 40px; width: auto; transition: transform 0.2s ease; display: inline-block; }
.social-icons a:hover img { transform: scale(1.1); }
.social-icons-header { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.social-icons-header .social-icon { width: 32px; height: 32px; transition: transform 0.2s ease; }
.social-icons-header .social-icon:hover { transform: scale(1.15); }
.connect-header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }

/* === GHOST BLOG POSTS === */
#ghost-posts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.ghost-post-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid #ddd; border-radius: 8px; padding: 16px;
  transition: box-shadow 0.2s ease, background-color 0.2s ease; background-color: #fff;
}
.ghost-post-card:hover { background-color: #f9f9f9; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ghost-post-image { width: 100%; height: 180px; object-fit: cover; }
.ghost-post-content { padding: 1rem; }
.ghost-post-content h3 { font-size: 1.1em; margin: 0; }
.ghost-post-date { font-size: 0.8em; color: #888; display: block; margin-top: 0.25rem; }
.ghost-post-excerpt { margin-top: 0.75rem; color: #555; font-size: 0.95em; line-height: 1.5; }

/* === PRESS RELEASES === */
.press-filters { display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.press-filters button {
  width: auto; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem;
  border: 1px solid #ccc; background: #fff; color: #333; cursor: pointer;
}
.press-filters button.active { background: #0066cc; color: #fff; border-color: #0066cc; }
#press-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.press-card {
  background: #fff; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;
  text-decoration: none; color: inherit; transition: box-shadow 0.2s ease;
  display: flex; flex-direction: column; position: relative;
}
.press-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); background-color: #f9f9f9; }
.press-card img.press-image { width: 100%; height: 160px; object-fit: cover; }
.press-card-inner { padding: 1rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.press-title { font-size: 1.05rem; margin: 0 0 0.5rem; color: #222; }
.press-date { font-size: 0.85rem; color: #777; margin-bottom: 1rem; }
.press-tag {
  position: absolute; bottom: 12px; right: 12px;
  font-size: 0.7rem; font-weight: 600; padding: 4px 8px; border-radius: 5px;
  text-transform: uppercase; pointer-events: none; background-color: #eee; color: #333;
}
.press-tag.governor { background-color: #d0e8ff; color: #0057a3; }
.press-tag.decd { background-color: #e5f7e5; color: #1a7a1a; }

/* === ECONOMY / CHARTS === */
.chart-container { position: relative; width: 100%; max-height: 500px; margin: 1.5rem 0; }
.chart-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.chart-controls select, .chart-controls input {
  padding: 6px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.9rem;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-card {
  background: #f8f9fa; border-radius: 8px; padding: 1.25rem; text-align: center;
  border: 1px solid #e9ecef;
}
.stat-value { font-size: 1.8rem; font-weight: 700; color: #0066cc; margin: 0; }
.stat-label { font-size: 0.85rem; color: #666; margin: 0.25rem 0 0; }
.stat-change { font-size: 0.8rem; margin-top: 0.25rem; }
.stat-change.positive { color: #1a7a1a; }
.stat-change.negative { color: #c0392b; }
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.data-table th { background: #f0f0f0; padding: 10px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid #ddd; }
.data-table td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.data-table tr:hover { background: #f9f9f9; }
.data-table td.number { text-align: right; font-variant-numeric: tabular-nums; }

/* === RESPONSIVE IFRAMES === */
.responsive-iframe { width: 100%; border: 0; border-radius: 8px; }
.iframe-map { height: clamp(400px, 70vh, 700px); }
.iframe-blog { height: clamp(600px, 85vh, 1200px); }
.iframe-connect { height: clamp(500px, 80vh, 900px); }

/* === FOOTER === */
footer { text-align: center; padding: 1rem; background: #eee; margin-top: 2rem; font-size: 0.9rem; color: #666; }

/* === FORMS === */
.container {
  max-width: 400px; margin: 5% auto; padding: 20px; background-color: #fff;
  border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="date"], input[type="time"],
select, textarea {
  display: block; margin-bottom: 5px; width: 80%; margin-left: auto; margin-right: auto;
  padding: 10px; border: 1px solid #ccc; border-radius: 5px;
}
button {
  width: 100%; background-color: #007bff; color: #fff; border: none;
  padding: 10px; border-radius: 5px; cursor: pointer; margin-top: 10px;
}
button:hover { background-color: #0056b3; }

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: auto; z-index: 10000;
  padding: 8px 16px; background: #0066cc; color: #fff; text-decoration: none; font-weight: bold;
}
.skip-link:focus { position: static; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .menu-toggle { display: block; font-size: 1.8rem; padding: 0.5rem; margin-left: auto; }
  .header-nav {
    display: none; flex-direction: column; width: 100%; background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 1rem; border-radius: 6px;
    position: absolute; top: 100%; left: 0; z-index: 999;
  }
  .header-nav.show { display: flex; }
  .nav-dropdown-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .social-icons-header .social-icon { width: 24px; height: 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
