/* Complete CSS for EngSec Labs */

:root {
  --primary-color: #3730A3; /* Rich indigo blue */
  --primary-dark: #312E81;
  --secondary-color: #1F2937;
  --accent-color: #0F766E; /* Deep teal accent */
  --background-light: #F8FAFC;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --border-color: #E2E8F0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--background-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-top: 65px; /* Height of your navigation */
}

h1, h2, h3, .card-title {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
}

/* Layout & Sections */
/* Fix for the doubled header issue */
.hero {
  position: relative;
  padding: 140px 0 110px;
  background: linear-gradient(125deg, var(--secondary-color) 0%, #0F172A 90%);
}

/* Add a subtle background pattern for more visual interest */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%233730A3' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"),
               radial-gradient(circle at 80% 20%, rgba(49, 46, 129, 0.7) 0%, transparent 40%);
  opacity: 0.6;
  pointer-events: none;
}

/* Hide the title in the hero section since it's already in the nav */
.hero h1.display-4 {
  display: none;
}

/* Make the hero subtitle larger and more prominent */
.hero-subtitle {
  text-align: left;
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.3;
  overflow: visible;
}

.hero-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 0 2rem 0;
  font-weight: 400;
  text-align: left;
}

.section {
  padding: 6rem 0;
}

.section-white {
  background-color: white;
  position: relative;
}

.section-light {
  background-color: #F8FAFC;
  position: relative;
}

/* Add subtle dividers between sections */
.section-white::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right,
                transparent,
                rgba(0, 0, 0, 0.05) 20%,
                rgba(0, 0, 0, 0.05) 80%,
                transparent);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  text-align: left;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 5rem;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 3px;
}

/* Modern service card styling */
/* Premium service card design */
.service-card {
  background: white;
  border-radius: 12px;
  padding: 2.2rem;
  height: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03),
              0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 4px 0 0 4px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 0;
  background: transparent;
  border: none;
  margin-bottom: 1.5rem;
}

.icon-container {
  background: linear-gradient(135deg, rgba(55, 48, 163, 0.1), rgba(15, 118, 110, 0.1));
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  color: var(--primary-color);
}

.card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.learn-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.learn-more::after {
  content: '';
  position: absolute;
  bottom: 0.35rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.learn-more:hover::after {
  width: 100%;
}

.learn-more svg {
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.learn-more:hover svg {
  transform: translateX(4px);
}

/* View All Services button */
.view-all-btn {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.view-all-btn:hover {
  background-color: #1d4ed8;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

/* Button refinements */
/* Custom button styling */
.btn {
  position: relative;
  border-radius: 6px;
  padding: 0.7rem 1.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.btn-outline-light {
  border: 2px solid white;
  padding: 0.75rem 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-outline-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-outline-light:hover {
  color: white;
  background: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(55, 48, 163, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(55, 48, 163, 0.3);
}

/* Feature section items */
.feature-item {
  margin-bottom: 2.5rem;
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.icon-feature {
  background: linear-gradient(135deg, rgba(55, 48, 163, 0.1), rgba(15, 118, 110, 0.1));
  color: var(--primary-color);
  padding: 0.75rem;
  border-radius: 12px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-detail {
  padding: 3rem 0;
}

.service-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem;
}

.service-icon {
  width: 100px;
  height: 100px;
  color: var(--primary-color);
  opacity: 0.9;
}

.lead {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.pricing {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  padding: 0.75rem 0;
}

ul {
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Blog content typography and media */
.blog-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  /* Reduced bottom margin to tighten space before caption */
  margin: 1.25rem auto 0.25rem;
}

/* Apply the same treatment to videos as images */
.blog-content video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  margin: 1.25rem auto 0.25rem;
  /* Ensure video fills container and removes letterboxing */
  object-fit: cover;
  background: transparent;
}

/* Make images centered within the text column */
.blog-content p > img {
  margin-left: auto;
  margin-right: auto;
}

/* Remove bottom margin from paragraphs containing images (so caption sits close) */
.blog-content p:has(img) {
  margin-bottom: 0.25rem;
}

/* Remove top margin from paragraph that follows a paragraph with an image */
.blog-content p:has(img) + p {
  margin-top: 0;
}

/* Caption styling: style an italic em in a paragraph that follows an image paragraph */
.blog-content p:has(img) + p em {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 1.75rem;
}

/* Remove top margin from paragraph that follows a video (caption paragraph) */
.blog-content :is(p, div, figure):has(> video) + p {
  margin-top: 0;
}

/* Caption styling for video blocks as well */
.blog-content :is(p, div, figure):has(> video) + p em {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 1.75rem;
}

/* Removed legacy fallback that forced em-only paragraphs to block;
   modern browsers support :has(), and captions are handled above. */

/* Optional subtle divider above captions (disabled by default) */
/* .blog-content p:has(> img) + p em::before { content: ""; display:block; width:40px; height:1px; margin:0.5rem auto 0.75rem; background: var(--border-color); } */

/* LinkedIn embed styling */
.blog-content iframe {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* Table styles exist later in this file under "Blog table styling" */

/* Form refinements */
.contact-form {
  max-width: 700px;
  margin: 2rem 0;
  padding: 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04), 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.submit-button {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
}

.submit-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* Text copy button styling */
.text-copy-button {
  background-color: #f1f5f9;
  color: var(--primary-color);
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.text-copy-button:hover {
  background-color: #e2e8f0;
}

.text-copy-button:active {
  transform: translateY(1px);
}

/* Contact section styling */
.contact-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 700px;
}

/* Email container styling */
.email-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2.5rem 0;
  text-align: left;
}

.contact-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.2rem;
}

.contact-link:hover {
  text-decoration: underline;
}

#copy-button,
.text-copy-button {
  background-color: #f1f5f9;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

#copy-button:hover,
.text-copy-button:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Make sure the containing paragraph is also left-aligned */
.text-large {
  text-align: left;
}
/* Contact Section Styles */
.cta-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f1f5f9;
}

.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.cta-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #1e293b;
}

.cta-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-cta-cards {
  margin: 2rem 0;
}

/* Blog Listing Styling */
.blog-posts {
  max-width: 800px;
}

.blog-post-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-post-item:first-child {
  padding-top: 0;
}

.blog-post-item:last-child {
  border-bottom: none;
}

.blog-post-header {
  margin-bottom: 0.75rem;
}

.blog-post-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-post-title a:hover {
  color: var(--primary-color);
}

.blog-post-date {
  display: block;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.blog-post-excerpt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 1rem 0;
}

.blog-post-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.blog-post-link:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

/* Blog Content Styling */
.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
}

.blog-lede {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a202c;
}

.blog-content h2 {
  font-size: 1.875rem;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
  margin-top: 0;
}

/* Note: Avoid forcing em-only paragraphs to block universally.
   Captions are handled by more specific rules above, including
   `.blog-content p:has(img) + p em` and the fallback
   `.blog-content p > em:only-child`. */

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content a {
  color: #3182ce;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.blog-content a:hover {
  border-bottom-color: currentColor;
}

.blog-content strong,
.blog-content b {
  font-weight: 600;
  color: #1a202c;
}

.blog-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #3182ce;
  background-color: #f7fafc;
  font-style: italic;
}

.blog-content code {
  background-color: #f7fafc;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #2d3748;
}

/* Blog table styling */
.blog-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden; /* ensures rounded corners in many browsers */
  background: #ffffff;
  margin: 1.75rem 0 2rem;
}

.blog-content thead th {
  background: #f1f5f9; /* light header background */
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-color);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.blog-content tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  color: var(--text-secondary);
}

.blog-content tbody tr:nth-child(even) td {
  background: #f8fafc; /* subtle zebra striping */
}

.blog-content tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive handling: allow horizontal scroll on small screens */
@media (max-width: 768px) {
  .blog-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-content thead,
  .blog-content tbody,
  .blog-content th,
  .blog-content td,
  .blog-content tr {
    white-space: nowrap;
  }
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0;
}

/* Fix for blue header links */
.navbar-nav .nav-link,
header a,
header a:hover {
  color: inherit;
  text-decoration: none;
}


/* Fix for navbar alignment */
.navbar {
  background-color: var(--secondary-color) !important;
  padding: 0.75rem 0;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: white !important;
}

.navbar-nav {
  margin-left: auto;
  gap: 1.5rem;
}
/* Reduce space between nav links and their underlines */
.nav-link::after {
  bottom: -2px; /* Reduce from -5px to -2px */
}

.navbar-dark .navbar-nav .nav-link::after {
  bottom: -2px; /* Ensure consistency if using Bootstrap navbar */
}

/* Make sure vertical alignment is consistent */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center; /* Ensure vertical alignment */
}

/* Adjust padding to create tighter look */
.nav-link {
  padding: 0.5rem 0;
}

/* If you're using Bootstrap navbar */
.navbar-nav .nav-link {
  padding-bottom: 0.3rem !important;
  padding-top: 0.3rem !important;
}


/* Utility Classes */
.font-bold, .fw-bold {
  font-weight: 700;
}

.font-extrabold, .fw-extrabold {
  font-weight: 800;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .service-icon-container {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .service-card::after {
    width: 100%;
    height: 4px;
    border-radius: 4px 4px 0 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section-title {
    text-align: left;
  }

  .section-title::after {
    left: 0;
    transform: none;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1.1rem;
  }
}

/* Complete Mobile Navigation Fix */
@media (max-width: 768px) {
  /* Remove top padding since nav won't be sticky */
  body {
    padding-top: 0;
  }

  /* Make navigation not sticky and more compact on mobile */
  .site-nav {
    position: relative;
    padding: 0.5rem 0;
  }

  .site-nav .container {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-logo {
    margin-bottom: 0.25rem;
    text-align: center;
    font-size: 1.2rem;
  }

  .nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    color: rgba(255, 255, 255, 0.9);
  }

  /* Make contact button more visible on mobile - more specific selector */
  @media (max-width: 768px) {
    .site-nav .nav-links .nav-link.contact-link {
      background-color: var(--primary-color);
      color: white;
      padding: 0.4rem 0.8rem;
      border-radius: 6px;
      font-weight: 500;
    }

    .site-nav .nav-links .nav-link.contact-link:hover {
      background-color: var(--primary-dark);
    }
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }
}



.site-nav {
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Make the active nav link stand out */
.nav-link.active {
  color: white;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #93C5FD;
}

.site-nav {
  background-color: rgba(31, 41, 55, 0.98);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Override sticky nav on mobile */
@media (max-width: 768px) {
  .site-nav {
    position: relative;
    padding: 0.5rem 0;
  }

  body {
    padding-top: 0;
  }
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.site-logo:hover {
  color: #93C5FD;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #93C5FD;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: 100%;
}

/* Back to Blog button styling */
/* Back to Blog button styling with improved container */
/* Back to Blog button styling - centered with lighter styling */
.blog-navigation {
  padding: 2rem 0;
  text-align: center; /* Center the button container */
  background-color: #f8fafc; /* Light background instead of dark */
  border-top: 1px solid #e2e8f0; /* Subtle top border */
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color); /* Use your primary color */
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(55, 48, 163, 0.2);
}

.back-to-blog:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 48, 163, 0.25);
}

.back-to-blog svg {
  width: 16px;
  height: 16px;
}

/* Contact link button style */
.nav-link.contact-link {
  background-color: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link.contact-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link.contact-link::after {
  display: none;
}

/* Blog content horizontal rule styling */
.blog-content hr {
  border: none;
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  height: 1.5rem;
  background: none;
}

.blog-content hr::before {
  content: '• • •';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: var(--text-secondary);
  letter-spacing: 0.5rem;
  font-weight: 300;
}

/* Rotating word animation */
.rotating-word {
  color: #93C5FD;
  font-weight: 700;
  min-width: 15ch;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
}

.rotating-word::after {
  content: 'thoughtful.';
  animation: rotate-words 18s infinite;
  display: inline-block;
  opacity: 1;
}

@keyframes rotate-words {
  0%, 14% { content: 'thoughtful.'; opacity: 1; }
  15%, 16.66% { opacity: 0; }
  16.67% { content: 'modern.'; opacity: 0; }
  17.67%, 30.67% { content: 'modern.'; opacity: 1; }
  31.67%, 33.33% { opacity: 0; }
  33.34% { content: 'human-centered.'; opacity: 0; }
  34.34%, 47.34% { content: 'human-centered.'; opacity: 1; }
  48.34%, 50% { opacity: 0; }
  50.01% { content: 'pragmatic.'; opacity: 0; }
  51.01%, 64.01% { content: 'pragmatic.'; opacity: 1; }
  65.01%, 66.66% { opacity: 0; }
  66.67% { content: 'risk-focused.'; opacity: 0; }
  67.67%, 80.67% { content: 'risk-focused.'; opacity: 1; }
  81.67%, 83.33% { opacity: 0; }
  83.34% { content: 'effective.'; opacity: 0; }
  84.34%, 97.34% { content: 'effective.'; opacity: 1; }
  98.34%, 100% { opacity: 0; }
}