/* Blog Styles - Central CSS File */

html,
body {
  min-height: 100%;
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: "helvetica-neue-lt-pro", sans-serif;
}

/* Navigation - Home Logo */
.blog-nav,
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.blog-nav a,
.home-nav a {
  display: inline-block;
  text-decoration: none;
}

.blog-nav img,
.home-nav img {
  width: clamp(80px, 10vw, 150px);
  height: auto;
  max-width: 100%;
  display: block;
}

/* Blog Subscribe Form */
.blog-subscribe {
  position: fixed;
  top: clamp(80px, 10vw, 150px);
  left: 0;
  z-index: 999;
  padding: 0.5rem clamp(0.5rem, 1vw, 1rem);
  width: clamp(80px, 10vw, 150px);
}

.blog-subscribe form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  width: 100%;
}

.blog-subscribe input[type="email"],
.blog-subscribe #mce-EMAIL,
.blog-subscribe .email,
.blog-subscribe input.email,
#mce-EMAIL {
  border: 1px solid #000 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #000 !important;
  padding: 0.25rem 0.5rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-family: inherit;
  background: #fff !important;
  color: #000;
  width: 100%;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.blog-subscribe input[type="email"]:focus,
.blog-subscribe #mce-EMAIL:focus,
.blog-subscribe .email:focus,
.blog-subscribe input.email:focus {
  outline: none !important;
  border: 1px solid #000 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #000 !important;
}

.blog-subscribe button,
.blog-subscribe #mc-embedded-subscribe,
.blog-subscribe button[type="submit"],
.blog-subscribe input[type="submit"],
#mc-embedded-subscribe {
  border: 1px solid #000 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #000 !important;
  background: #000 !important;
  color: #fff !important;
  padding: 0.25rem 0.75rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  white-space: nowrap;
}

.blog-subscribe button:hover,
.blog-subscribe #mc-embedded-subscribe:hover,
.blog-subscribe button[type="submit"]:hover {
  background: #333 !important;
  border: 1px solid #000 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #000 !important;
}

.blog-subscribe button:focus,
.blog-subscribe #mc-embedded-subscribe:focus,
.blog-subscribe button[type="submit"]:focus {
  outline: none !important;
  border: 1px solid #000 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #000 !important;
}

.blog-subscribe .response {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.blog-subscribe #mce-error-response {
  color: #cc0000;
}

.blog-subscribe #mce-success-response {
  color: #006600;
}

@media (max-width: 768px) {
  .blog-subscribe {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .blog-subscribe form {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .blog-subscribe input[type="email"] {
    width: 100%;
    min-width: auto;
    max-width: 100%;
  }
  
  .blog-subscribe button {
    width: 100%;
  }
}

/* Blog Index Page */
.blog-container {
  max-width: 1000px;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem);
  padding-top: 0;
  padding-left: clamp(calc(80px + 1.5rem), calc(10vw + 3vw), calc(150px + 2.5rem));
  padding-right: clamp(2rem, 5vw, 4rem);
}

.blog-header-wrapper {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
  padding-top: 0;
  margin-top: 0;
  padding-left: 0;
}

.blog-header {
  flex: 1;
  margin: 0;
  text-align: left;
}

.blog-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
  text-align: left;
}

.blog-header p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #666;
  margin: 0;
  text-align: left;
}

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding-left: 0;
}

.article-card {
  border: 1px solid #e5e5e5;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.3;
  text-align: left;
}

.article-card h2 a {
  text-decoration: none;
  color: inherit;
}

.article-card h2 a:hover {
  text-decoration: underline;
  font-weight: bold;
}

.article-card .article-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.article-card .article-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
  text-align: left;
}

/* Blog Post Pages */
.article-container {
  max-width: 1000px;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem);
  padding-top: 0;
  padding-left: clamp(calc(80px + 1.5rem), calc(10vw + 3vw), calc(150px + 2.5rem));
  padding-right: clamp(2rem, 5vw, 4rem);
}

.article-nav {
  margin-bottom: 2rem;
}

.article-nav a {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
}

.article-nav a:hover {
  text-decoration: underline !important;
  font-weight: bold !important;
}

article {
  line-height: 1.8;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  position: relative;
}

.copy-md-link {
  position: fixed;
  top: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  z-index: 1001;
  color: #000;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.copy-md-link:hover {
  background: #f5f5f5;
  border-color: #000;
}

.copy-md-link:active {
  background: #e5e5e5;
}

.copy-md-link.copied {
  background: #000;
  color: #ffffff;
  border-color: #000;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  text-align: left;
}

.article-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
  text-align: left;
}

.article-content {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  text-align: left;
}

.article-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 2rem 0 1rem;
  line-height: 1.3;
  text-align: left;
}

.article-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  line-height: 1.4;
  text-align: left;
}

.article-content p {
  margin: 0 0 1.5rem;
  text-align: left;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem;
  padding-left: 2rem;
  text-align: left;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-image-right {
  float: right;
  width: 33.333%;
  margin: 0 0 1rem 1.5rem;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  text-align: left;
}

.article-footer a {
  text-decoration: none;
  color: #000;
}

.article-footer a:hover {
  text-decoration: underline !important;
  font-weight: bold !important;
}

/* All blog links hover styles */
.blog-container a:not(.blog-nav a):not(.home-nav a),
.article-container a:not(.home-nav a):not(.copy-md-link):not(.article-nav a):not(.article-footer a),
article a {
  text-decoration: none;
}

.blog-container a:not(.blog-nav a):not(.home-nav a):hover,
.article-container a:not(.home-nav a):not(.copy-md-link):not(.article-nav a):not(.article-footer a):hover,
article a:hover {
  text-decoration: underline;
  font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-header-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding-top: 0;
    padding-left: 0;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  
  .blog-container {
    padding: clamp(1rem, 3vw, 2rem);
    padding-left: clamp(calc(60px + 1rem), calc(12vw + 1.5rem), calc(120px + 2rem));
    padding-right: clamp(1rem, 3vw, 2rem);
  }
  
  .article-container {
    padding: clamp(1rem, 3vw, 2rem);
    padding-top: 0;
    padding-left: clamp(calc(60px + 1rem), calc(12vw + 1.5rem), calc(120px + 2rem));
    padding-right: clamp(1rem, 3vw, 2rem);
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  .blog-header p {
    font-size: clamp(0.875rem, 3vw, 1rem);
  }
  
  .article-header h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .article-content {
    font-size: clamp(0.9375rem, 3vw, 1rem);
  }
  
  .article-image-right {
    width: 100%;
    float: none;
    margin: 0 0 1rem 0;
  }
}

/* Safari and Chrome Mac compatibility */
@supports (-webkit-appearance: none) {
  .blog-nav img,
  .home-nav img {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
