@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;
  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;
}

.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;
  -webkit-appearance: none;
  appearance: none;
  align-self: center;
  margin-left: auto;
  margin-top: -3px;
}

.menu-toggle:focus,
.menu-toggle:active {
  background: none !important;
  outline: none;
  box-shadow: none;
}

/* === NAVIGATION === */
.header-nav {
  display: flex;
  gap: 15px;
  transition: all 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.header-nav a {
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
}

/* === CONTAINERS === */
.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;
}

.left-container, .name-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.name-container {
  justify-content: space-between;
  margin: 0 auto 0px;
}

.name-container input {
  flex: 1;
  margin-right: 0px;
}

.name-container input:last-child {
  margin-right: 0;
}

.connect-container {
  margin-bottom: 2rem;
}

.image {
  margin-right: 10px;
}

.text-container {
  text-align: left;
}

.text, label, input, select, textarea,
.email-form input[type="email"], .email-form button,
form input[type="radio"], form label,
.radio-container, .radio-container input[type="radio"], .radio-container label,
.time-container, .time-container > div,
.libutton, button {
  margin: 0;
}

/* === FORM ELEMENTS === */
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;
}

.email-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.email-form button {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.radio-container {
  display: inline-block;
  margin-right: 10px;
}

.time-container {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 5px auto;
}

.libutton {
  width: 100%;
  max-width: 80%;
  height: 32px;
  border-radius: 16px;
  background-color: #0A66C2;
  font-family: "SF Pro Text", Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  outline: none;
  text-decoration: none !important;
  color: #ffffff !important;
  margin-bottom: 10px;
}

/* === TYPOGRAPHY === */
h1 {
  font-size: 20px;
  margin-bottom: 20px;
}

label, input, select, textarea {
  text-align: left;
  display: block;
  margin-bottom: 10px;
  width: 100%;
}

input[type="email"], input[type="tel"], input[type="text"],
input[type="date"], select, button, textarea {
  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;
}

.small-text {
  font-size: 12px;
}

/* === LOADING OVERLAY === */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loaderImage {
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === 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);
}


/* === LAYOUT & NAV === */
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
}

section {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/* === BIO & IMAGE === */
.profile-pic {
  width: 150px;
  border-radius: 8px;
}

.bio {
  max-width: 600px;
  margin-top: 1rem;
}

/* === CONNECT FEEDS === */
.feeds {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  display: block;
}

.feeds .elfsight-app-f651170a-1f2a-4bc8-952f-510708cc46f0 {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.feed-box {
  flex: 1 1 300px;
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.bluesky-post {
  margin-bottom: 1.5rem;
}

.bluesky-post img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

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

/* === 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;
  margin-bottom: 20px;
  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-content a {
  text-decoration: none;
  color: #0066cc;
}

.ghost-post-content a:hover {
  text-decoration: underline;
}

.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;
}

/* === MAP === */
#map-section {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.map-container {
  padding: 1rem;
}

.map-container iframe {
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* === PRESS RELEASES === */
#press-list {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  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;
  display: block;
}

.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;
  z-index: 1;
  background-color: #eee;
  color: #333;
}

.press-tag.governor {
  background-color: #d0e8ff;
  color: #0057a3;
}

.press-tag.decd {
  background-color: #e5f7e5;
  color: #1a7a1a;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    padding: 0.5rem;
    margin-left: auto;
    margin-right: 0;
  }

  .header-container {
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .header-left {
    flex: 1;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: 0;
    border-radius: 6px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  .header-nav.show {
    display: flex;
  }

  .container {
    max-width: 80%;
    margin: 10% auto;
    padding: 10px;
  }

  h1 {
    font-size: 18px;
  }

  .small-text {
    font-size: 10px;
  }

  .feeds {
    flex-direction: column;
  }
}

/* === HIDE HEADER ON SCROLL === */
.header-hidden {
  top: -100px;
}

.connect-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.social-icons-header {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.social-icons-header a {
  text-decoration: none;
}

.social-icons-header .social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.social-icons-header .social-icon:hover {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .social-icons-header .social-icon {
    width: 24px;
    height: 24px;
  }
}
