/* ------------------------------
   Blog & Homepage Styles
--------------------------------*/

/* Stay Informed Section */
.stay-informed-section {
  padding: 4rem 0;
  background: #ffffff;
}

.stay-informed-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 1.5rem 0;
  font-family: "Inter Display", sans-serif;
}

/* Blog Filter Tabs */
.blog-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.blog-filter-tab {
  font-family: "Inter Display", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #718096;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.blog-filter-tab:hover {
  color: #1A202C;
}

.blog-filter-tab.active {
  color: #1A202C;
  font-weight: 600;
}

.blog-filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 0.125rem;
  background-color: #015244;
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-post-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 0.375rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.blog-post-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.blog-post-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  flex-grow: 1;
}

.blog-post-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Gradient Banner Section */
.blog-post-banner {
  position: relative;
  height: 14rem;
  border-radius: 0.375rem;
  overflow: hidden;
  background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
}


/* Chevron/V-shape pattern overlay */
.blog-post-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 15px,
      rgba(255, 255, 255, 0.08) 15px,
      rgba(255, 255, 255, 0.08) 16px,
      transparent 16px,
      transparent 30px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 15px,
      rgba(255, 255, 255, 0.08) 15px,
      rgba(255, 255, 255, 0.08) 16px,
      transparent 16px,
      transparent 30px
    );
  pointer-events: none;
  opacity: 0.5;
  z-index: 2;
}

/* Badge - White background with black text */
.blog-post-badge {
  position: relative;
  z-index: 3;
  display: inline-block;
  background: #ffffff;
  color: #111827;
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "Inter Display", sans-serif;
  text-transform: capitalize;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

/* Blog Post Content */
.blog-post-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
  font-family: "Inter Display", sans-serif;
}

.blog-post-date {
  color: #9ca3af;
  text-decoration: none;
}

.blog-post-separator {
  color: #9ca3af;
  font-weight: 600;
}

.blog-post-read-time {
  color: #9ca3af;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.blog-post-title {
  font-family: "Inter Display", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.blog-post-card-link:hover .blog-post-title {
  color: #015244;
}

.blog-post-excerpt {
  font-family: "Inter Display", sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Loading States */
.blog-loading {
  text-align: center;
  padding: 3rem 0;
  color: #718096;
}

.blog-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 0.125rem solid #E2E8F0;
  border-top: 0.125rem solid #015244;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.blog-no-posts {
  text-align: center;
  padding: 3rem 0;
  color: #718096;
  font-family: "Inter Display", sans-serif;
  font-size: 1rem;
}

/* Load More Button */
.blog-load-more-section {
  text-align: center;
  margin-top: 3rem;
}

.blog-load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  background: linear-gradient(180deg, #015244 0%, #013d32 100%);
  color: #ffffff;
  border: 0.0625rem solid rgba(75, 255, 237, 0.3);
  border-radius: 0.5rem;
  font-family: "Inter Display", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 0 1px rgba(75, 255, 237, 0.2),
    0 0 8px rgba(75, 255, 237, 0.15),
    0 2px 4px rgba(1, 82, 68, 0.1);
  position: relative;
  overflow: hidden;
}

.blog-load-more-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(1, 82, 68, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.blog-load-more-button:hover {
  background: linear-gradient(180deg, #013d32 0%, #012a22 100%);
  border-color: rgba(75, 255, 237, 0.4);
  box-shadow: 
    0 0 0 1px rgba(75, 255, 237, 0.3),
    0 0 12px rgba(75, 255, 237, 0.2),
    0 4px 8px rgba(1, 82, 68, 0.15);
  transform: translateY(-0.0625rem);
}

.blog-load-more-button:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(1, 82, 68, 0.2), 0 1px 2px rgba(1, 82, 68, 0.1);
}

.blog-load-more-button:disabled,
.blog-load-more-button.loading {
  background: linear-gradient(180deg, #A0AEC0 0%, #9CA3AF 100%);
  border-color: rgba(156, 163, 175, 0.3);
  color: #ffffff;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.blog-load-more-text {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 500;
}

/* Responsive Design for Blog Filter */
@media (max-width: 64rem) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
	.latest-post-section {background-size: cover !important;}
  
  .stay-informed-title {
    font-size: 2rem;
  }
}

@media (max-width: 48rem) {
  .blog-filter-tabs {
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .blog-filter-tabs, .stay-informed-title {display: none;}
  
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stay-informed-title {
    font-size: 1.75rem;
  }
  
  .blog-post-banner {
    height: 13.438rem;
  }
}

@media (max-width: 30rem) {
  .blog-filter-tabs {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .blog-filter-tabs, .stay-informed-title {display: none;}
  
  .blog-filter-tab {
    font-size: 0.875rem;
  }
  
  .blog-post-content {
    padding: 1rem;
  }
  
  .stay-informed-title {
    font-size: 1.5rem;
  }
  
  .blog-post-banner {
    height: 13.438rem;
  }
  
  .banner-tagline {
    font-size: 0.75rem;
  }
}

/* Latest Post Hero Section */
.latest-post-section {
  padding: 9.5rem 0 6rem 0;
  background: url(https://hirium.com/blog/wp-content/uploads/2025/11/hero_bg.svg);
  /* background: url('data:image/svg+xml,<svg width="56" height="619" viewBox="0 0 56 619" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_1333_1579)"><rect width="56" height="619" fill="white"/><rect width="56" height="619" fill="url(%23paint0_linear_1333_1579)"/><rect width="56" height="619" fill="url(%23paint1_linear_1333_1579)"/><g filter="url(%23filter0_n_1333_1579)"><path d="M0 0H56V619H0V0Z" fill="url(%23paint2_linear_1333_1579)" fill-opacity="0.5"/></g></g><defs><filter id="filter0_n_1333_1579" x="0" y="0" width="56" height="619" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feTurbulence type="fractalNoise" baseFrequency="10 10" stitchTiles="stitch" numOctaves="3" result="noise" seed="2674" /><feColorMatrix in="noise" type="luminanceToAlpha" result="alphaNoise" /><feComponentTransfer in="alphaNoise" result="coloredNoise1"><feFuncA type="discrete" tableValues="1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "/></feComponentTransfer><feComposite operator="in" in2="shape" in="coloredNoise1" result="noise1Clipped" /><feComponentTransfer in="alphaNoise" result="coloredNoise2"><feFuncA type="discrete" tableValues="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 "/></feComponentTransfer><feComposite operator="in" in2="shape" in="coloredNoise2" result="noise2Clipped" /><feFlood flood-color="%23016655" result="color1Flood" /><feComposite operator="in" in2="noise1Clipped" in="color1Flood" result="color1" /><feFlood flood-color="%23FFFFFF" result="color2Flood" /><feComposite operator="in" in2="noise2Clipped" in="color2Flood" result="color2" /><feMerge result="effect1_noise_1333_1579"><feMergeNode in="shape" /><feMergeNode in="color1" /><feMergeNode in="color2" /></feMerge></filter><linearGradient id="paint0_linear_1333_1579" x1="28.0188" y1="685.612" x2="24.1252" y2="0.022036" gradientUnits="userSpaceOnUse"><stop offset="0.151481" stop-color="%23015244"/><stop offset="0.563764" stop-color="%23B2FEFF"/><stop offset="0.816801" stop-color="white"/></linearGradient><linearGradient id="paint1_linear_1333_1579" x1="27.7068" y1="643.932" x2="26.5019" y2="-200.639" gradientUnits="userSpaceOnUse"><stop stop-color="%23511EBA"/><stop offset="0.25" stop-color="%23D3C8EA"/><stop offset="0.664709" stop-color="white"/></linearGradient><linearGradient id="paint2_linear_1333_1579" x1="56" y1="309.5" x2="0" y2="309.5" gradientUnits="userSpaceOnUse"><stop stop-color="%23999999" stop-opacity="0.1"/><stop offset="1" stop-color="white" stop-opacity="0.2"/></linearGradient><clipPath id="clip0_1333_1579"><rect width="56" height="619" fill="white"/></clipPath></defs></svg>'); */
  position: relative;
  background-repeat: repeat-y no-repeat;
  background-size: 3.5rem 38.6875rem;
  background-size: auto;
}

.latest-post-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Left: Blog Post Content */
.latest-post-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.latest-post-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ffffff;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  width: fit-content;
  font-family: "Inter Display", sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.latest-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0;
  font-family: "Inter Display", sans-serif;
}

.latest-post-title a {
  color: inherit;
  text-decoration: none;
}

.latest-post-title a:hover {
  color: #015244;
}

.latest-post-pricing {
  font-size: 0.9375rem;
  color: #4b5563;
  margin: 0;
  font-family: "Inter Display", sans-serif;
  line-height: 1.5;
}

.latest-post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.latest-post-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem !important;
  overflow: hidden;
  flex-shrink: 0;
}

.latest-post-author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 1rem !important;
  object-fit: cover;
}

.latest-post-author-info {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.latest-post-author-name {
  line-height: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.latest-post-author-role {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Right: CTA Card */
.latest-post-cta {
  position: relative;
  background: linear-gradient(180deg, #8B5CF6 0%, #6D28D9 50%, #5B21B6 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.75rem;
  padding: 2rem;
  overflow: hidden;
  box-shadow: 0 0.625rem 1.875rem rgba(139, 92, 246, 0.3), 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  min-height: 21.875rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Chevron pattern overlay */
.latest-post-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 15px,
      rgba(255, 255, 255, 0.05) 15px,
      rgba(255, 255, 255, 0.05) 16px,
      transparent 16px,
      transparent 30px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 15px,
      rgba(255, 255, 255, 0.05) 15px,
      rgba(255, 255, 255, 0.05) 16px,
      transparent 16px,
      transparent 30px
    );
  pointer-events: none;
  opacity: 0.6;
  z-index: 2;
}

.cta-badge {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ffffff;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  width: fit-content;
  font-family: "Inter Display", sans-serif;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-text {
  position: relative;
  z-index: 2;
  font-size: 1.125rem;
  color: #ffffff;
  line-height: 1.6;
  margin: 0 0 auto 0;
  font-family: "Inter Display", sans-serif;
  flex-grow: 1;
}

.cta-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #ffffff;
  color: #111827;
  border: none;
  border-radius:0.5rem;
  font-family: "Inter Display", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  align-self: flex-end;
  margin-top: 2rem;
  cursor: pointer;
}

.cta-button:hover {
  background: #f9fafb;
  color: #111827;
  transform: translateY(-0.125rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Homepage */
@media (max-width: 64rem) {
  .latest-post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .latest-post-title {
    font-size: 2rem;
  }
  
  .latest-post-cta {
    min-height: 15.625rem;
  }
}

@media (max-width: 48rem) {
  .latest-post-section {
    padding: 5rem 0 3rem 0;
    background-size: cover;
  }
  
  .latest-post-title {
    font-size: 1.75rem;
  }
  
  .latest-post-cta {
    min-height: 13.75rem;
    padding: 1.5rem;
  }
  
  .cta-text {
    font-size: 1rem;
  }
}

@media (max-width: 30rem) {
  .latest-post-title {
    font-size: 1.5rem;
  }
  
  .latest-post-badge {
    font-size: 0.625rem;
    padding: 0.375rem 0.75rem;
  }
  
  .latest-post-pricing {
    font-size: 0.875rem;
  }
  
  .latest-post-author-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .latest-post-author-name {
    font-size: 0.875rem;
  }
  
  .latest-post-author-role {
    font-size: 0.75rem;
  }
  
  .latest-post-cta {
    min-height: 12.5rem;
    padding: 1.25rem;
  }
  
  .cta-text {
    font-size: 0.9375rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}
