/*
Theme Name: Preline Stock Blog
Version: 3.0.1
*/
/* ── Reset & Tokens ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --blue: #1C64F2;
  --blue-hover: #1a56db;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6
}

a {
  color: inherit;
  text-decoration: none
}

img {
  display: block;
  max-width: 100%
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100
}

.site-header .wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-900)
}

.brand svg {
  height: 32px
}

.brand-text {
  font-weight: 700;
  font-size: 16px
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .15s
}

.site-nav a:hover {
  color: var(--blue)
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  transition: background .15s
}

.btn:hover {
  background: var(--blue-hover);
  color: #fff
}

/* ── 3-Column Article Layout ── */
/* ── Footer ── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 0
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px
}

.footer-col ul {
  list-style: none
}

.footer-col li+li {
  margin-top: 10px
}

.footer-col a {
  font-size: 13px;
  color: var(--gray-400);
  transition: color .15s
}

.footer-col a:hover {
  color: #fff
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--gray-500)
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px
}

.footer-social a {
  color: var(--gray-400);
  transition: color .15s
}

.footer-social a:hover {
  color: #fff
}

/* ── Homepage ── */
.fb-home-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

.fb-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gray-200)
}

.fb-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--gray-900)
}

.fb-hero p {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.6
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
  padding-top: 40px
}

.fb-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 48px
}

.fb-post-card {
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s
}

.fb-post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transform: translateY(-2px)
}

.fb-post-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray-100)
}

.fb-post-body {
  padding: 20px
}

.fb-post-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px
}

.fb-post-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 8px
}

.fb-post-excerpt {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.fb-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-400)
}

.fb-post-meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%
}

/* ── CTA ── */
.fb-cta {
  background: var(--blue);
  padding: 48px 0;
  text-align: center
}

.fb-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px
}

.fb-cta h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px
}

.fb-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 24px
}

.fb-cta .btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  padding: 0 24px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: opacity .15s
}

.fb-cta .btn-white:hover {
  opacity: .9
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 50
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto
}

/* ── Responsive ── */
@media(max-width:1024px) {
  .fb-article-grid {
    grid-template-columns: 1fr;
    gap: 0
  }

  .fb-left-sidebar,
  .fb-right-sidebar {
    position: static;
    display: none
  }

  .fb-related-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr
  }

  .fb-posts-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:640px) {
  .fb-article-title {
    font-size: 22px
  }

  .fb-related-grid {
    grid-template-columns: 1fr
  }

  .fb-posts-grid {
    grid-template-columns: 1fr
  }

  .fb-share-left {
    flex-wrap: wrap
  }

  .footer-inner {
    grid-template-columns: 1fr
  }

  .site-nav {
    display: none
  }
}

/* ── Stock download page ── */
.stock-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px
}

.stock-section h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--gray-900)
}

.stock-section p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px
}

.stock-section .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0
}

.stock-section .service-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  text-align: center
}

.stock-section .service-icon {
  font-size: 32px;
  margin-bottom: 12px
}

.stock-section .service-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px
}

.stock-section .service-desc {
  font-size: 13px;
  color: var(--gray-500)
}

/* ── WP defaults ── */
.wp-block-image img {
  border-radius: 8px;
  margin: 20px 0
}

.aligncenter {
  display: block;
  margin: 0 auto
}

.alignleft {
  float: left;
  margin: 0 20px 20px 0
}

.alignright {
  float: right;
  margin: 0 0 20px 20px
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px)
}

.fb-article-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

.fb-article-grid {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 32px;
  padding: 32px 0 48px;
  align-items: start
}

/* ── Left Sidebar ── */
.fb-left-sidebar {
  position: sticky;
  top: 80px
}

.fb-sidebar-block {
  margin-bottom: 24px
}

.fb-sidebar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px
}

.fb-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.fb-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-600);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s
}

.fb-reaction:hover {
  border-color: var(--blue);
  color: var(--blue)
}

.fb-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.fb-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
  transition: background .15s, color .15s
}

.fb-cat-link:hover {
  background: var(--gray-100);
  color: var(--gray-900)
}

.fb-cat-link svg {
  color: var(--gray-400);
  flex-shrink: 0
}

.fb-cat-link-sm {
  font-size: 13px;
  color: var(--gray-500)
}

.fb-cat-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0
}

.fb-cat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 12px
}

.fb-ad-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  text-align: center
}

.fb-ad-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--blue)
}

.fb-ad-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 8px
}

.fb-ad-label {
  font-size: 11px;
  color: var(--gray-400);
  font-style: italic
}

/* ── Article Main ── */
.fb-article-main {
  min-width: 0
}

.fb-article-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200)
}

.fb-article-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--gray-900)
}

.fb-article-meta {
  font-size: 14px;
  color: var(--gray-500)
}

.fb-article-meta span+span::before {
  content: "·";
  margin: 0 6px;
  color: var(--gray-300)
}

.fb-author-link,
.fb-cat-meta-link {
  color: var(--gray-900);
  font-weight: 500
}

.fb-author-link:hover,
.fb-cat-meta-link:hover {
  text-decoration: underline
}

/* ── Share bar ── */
.fb-share-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-200)
}

.fb-share-left {
  display: flex;
  gap: 8px
}

.fb-share-right {
  display: flex;
  gap: 8px;
  align-items: center
}

.fb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: #fff;
  transition: all .15s
}

.fb-share-btn:hover {
  border-color: var(--blue);
  color: var(--blue)
}

.fb-save-btn,
.fb-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--gray-500);
  transition: all .15s
}

.fb-save-btn:hover,
.fb-more-btn:hover {
  background: var(--gray-100);
  color: var(--gray-900)
}

/* ── Article body (entry-content) ── */
.fb-article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-600)
}

.fb-article-body h2,
.fb-article-body h3,
.fb-article-body h4 {
  color: var(--gray-900);
  margin: 32px 0 12px;
  font-weight: 700;
  line-height: 1.35
}

.fb-article-body h2 {
  font-size: 22px
}

.fb-article-body h3 {
  font-size: 18px
}

.fb-article-body p {
  margin-bottom: 16px
}

.fb-article-body ul,
.fb-article-body ol {
  padding-left: 24px;
  margin-bottom: 16px
}

.fb-article-body li+li {
  margin-top: 6px
}

.fb-article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px
}

.fb-article-body img {
  border-radius: 8px;
  margin: 20px 0;
  width: 100%;
  max-height: 400px;
  object-fit: cover
}

.fb-article-body blockquote {
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--gray-50);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gray-700)
}

.fb-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px
}

.fb-article-body th,
.fb-article-body td {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  text-align: left
}

.fb-article-body th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-900)
}

.fb-article-body code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px
}

.fb-article-body pre {
  background: var(--gray-900);
  color: #e5e7eb;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6
}

.fb-article-body pre code {
  background: none;
  padding: 0;
  color: inherit
}

/* ── Comments ── */
.fb-comments {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200)
}

.fb-comments-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px
}

.fb-comments .comment-list {
  list-style: none;
  padding: 0
}

.fb-comments .comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100)
}

.fb-comments .comment-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%
}

.fb-comments .comment-content p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6
}

.fb-comments .comment-respond {
  margin-top: 24px
}

.fb-comments textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  resize: vertical
}

.fb-comments textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 100, 242, .1)
}

.fb-comments .submit {
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer
}

.fb-comments .submit:hover {
  background: var(--blue-hover)
}

/* ── Right Sidebar ── */
.fb-right-sidebar {
  position: sticky;
  top: 80px
}

.fb-sidebar-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px
}

.fb-sidebar-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px
}

.fb-author-card {
  text-align: center
}

.fb-author-top {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 12px
}

.fb-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover
}

/* SVG avatar icon placeholders */
.fb-avatar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  flex-shrink: 0
}

.fb-avatar-icon.fb-avatar-lg {
  width: 36px;
  height: 36px
}

.fb-avatar-icon.fb-avatar-xl {
  width: 48px;
  height: 48px
}

.fb-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900)
}

.fb-author-followers {
  font-size: 12px;
  color: var(--gray-500)
}

.fb-author-bio {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: left
}

.fb-author-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left
}

.fb-author-details dt {
  color: var(--gray-500);
  font-weight: 500
}

.fb-author-details dd {
  color: var(--gray-700);
  margin: 0
}

.fb-follow-btn {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s
}

.fb-follow-btn:hover {
  background: var(--blue-hover);
  color: #fff
}

.fb-search-form {
  position: relative
}

.fb-search-input-wrap {
  position: relative
}

.fb-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400)
}

.fb-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  background: var(--gray-50)
}

.fb-search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 100, 242, .1);
  background: #fff
}

.fb-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.fb-topic-tag {
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-600);
  transition: all .15s
}

.fb-topic-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(28, 100, 242, .04)
}

.fb-follow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100)
}

.fb-follow-item:last-child {
  border-bottom: none;
  padding-bottom: 0
}

.fb-follow-item:first-of-type {
  padding-top: 0
}

.fb-follow-avatar,
.fb-follow-item .fb-avatar-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0
}

.fb-follow-info {
  flex: 1;
  min-width: 0
}

.fb-follow-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.fb-follow-role {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.fb-follow-btn-sm {
  padding: 4px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  background: #fff;
  flex-shrink: 0;
  transition: all .15s
}

.fb-follow-btn-sm:hover {
  border-color: var(--blue);
  color: var(--blue)
}

/* ── Related articles ── */
.fb-related {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 48px 0
}

.fb-related-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

.fb-related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray-900)
}

.fb-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px
}

.fb-related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s
}

.fb-related-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transform: translateY(-2px)
}

.fb-related-img {
  width: 100%;
  height: 160px;
  object-fit: cover
}

.fb-related-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  padding: 16px 16px 8px;
  line-height: 1.4
}

.fb-related-card-excerpt {
  font-size: 13px;
  color: var(--gray-500);
  padding: 0 16px;
  line-height: 1.5
}

.fb-related-read {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue)
}

/* ── Homepage 3-Column Post List ── */
.fb-home-list {
  display: flex;
  flex-direction: column;
  gap: 0
}

.fb-home-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200)
}

.fb-home-card:first-child {
  padding-top: 0
}

.fb-home-card-img-link {
  flex-shrink: 0;
  width: 200px;
  border-radius: 10px;
  overflow: hidden
}

.fb-home-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform .3s
}

.fb-home-card-img-link:hover .fb-home-card-img {
  transform: scale(1.03)
}

.fb-home-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.fb-cat-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #EBF5FF;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 8px;
  align-self: flex-start
}

.fb-home-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--gray-900)
}

.fb-home-card-title a {
  color: inherit;
  transition: color .15s
}

.fb-home-card-title a:hover {
  color: var(--blue)
}

.fb-home-card-excerpt {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px
}

.fb-home-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400)
}

.fb-home-card-meta .fb-avatar-icon {
  width: 22px;
  height: 22px
}

.fb-home-card-author {
  font-weight: 600;
  color: var(--gray-700)
}

.fb-home-card-date::before {
  content: "·";
  margin-right: 6px
}

/* Homepage pagination */
.fb-home-pagination {
  padding: 28px 0 0;
  text-align: center
}

.fb-home-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px
}

.fb-home-pagination a,
.fb-home-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-600);
  background: #fff;
  transition: all .15s
}

.fb-home-pagination a:hover {
  border-color: var(--blue);
  color: var(--blue)
}

.fb-home-pagination .current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

.fb-empty {
  padding: 48px;
  text-align: center;
  color: var(--gray-500);
  font-size: 15px
}

/* Homepage responsive */
@media(max-width:640px) {
  .fb-home-card {
    flex-direction: column;
    gap: 12px
  }

  .fb-home-card-img-link {
    width: 100%
  }

  .fb-home-card-img {
    height: 180px
  }
}

/* ── Stock Download Page ── */
.fb-sdl-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1c64f2 100%);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 32px;
  color: #fff;
  position: relative;
  overflow: hidden
}

.fb-sdl-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06)
}

.fb-sdl-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative
}

.fb-sdl-hero p {
  font-size: 15px;
  line-height: 1.7;
  opacity: .85;
  max-width: 520px;
  position: relative
}

.fb-sdl-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  position: relative
}

.fb-sdl-stat {
  text-align: center
}

.fb-sdl-stat-num {
  font-size: 28px;
  font-weight: 800;
  display: block
}

.fb-sdl-stat-label {
  font-size: 12px;
  opacity: .7;
  margin-top: 2px
}

.fb-stock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.fb-stock-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  transition: all .25s ease;
  position: relative;
  display: flex;
  flex-direction: column
}

.fb-stock-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(28, 100, 242, .1);
  transform: translateY(-2px)
}

.fb-stock-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.fb-stock-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff
}

.fb-stock-card-icon.sc-ss {
  background: linear-gradient(135deg, #e8413c, #d63230)
}

.fb-stock-card-icon.sc-dp {
  background: linear-gradient(135deg, #00b36b, #009e60)
}

.fb-stock-card-icon.sc-rf {
  background: linear-gradient(135deg, #f5a623, #e8961c)
}

.fb-stock-card-icon.sc-as {
  background: linear-gradient(135deg, #ff0000, #cc0000)
}

.fb-stock-card-icon.sc-is {
  background: linear-gradient(135deg, #000, #333)
}

.fb-stock-card-icon.sc-dt {
  background: linear-gradient(135deg, #6aab35, #5a9a2d)
}

.fb-stock-card-icon.sc-fp {
  background: linear-gradient(135deg, #0e60ff, #0050dd)
}

.fb-stock-card-icon.sc-vs {
  background: linear-gradient(135deg, #ff6a00, #e05500)
}

.fb-stock-card-icon.sc-ee {
  background: linear-gradient(135deg, #82b541, #6fa030)
}

.fb-stock-card-icon.sc-al {
  background: linear-gradient(135deg, #00a651, #008f45)
}

.fb-stock-card-icon.sc-vz {
  background: linear-gradient(135deg, #5b4dc7, #4a3db5)
}

.fb-stock-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900)
}

.fb-stock-card-title a {
  color: inherit;
  transition: color .15s
}

.fb-stock-card-title a:hover {
  color: var(--blue)
}

.fb-stock-card-url {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 1px
}

.fb-stock-card-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1
}

.fb-stock-card-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px
}

.fb-stock-plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: #EBF5FF;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: .01em
}

.fb-stock-plan::before {
  content: '✓';
  font-size: 10px
}

.fb-stock-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100)
}

.fb-stock-btn {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 8px;
  transition: all .15s
}

.fb-stock-btn-outline {
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  background: transparent
}

.fb-stock-btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #f0f6ff
}

.fb-stock-btn-primary {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue)
}

.fb-stock-btn-primary:hover {
  background: #1a56db;
  color: #fff
}

.fb-stock-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #EBF5FF, #f0f6ff);
  border-radius: 12px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  border-left: 4px solid var(--blue)
}

@media(max-width:900px) {
  .fb-stock-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:640px) {
  .fb-sdl-hero {
    padding: 32px 24px
  }

  .fb-sdl-hero h1 {
    font-size: 22px
  }

  .fb-sdl-stats {
    gap: 20px
  }

  .fb-sdl-stat-num {
    font-size: 22px
  }

  .fb-stock-card {
    padding: 18px
  }

  .fb-stock-card-plans {
    gap: 4px
  }

  .fb-stock-plan {
    font-size: 10px;
    padding: 4px 8px
  }
}