/* ==========================================================================
   Intechno Theme - Modern Single Post & Blog Detail Styles
   ========================================================================== */

:root {
  --blog-primary: #0A3D91;
  --blog-primary-dark: #072152;
  --blog-accent: #00b6de;
  --blog-text-dark: #0f172a;
  --blog-text-muted: #64748b;
  --blog-border: rgba(10, 61, 145, 0.09);
  --blog-bg-light: #f8fafc;
}

.single-post-section {
  background: var(--blog-bg-light);
  padding: 60px 0 100px;
}

/* Main Post Card */
.single-post-article {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--blog-border);
  box-shadow: 0 10px 35px rgba(10, 61, 145, 0.05);
  overflow: hidden;
  margin-bottom: 40px;
}

.single-post-featured-media {
  position: relative;
  overflow: hidden;
  max-height: none;
  background: #f8fafc;
}

.single-post-featured-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.single-post-category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  gap: 8px;
  z-index: 2;
}

.single-post-category-badge a {
  background: rgba(10, 61, 145, 0.85);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.single-post-category-badge a:hover {
  background: #00b6de;
  color: #ffffff;
  transform: translateY(-2px);
}

.single-post-content-wrap {
  padding: clamp(24px, 4vw, 45px);
}

/* Post Meta Header Strip */
.single-post-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(10, 61, 145, 0.08);
}

.single-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--blog-text-muted);
  font-weight: 500;
}

.single-post-meta-item i {
  color: var(--blog-accent);
  font-size: 14px;
}

.single-post-meta-item a {
  color: var(--blog-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.single-post-meta-item a:hover {
  color: var(--blog-accent);
}

.single-post-meta-dot {
  color: #cbd5e1;
  font-size: 14px;
}

/* Single Post Main Title */
.single-post-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--blog-primary-dark);
  line-height: 1.28;
  letter-spacing: -0.4px;
  margin-bottom: 26px;
}

/* Post Body Content Styling */
.single-post-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: #334155;
}

.single-post-body p {
  margin-bottom: 22px;
}

.single-post-body h1,
.single-post-body h2,
.single-post-body h3,
.single-post-body h4,
.single-post-body h5,
.single-post-body h6 {
  color: var(--blog-primary-dark);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 36px;
  margin-bottom: 16px;
}

.single-post-body h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  border-left: 4px solid var(--blog-accent);
  padding-left: 14px;
}

.single-post-body h3 {
  font-size: clamp(18px, 2vw, 22px);
}

.single-post-body blockquote {
  position: relative;
  background: #f0f7ff;
  border-left: 4px solid var(--blog-accent);
  padding: 24px 30px;
  margin: 30px 0;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  font-size: 17.5px;
  color: var(--blog-primary-dark);
  line-height: 1.65;
}

.single-post-body blockquote::before {
  content: "\201C";
  font-size: 60px;
  line-height: 1;
  color: rgba(0, 182, 222, 0.3);
  position: absolute;
  top: 10px;
  left: 10px;
}

.single-post-body ul,
.single-post-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.single-post-body li {
  margin-bottom: 10px;
}

.single-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

.single-post-body pre,
.single-post-body code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14.5px;
}

.single-post-body pre {
  padding: 18px 22px;
  overflow-x: auto;
  margin: 24px 0;
}

.single-post-body :not(pre) > code {
  padding: 3px 8px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 13.5px;
}

/* Post Tags & Share Bar */
.single-post-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(10, 61, 145, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.single-post-tags-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--blog-primary-dark);
  margin-right: 4px;
}

.single-post-tag-item {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(10, 61, 145, 0.06);
}

.single-post-tag-item:hover {
  background: var(--blog-primary);
  color: #ffffff;
  border-color: var(--blog-primary);
  transform: translateY(-2px);
}

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

.single-post-share-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--blog-primary-dark);
}

.single-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.single-share-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  opacity: 0.9;
}

.single-share-btn.twitter { background: #000000; }
.single-share-btn.linkedin { background: #0077b5; }
.single-share-btn.facebook { background: #1877f2; }
.single-share-btn.whatsapp { background: #25d366; }
.single-share-btn.copy { background: #64748b; cursor: pointer; border: none; }

/* Author Bio Card */
.single-post-author-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--blog-border);
  box-shadow: 0 10px 30px rgba(10, 61, 145, 0.04);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 575px) {
  .single-post-author-box {
    flex-direction: column;
    text-align: center;
  }
}

.single-post-author-avatar img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0f2fe;
}

.single-post-author-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--blog-primary-dark);
  margin-bottom: 6px;
}

.single-post-author-bio {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 10px;
}

.single-post-author-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blog-accent);
  text-decoration: none;
}

.single-post-author-link:hover {
  text-decoration: underline;
}

/* Post Navigation (Prev / Next) */
.single-post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .single-post-navigation {
    grid-template-columns: 1fr;
  }
}

.single-nav-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--blog-border);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.single-nav-card:hover {
  border-color: var(--blog-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 182, 222, 0.12);
  color: inherit;
}

.single-nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--blog-accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-nav-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--blog-primary-dark);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Comments Section Modern Styling */
.comments-area {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--blog-border);
  box-shadow: 0 10px 30px rgba(10, 61, 145, 0.04);
  padding: clamp(24px, 4vw, 40px);
}

.comments-title,
.comment-reply-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--blog-primary-dark);
  margin-bottom: 24px;
}

.comment-list,
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list .comment {
  padding: 20px 0;
  border-bottom: 1px solid rgba(10, 61, 145, 0.06);
}

.comment-body {
  position: relative;
  padding-left: 70px;
}

.comment-author .avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--blog-primary-dark);
  font-style: normal;
  font-size: 15.5px;
}

.comment-metadata {
  font-size: 12.5px;
  color: var(--blog-text-muted);
  margin-bottom: 8px;
}

.comment-metadata a {
  color: var(--blog-text-muted);
  text-decoration: none;
}

.comment-content p {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 10px;
}

.reply a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blog-accent);
  text-decoration: none;
}

.reply a:hover {
  text-decoration: underline;
}

/* Comment Form */
.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.comment-form .comment-notes,
.comment-form .comment-form-comment,
.comment-form .form-submit,
.comment-form .comment-form-cookies-consent {
  grid-column: 1 / -1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(10, 61, 145, 0.15);
  font-size: 14.5px;
  background: #f8fafc;
  transition: all 0.25s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--blog-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 182, 222, 0.15);
}

.comment-form .submit {
  background: linear-gradient(135deg, #0A3D91 0%, #00b6de 100%);
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(10, 61, 145, 0.2);
}

.comment-form .submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 182, 222, 0.3);
}

/* ==========================================================================
   Sidebar Widgets Modern Corporate Styling
   ========================================================================== */
.sidebar,
.sidebar-primary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar .widget,
.sidebar-widget {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  padding: 28px 24px;
  margin-bottom: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar .widget:hover,
.sidebar-widget:hover {
  box-shadow: 0 10px 25px rgba(10, 61, 145, 0.07);
}

.widget-title,
.sidebar-widget-title,
.sidebar .widget h2,
.sidebar .widget h3 {
  font-size: 19px;
  font-weight: 800;
  color: #082d71;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
  letter-spacing: -0.2px;
}

.widget-title::after,
.sidebar-widget-title::after,
.sidebar .widget h2::after,
.sidebar .widget h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 44px;
  height: 2px;
  background: #00b6de;
  border-radius: 2px;
}

/* 1. Search Widget Styling */
.widget_search,
.wp-block-search {
  padding: 24px;
}

.widget_search form,
.search-form,
.wp-block-search__inside-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.widget_search label {
  width: 100%;
  margin: 0;
}

.widget_search input[type="search"],
.search-form input[type="search"],
.search-form .search-field,
.wp-block-search__input {
  width: 100% !important;
  height: 48px;
  padding: 10px 48px 10px 18px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  color: #1e293b !important;
  transition: all 0.25s ease !important;
  outline: none !important;
}

.widget_search input[type="search"]:focus,
.search-form input[type="search"]:focus,
.search-form .search-field:focus,
.wp-block-search__input:focus {
  border-color: #00b6de !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 182, 222, 0.15) !important;
}

.widget_search input[type="submit"],
.widget_search .search-submit,
.search-form .search-submit,
.wp-block-search__button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 16px !important;
  background: linear-gradient(135deg, #0A3D91 0%, #00b6de 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
}

.widget_search input[type="submit"]:hover,
.widget_search .search-submit:hover,
.search-form .search-submit:hover,
.wp-block-search__button:hover {
  background: linear-gradient(135deg, #00b6de 0%, #0A3D91 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 182, 222, 0.35);
}

/* 2. Recent Posts Widget */
.widget_recent_entries ul,
.wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_recent_entries li,
.wp-block-latest-posts li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.widget_recent_entries li:first-child,
.wp-block-latest-posts li:first-child {
  padding-top: 0;
}

.widget_recent_entries li:last-child,
.wp-block-latest-posts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget_recent_entries li a,
.wp-block-latest-posts li a {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.widget_recent_entries li a:hover,
.wp-block-latest-posts li a:hover {
  color: #00b6de;
}

.widget_recent_entries li .post-date,
.wp-block-latest-posts__post-date {
  font-size: 12.5px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.widget_recent_entries li .post-date::before,
.wp-block-latest-posts__post-date::before {
  content: "\f073";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: #00b6de;
}

/* 3. Categories & Archives Widgets */
.widget_categories ul,
.widget_archive ul,
.wp-block-categories-list,
.wp-block-archives-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_categories li,
.widget_archive li,
.wp-block-categories-list li,
.wp-block-archives-list li,
ul.wp-block-categories-list.wp-block-categories li,
ul.wp-block-archives-list li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 18px !important;
  margin-bottom: 10px !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.widget_categories li:hover,
.widget_archive li:hover,
.wp-block-categories-list li:hover,
.wp-block-archives-list li:hover,
ul.wp-block-categories-list.wp-block-categories li:hover,
ul.wp-block-archives-list li:hover {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  transform: translateX(4px) !important;
}

.widget_categories li a,
.widget_archive li a,
.wp-block-categories-list li a,
.wp-block-archives-list li a,
ul.wp-block-categories-list.wp-block-categories li a,
ul.wp-block-categories-list li a,
ul.wp-block-categories li a,
.wp-block-categories li a,
li.cat-item a,
.cat-item a {
  color: #334155 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
  flex: 1;
}

.widget_categories li a::before,
.wp-block-categories-list li a::before,
.wp-block-categories li a::before,
ul.wp-block-categories-list.wp-block-categories li a::before,
ul.wp-block-categories-list li a::before,
ul.wp-block-categories li a::before,
li.cat-item a::before,
.cat-item a::before,
.widget_categories a::before {
  content: "\f07b\00a0\00a0" !important;
  font-family: "Font Awesome 6 Free", "FontAwesome" !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  color: #00b6de !important;
  margin-right: 14px !important;
  display: inline-block !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.widget_archive li a::before,
.wp-block-archives-list li a::before,
ul.wp-block-archives-list li a::before {
  content: "\f133";
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  font-size: 14px;
  color: #0A3D91;
  margin-right: 12px !important;
  display: inline-block !important;
  line-height: 1;
  flex-shrink: 0;
}

.widget_categories li a:hover,
.widget_archive li a:hover,
.wp-block-categories-list li a:hover,
.wp-block-archives-list li a:hover,
ul.wp-block-categories-list.wp-block-categories li a:hover,
ul.wp-block-archives-list li a:hover {
  color: #0A3D91 !important;
}

.widget_categories li .count,
.widget_archive li .count,
.wp-block-categories-list li .wp-block-categories-list__post-count {
  font-size: 12px;
  font-weight: 700;
  color: #0A3D91;
  background: #e0f2fe;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: auto;
}

/* 4. Recent Comments Widget */
.widget_recent_comments ul,
.wp-block-latest-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_recent_comments li,
.wp-block-latest-comments li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.widget_recent_comments li:last-child,
.wp-block-latest-comments li:last-child {
  border-bottom: none;
}

.widget_recent_comments li .comment-author-link,
.wp-block-latest-comments .comment-author-link {
  font-weight: 700;
  color: #082d71;
}

.widget_recent_comments li a,
.wp-block-latest-comments a {
  color: #00b6de;
  text-decoration: none;
  font-weight: 600;
}

.widget_recent_comments li a:hover,
.wp-block-latest-comments a:hover {
  text-decoration: underline;
}

/* 5. Tag Cloud Widget */
.widget_tag_cloud .tagcloud,
.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget_tag_cloud a,
.wp-block-tag-cloud a {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12.5px !important;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.widget_tag_cloud a:hover,
.wp-block-tag-cloud a:hover {
  background: #0A3D91;
  color: #ffffff;
  border-color: #0A3D91;
  transform: translateY(-2px);
}
