/* Article Progress Bar */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  z-index: 1050;
  transition: width 0.25s ease;
}

.breadcrumb-custom {
  background: rgba(13, 110, 253, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.reading-time {
  background: rgba(32, 201, 151, 0.1);
  color: #0f5132;
  border-radius: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.article-meta {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #0d6efd;
}

.floating-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (max-width: 991px) {
  .floating-toc {
    position: relative;
    top: 0;
    max-height: none;
  }
}

/* Enhanced blog content styles */
.enhanced-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.enhanced-content p {
  margin-bottom: 1.1em;
  text-align: justify;
}

.enhanced-content h1, .enhanced-content h2, .enhanced-content h3,
.enhanced-content h4, .enhanced-content h5, .enhanced-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #2c3e50;
  position: relative;
}

.enhanced-content h1::before, .enhanced-content h2::before,
.enhanced-content h3::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  border-radius: 2px;
}

.enhanced-content ul, .enhanced-content ol {
  margin-left: 2em;
  margin-bottom: 1.1em;
}

.enhanced-content li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

.enhanced-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
  border-radius: 0.75em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.enhanced-content img:hover {
  transform: scale(1.02);
}

.enhanced-content blockquote {
  border-left: 4px solid #0d6efd;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5em 2em;
  margin: 2em 0;
  font-style: italic;
  color: #495057;
  border-radius: 0 0.5rem 0.5rem 0;
  position: relative;
}

.enhanced-content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: #0d6efd;
  position: absolute;
  top: -10px;
  left: 15px;
  font-family: Georgia, serif;
}

.enhanced-content code {
  background: #f8f9fa;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.9em;
  color: #e83e8c;
}

.enhanced-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1.5em;
  border-radius: 0.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.enhanced-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 0.5em;
  overflow: hidden;
}

.enhanced-content th, .enhanced-content td {
  padding: 1em;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.enhanced-content th {
  background: #0d6efd;
  color: white;
  font-weight: 600;
}

.enhanced-content tr:hover {
  background: #f8f9fa;
}

/* Print Styles */
@media print {
  .floating-toc, .article-progress, .breadcrumb-custom,
  .btn, .article-rating, nav, footer,
  .social-share, .comment-section {
    display: none !important;
  }

  .article-content {
    font-size: 12pt !important;
    line-height: 1.6 !important;
  }

  .article-content h1, .article-content h2, .article-content h3 {
    page-break-after: avoid;
  }

  .article-content img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* Hover Effects */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.toc-link:hover {
  background: rgba(13, 110, 253, 0.1);
  border-radius: 0.25rem;
  padding-left: 0.5rem !important;
  transition: all 0.2s ease;
}

/* Editorial article theme: styles semantic HTML entered in the admin. */
body { background: #faf9ff; }
.article-progress { height: 4px; background: linear-gradient(90deg, #7657e8, #9b7cff, #42c7bb); box-shadow: 0 1px 8px rgba(118,87,232,.35); }
.article-breadcrumb-wrap { margin-top: 2rem; }
.breadcrumb-custom { background: transparent; padding: .75rem 0; font-size: .88rem; }
.breadcrumb-custom a { color: #6755bd; }
.article-layout { max-width: 1180px; }
.article-hero-card { position: relative; overflow: hidden; margin-top: .75rem; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 1.75rem; background: linear-gradient(145deg, #17112f 0%, #302064 52%, #6548d3 100%); color: white; box-shadow: 0 28px 75px rgba(37,25,81,.2); }
.article-hero-card::before { content: ""; position: absolute; width: 24rem; height: 24rem; right: -10rem; top: -14rem; border-radius: 50%; background: radial-gradient(circle, rgba(196,181,253,.65), rgba(196,181,253,0) 68%); }
.article-hero-card::after { content: ""; position: absolute; width: 18rem; height: 18rem; left: -10rem; bottom: -13rem; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,.38), transparent 70%); }
.article-hero-card > * { position: relative; z-index: 1; }
.article-hero-card h1 { max-width: 850px; color: white !important; font-size: clamp(2.35rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.05em; }
.article-eyebrow { display: inline-block; margin-bottom: 1rem; color: #d9ceff; font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.article-meta { margin-top: 2rem; padding: 0 !important; border: 0; background: transparent; color: #ded9ed; }
.article-meta .text-muted { color: #ded9ed !important; }
.article-meta .badge { background: rgba(255,255,255,.14) !important; color: #fff; backdrop-filter: blur(8px); }
.reading-time { display: inline-flex; align-items: center; background: rgba(255,255,255,.13); color: #fff; padding: .45rem .85rem; backdrop-filter: blur(8px); }
.article-layout figure img { max-height: 560px !important; border-radius: 1.4rem !important; box-shadow: 0 24px 60px rgba(31,24,63,.18) !important; }
.article-layout > .row > .col-12 > article > div > .card { border: 1px solid #ebe7f3 !important; border-radius: 1.5rem; box-shadow: 0 18px 55px rgba(35,26,73,.07) !important; }
.article-layout > .row > .col-12 > article > div > .card > .card-body { padding: clamp(1.5rem, 5vw, 4.5rem); }
.enhanced-content { color: #302d3d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.8vw, 1.2rem); line-height: 1.9; }
.enhanced-content > p:first-child { color: #4f4a61; font-size: 1.22em; line-height: 1.7; }
.enhanced-content p { margin-bottom: 1.45em; text-align: left; }
.enhanced-content h1,.enhanced-content h2,.enhanced-content h3,.enhanced-content h4,.enhanced-content h5,.enhanced-content h6 { scroll-margin-top: 6rem; margin-top: 2.1em; margin-bottom: .75em; color: #19152b; font-family: inherit; font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.enhanced-content h1::before,.enhanced-content h2::before,.enhanced-content h3::before { display: none; }
.enhanced-content h2 { padding-bottom: .55rem; border-bottom: 1px solid #ece8f3; font-size: 1.65em; }
.enhanced-content h3 { font-size: 1.3em; }
.enhanced-content a { color: #6548d3; text-decoration-color: #b9a8f3; text-underline-offset: .2em; }
.enhanced-content ul,.enhanced-content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.enhanced-content li { margin-bottom: .7em; padding-left: .35em; }
.enhanced-content li::marker { color: #7657e8; font-weight: 700; }
.enhanced-content blockquote { margin: 2.2em 0; padding: 1.6em 1.8em 1.6em 2em; border: 0; border-left: 5px solid #7657e8; border-radius: 0 1rem 1rem 0; background: #f3f0ff; color: #3f3763; font-size: 1.12em; }
.enhanced-content blockquote::before { display: none; }
.enhanced-content code { border: 1px solid #e4deef; background: #f6f4fa; color: #a62a68; }
.enhanced-content pre { padding: 1.6rem; border: 1px solid #443b61; border-radius: 1rem; background: #1d1929; box-shadow: 0 15px 35px rgba(24,20,37,.16); }
.enhanced-content pre code { border: 0; background: transparent; color: #eeeaf7; }
.enhanced-content table { display: block; overflow-x: auto; border-radius: 1rem; box-shadow: 0 10px 32px rgba(32,24,67,.08); }
.enhanced-content th { background: #302064; }
.enhanced-content tr:hover { background: #f7f5fc; }
.enhanced-content img { border-radius: 1rem; box-shadow: 0 18px 45px rgba(28,21,55,.14); }
.article-layout .bg-light { background: #f5f2fb !important; }
.article-layout .btn-primary,.article-layout .bg-primary { border-color: #6d50da !important; background-color: #6d50da !important; }
.article-layout .text-primary { color: #6548d3 !important; }
.article-layout .card-header.bg-primary { padding: 1.1rem 1.35rem; background: linear-gradient(135deg,#302064,#6d50da) !important; }
.hover-card { overflow: hidden; border: 1px solid #ece8f4 !important; border-radius: 1rem; }
.discussion-section { margin-top: 5rem; padding-top: 4rem; border-top: 1px solid #e7e2f0; }
.discussion-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.discussion-heading h2 { margin: -.2rem 0 .45rem; color: #19152b; font-size: clamp(1.8rem,4vw,2.5rem); font-weight: 750; letter-spacing: -.035em; }
.discussion-heading p { margin: 0; color: #716d7f; }
.comment-count { display: inline-flex; align-items: center; gap: .5rem; flex: none; padding: .6rem .85rem; border: 1px solid #ddd5f5; border-radius: 999px; background: #f3f0ff; color: #6046c6; font-weight: 750; }
.comment-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.comment-card { display: grid; grid-template-columns: 3.1rem 1fr; gap: 1rem; padding: 1.35rem; border: 1px solid #e9e5f1; border-radius: 1.15rem; background: #fff; box-shadow: 0 8px 28px rgba(35,26,73,.045); }
.comment-avatar { display: flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: linear-gradient(145deg,#7657e8,#49309f); color: #fff; font-size: 1.05rem; font-weight: 800; box-shadow: 0 7px 18px rgba(91,66,190,.24); }
.comment-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.comment-meta h3 { margin: 0 0 .15rem; color: #211b38; font-size: 1rem; font-weight: 750; }
.comment-meta time,.comment-number { color: #8a8596; font-size: .78rem; }
.comment-main > p { margin: .85rem 0 0; color: #4d4859; line-height: 1.7; overflow-wrap: anywhere; }
.comment-empty { margin-bottom: 2rem; padding: 2.5rem 1rem; border: 1px dashed #d8d0e7; border-radius: 1.15rem; background: rgba(255,255,255,.65); text-align: center; }
.comment-empty > span { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #eeeafd; color: #6d50da; font-size: 1.4rem; }
.comment-empty h3 { margin: 1rem 0 .35rem; color: #28213f; font-size: 1.1rem; }.comment-empty p { margin: 0; color: #7b7689; }
.comment-compose { overflow: hidden; border: 1px solid #dfd8ed; border-radius: 1.35rem; background: #fff; box-shadow: 0 18px 50px rgba(34,25,70,.08); }
.compose-intro { display: flex; gap: 1rem; padding: 1.5rem clamp(1.25rem,4vw,2rem); border-bottom: 1px solid #ebe7f2; background: linear-gradient(135deg,#f7f5ff,#f1edff); }
.compose-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: .8rem; background: #6d50da; color: #fff; font-size: 1.1rem; }
.compose-intro h3 { margin: 0 0 .25rem; color: #211b38; font-size: 1.15rem; font-weight: 750; }.compose-intro p { margin: 0; color: #777184; font-size: .85rem; }
.comment-form { padding: clamp(1.25rem,4vw,2rem); }
.form-field label { display: block; margin-bottom: .45rem; color: #393346; font-size: .86rem; font-weight: 700; }.form-field label span { margin-left: .2rem; color: #d03a64; }
.comment-form .form-control { min-height: 3.15rem; padding: .75rem .9rem; border: 1px solid #dcd6e7; border-radius: .75rem; background: #fbfaff; color: #292436; }
.comment-form textarea.form-control { min-height: 10rem; resize: vertical; line-height: 1.65; }
.comment-form .form-control:focus { border-color: #8d76e7; background: #fff; box-shadow: 0 0 0 3px rgba(109,80,218,.13); }
.form-field small { display: block; margin-top: .4rem; color: #8a8595; font-size: .75rem; }.field-error { margin-top: .35rem; color: #be264e; font-size: .8rem; }
.comment-errors { display: flex; gap: .8rem; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid #f2bdca; border-radius: .8rem; background: #fff2f5; color: #9d2142; }.comment-errors > i { font-size: 1.2rem; }.comment-errors p { margin: .25rem 0 0; font-size: .85rem; }
.compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }.compose-footer p { margin: 0; color: #817b8d; font-size: .8rem; }.compose-footer p i { margin-right: .35rem; color: #2d9d7b; }
.comment-submit { display: inline-flex; align-items: center; gap: .65rem; flex: none; padding: .8rem 1.15rem; border: 0; border-radius: .75rem; background: linear-gradient(135deg,#7657e8,#5c3fc7); color: #fff; font-weight: 750; box-shadow: 0 8px 20px rgba(93,64,199,.22); transition: transform .2s,box-shadow .2s; }.comment-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(93,64,199,.3); }.comment-submit i { transition: transform .2s; }.comment-submit:hover i { transform: translateX(3px); }
@media (max-width: 767px) { .article-breadcrumb-wrap { margin-top: 1rem; }.breadcrumb-item.active { display: none; }.article-hero-card { border-radius: 1.25rem; }.article-meta .col-md-4 { text-align: left !important; }.article-layout > .row > .col-12 > article > div > .card > .card-body { padding: 1.35rem; }.enhanced-content { font-size: 1.05rem; }.enhanced-content blockquote { padding: 1.25rem; }.discussion-section { margin-top: 3.5rem; padding-top: 3rem; }.discussion-heading { gap: 1rem; }.comment-card { grid-template-columns: 2.6rem 1fr; padding: 1rem; }.comment-avatar { width: 2.6rem;height: 2.6rem; }.compose-footer { align-items: stretch; flex-direction: column; }.comment-submit { justify-content: center; width: 100%; } }
