/* ─── Single Insight Page ─── */
.single-article {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem 20px;
    background: linear-gradient(145deg, #001f3f, #003566, #0077b6);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
    box-sizing: border-box;
  }
  
  /* ─── Hero Image ─── */
  .single-article__hero {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
  }
  .single-article__hero img {
    width: 100%;
    display: block;
    object-fit: cover;
  }
  
  /* ─── Category Pill ─── */
  .single-article__category {
    display: inline-block;
    background: rgba(0,212,255,0.2);
    color: #00d4ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  /* ─── Title & Meta ─── */
  .single-article__title {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: #ffffff;
  }
  .single-article__meta {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
  }
  .single-article__meta time {
    margin-right: 1rem;
  }
  
  /* ─── Body Container ─── */
  .single-article__body {
    background: linear-gradient(145deg, #001f3f, #003566, #0077b6);
    color: #dce7e9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }
  
  /* ─── Improved Typography ─── */
  .single-article__body p {
    margin: 0 0 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
  }
  .single-article__body h2,
  .single-article__body h3,
  .single-article__body h4 {
    margin: 2rem 0 1rem;
    color: #00d4ff;
  }
  .single-article__body ul,
  .single-article__body ol {
    margin: 1rem 0 1.5rem 1.5rem;
  }
  .single-article__body blockquote {
    border-left: 4px solid #00d4ff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: rgba(255,255,255,0.85);
    font-style: italic;
  }
  

  /* ─── Share + Subscribe Inline Row ─── */
.single-share-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  
  padding: 1rem 1.25rem;
  border-radius: 8px;
}

.single-share-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-share__label {
  font-weight: bold;
  color: #ffffff;
  margin-right: 8px;
}

.single-share-left a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.single-share-left a img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.single-share-left a:hover img {
  transform: scale(1.15);
  filter: brightness(1.15);
}

/* ─── Inline Subscribe Form (Updated to Match Main Form Style) ─── */
/* ─── Inline Subscribe Form (Revised for Desktop) ─── */
.inline-subscribe-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap; /* Prevent wrapping on desktop */
}

.inline-subscribe-form input[type="email"] {
  flex: 1 1 350px;
  min-width: 250px;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #00b4d8;
  font-size: 1rem;
  font-family: inherit;
  background-color: #001d3d;
  color: #dff6ff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}


.inline-subscribe-form input[type="email"]:focus {
  border-color: #00d4ff;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
  background-color: #002a5a;
}

.inline-subscribe-form button {
  padding: 12px 28px;
  background: linear-gradient(to right, #3ecf8e, #26b07c);
  color: #001d16;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(62, 207, 142, 0.5);
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.inline-subscribe-form button:hover {
  background: linear-gradient(to right, #26b07c, #3ecf8e);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(62, 207, 142, 0.8);
}


/* ─── Mobile Responsive ─── */
@media (max-width: 600px) {
  .inline-subscribe-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .inline-subscribe-form input,
  .inline-subscribe-form button {
    width: 100%;
  }
}


  /* ─── Prev/Next Navigation ─── */
  .single-article__nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
  }
  .single-article__nav a {
    background: #00d4ff;
    color: #002b5b;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  .single-article__nav a:hover {
    background: #008ecf;
  }
  
  /* ─── Comment Section ─── */
  .single-article__comments {
    background: rgba(0,0,0,0.3);
    padding: 2rem;
    border-radius: 8px;
    color: #fff;
  }
  .single-article__comments #reply-title {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
  }
  .single-article__comments .comment-notes,
  .single-article__comments label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
  }
  .single-article__comments input[type="text"],
  .single-article__comments input[type="email"],
  .single-article__comments input[type="url"],
  .single-article__comments textarea {
    width: 100%;
    background: #fff;
    color: #002b5b;
    border: none;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    resize: vertical;
  }
  .single-article__comments input[type="submit"] {
    background: #00d4ff;
    color: #002b5b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  .single-article__comments input[type="submit"]:hover {
    background: #008ecf;
  }
  
  /* ─── Existing Comments ─── */
  .single-article__comments .comment-list {
    margin-top: 2rem;
  }
  .single-article__comments .comment-list li {
    background: #001d3d;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
  }
  .single-article__comments .comment-meta,
  .single-article__comments .comment-author {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
  }
  .single-article__comments .comment-content {
    margin-top: 0.5rem;
    color: #e0e0e0;
  }
  
  /* ─── Fix: Logged-in User Links in Comment Section ─── */
  .logged-in-as a,
  .single-article__comments a {
    color: #00d4ff;
    text-decoration: underline;
  }

  .logged-in-as a:hover,
  .single-article__comments a:hover {
    color: #ffffff;
    text-decoration: none;
  }

  /* ─── Responsive ─── */
  @media (max-width: 600px) {
    .single-article {
      margin: 2rem 10px;
      padding: 1rem;
    }
    .single-article__title {
      font-size: 2rem;
    }
    .single-article__body {
      padding: 1rem;
    }
    .single-share {
      flex-direction: column;
      align-items: flex-start;
    }
    .single-share__label {
      margin-bottom: 0.5rem;
    }
  }
  