.product-hero {
   padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 4rem);
   background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 100%);
   color: #0f172a;
}

.hero-layout {
   display: grid;
   grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
   gap: clamp(1.75rem, 4vw, 3rem);
   align-items: center;
}

.product-category-pill {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.35rem 1rem;
   border-radius: 999px;
   background: rgba(165, 180, 190, 0.25);
   color: #124e66;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

.product-hero h1 {
   font-size: clamp(2.25rem, 4.5vw, 3rem);
   margin: 1rem 0;
   color: #0f172a;
}

.product-hero p {
   font-size: clamp(1rem, 2vw, 1.1rem);
   color: #4b5c6a;
}

.hero-actions {
   display: flex;
   flex-wrap: wrap;
   gap: clamp(0.75rem, 2vw, 1rem);
   margin: 2rem 0 1.5rem;
}

.hero-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
}

.hero-tags .feature-tag {
   background: rgba(18, 78, 102, 0.1);
   color: #124e66;
   font-weight: 600;
}

.hero-visual img {
   width: 100%;
   border-radius: 1.5rem;
   box-shadow: 0 20px 48px rgba(18, 78, 102, 0.18);
   object-fit: cover;
}

.product-layout {
   display: grid;
   grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
   gap: clamp(1.75rem, 4vw, 3rem);
   padding-bottom: 4rem;
}

.product-description-block {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
   font-size: clamp(1rem, 2vw, 1.05rem);
   line-height: 1.8;
   color: #27333a;
}

.product-description-block p {
   margin: 0;
}

.product-highlights {
   margin-top: 2rem;
   padding: clamp(1.25rem, 3vw, 1.75rem);
   background: #f7f9fa;
   border-radius: 1.25rem;
   box-shadow: 0 12px 28px rgba(18, 78, 102, 0.08);
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.product-highlights h3 {
   margin-bottom: 0.5rem;
   color: #124e66;
}

.product-highlights ul {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 0.75rem;
}

.product-highlights li {
   display: flex;
   gap: 0.75rem;
   align-items: flex-start;
}

.product-highlights li i {
   color: #124e66;
   margin-top: 0.2rem;
}

.product-aside {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.aside-links {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-direction: column;
   gap: 0.75rem;
}

.aside-links a {
   color: #124e66;
   font-weight: 600;
   text-decoration: none;
}

@media (max-width: 992px) {
   .hero-layout {
      grid-template-columns: 1fr;
   }

   .product-layout {
      grid-template-columns: 1fr;
   }

   .product-hero {
      padding-top: 6rem;
   }
}

@media (max-width: 768px) {
   .hero-actions {
      flex-direction: column;
      align-items: stretch;
   }

   .preview-meta {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
   }

   .preview-content {
      padding: 1.5rem;
   }
}

@media (max-width: 600px) {
   .product-hero h1 {
      font-size: 2.1rem;
   }

   .hero-tags {
      flex-direction: column;
      align-items: flex-start;
   }

   .preview-content {
      border-radius: 1rem;
   }

   .preview-meta {
      font-size: 0.9rem;
   }
}
.article-preview-section,
.product-preview-section {
   padding: clamp(3rem, 8vw, 5rem) 0;
   background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}

.article-preview-section .container,
.product-preview-section .container {
   max-width: var(--content-max, 1200px);
   margin-inline: auto;
   padding-inline: var(--gutter, clamp(20px, 4vw, 48px));
}

.live-preview-header {
   margin-bottom: 1.5rem;
}

.live-preview-header h1 {
   font-size: 2.5rem;
   font-weight: 700;
   color: #0d1b2a;
   margin: 0 0 0.75rem;
   line-height: 1.2;
}

.preview-content {
   max-width: 900px;
   width: min(100%, 900px);
   padding: clamp(2rem, 5vw, 3.5rem);
   border-radius: 1.5rem;
   background: #ffffff;
   box-shadow: 0 30px 60px rgba(13, 27, 42, 0.08);
   border: 1px solid rgba(13, 27, 42, 0.05);
   font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.preview-content,
.preview-content * {
   overflow-wrap: anywhere;
   word-break: break-word;
   hyphens: auto;
}

.preview-surface h1 {
   font-size: 2.4rem;
   font-weight: 700;
   color: var(--primary-navy);
   margin-bottom: 1rem;
}

.preview-subtitle {
   font-size: 1.25rem;
   color: #475569;
   margin: 0 0 1.5rem;
   line-height: 1.5;
}

.preview-category {
   font-size: 1rem;
   font-weight: 600;
   color: #1c6e8c;
   background: rgba(28, 110, 140, 0.1);
   padding: 0.5rem 1rem;
   border-radius: 0.5rem;
   display: inline-block;
   margin-bottom: 1.5rem;
}

.preview-meta {
   display: flex;
   align-items: center;
   gap: 1rem;
   padding: 1rem 0;
   margin-bottom: 2rem;
   border-bottom: 2px solid #e2e8f0;
   color: #64748b;
   font-size: 0.95rem;
}

.meta-badge {
   display: inline-flex;
   padding: 0.35rem 0.85rem;
   border-radius: 999px;
   background: rgba(28, 110, 140, 0.1);
   color: #1c6e8c;
   font-size: 0.85rem;
   font-weight: 600;
}

.meta-date {
   color: #1c6e8c;
   font-weight: 600;
   font-size: 0.95rem;
}

.meta-author {
   color: #64748b;
   font-size: 0.95rem;
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
}

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

.preview-meta strong {
   color: #0f172a;
}

.preview-content img {
   width: 100%;
   border-radius: 1rem;
   margin: clamp(1.5rem, 4vw, 2.5rem) 0;
   box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.preview-excerpt {
   font-size: clamp(1rem, 2.2vw, 1.15rem);
   color: #475569;
   font-style: italic;
   margin: 0 0 2rem;
   padding: 1.25rem;
   background: #f8fafc;
   border-left: 4px solid #1c6e8c;
   border-radius: 0.5rem;
}

.preview-hero-image {
   margin: 2rem 0;
   border-radius: 1rem;
   overflow: hidden;
}

.preview-hero-image img {
   width: 100%;
   height: auto;
   display: block;
}

.preview-body {
   font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
   margin: 2rem 0;
   line-height: 1.85;
   color: #334155;
   font-size: clamp(1rem, 2vw, 1.05rem);
   text-align: justify;
   text-justify: inter-word;
   hyphens: auto;
}

.live-preview-body {
   margin: 2rem 0;
   text-align: justify;
   text-justify: inter-word;
}

.preview-body .preview-paragraph {
   font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
   font-size: clamp(1rem, 2vw, 1.05rem);
   line-height: 1.85;
   color: #334155;
   margin-bottom: 1.5rem;
   text-align: justify;
   text-justify: inter-word;
}

.preview-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   margin-top: 2.5rem;
   padding-top: 2rem;
   border-top: 2px solid #e2e8f0;
}

.preview-tag {
   display: inline-flex;
   align-items: center;
   padding: 0.4rem 0.9rem;
   border-radius: 999px;
   background: rgba(28, 110, 140, 0.1);
   color: #1c6e8c;
   font-weight: 600;
   font-size: 0.85rem;
}

.preview-tag.is-muted {
   background: rgba(15, 23, 42, 0.06);
   color: #475569;
}

.preview-meta.keyword-meta {
   border: none;
   padding: 0;
   margin-top: 1.5rem;
   gap: 0.75rem;
}

.preview-tags.keyword-tags {
   border: none;
   padding-top: 0;
   margin-top: 0;
}

.preview-media-section,
.preview-video-section,
.preview-sources {
   margin-top: 2.5rem;
}

.preview-footer-panel {
   margin-top: 2.5rem;
   padding: 2rem;
   border-radius: 1.25rem;
   background: #f8fafc;
   border: 1px solid #e2e8f0;
   box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.preview-footer-panel > *:first-child {
   margin-top: 0 !important;
}

.preview-footer-panel > * {
   border-top: none !important;
   padding-top: 0 !important;
}

.preview-footer-panel .preview-tags,
.preview-footer-panel .keyword-tags {
   border-top: none !important;
   padding-top: 0 !important;
   margin-top: 0 !important;
}

.preview-footer-panel .preview-meta {
   border: none !important;
   border-bottom: none !important;
   padding-top: 0 !important;
   margin-top: 0 !important;
   margin-bottom: 0 !important;
}

.preview-footer-panel .preview-meta.keyword-meta {
   padding: 0 !important;
   margin: 0 !important;
   border: none !important;
}

.preview-footer-panel .preview-sources {
   margin-top: 0 !important;
   border-top: none !important;
   padding-top: 0 !important;
   padding-bottom: 0 !important;
}

.preview-footer-panel .preview-sources h4 {
   margin-top: 0;
   margin-bottom: 0.75rem;
   font-size: 1.1rem;
   font-weight: 700;
   color: #0f172a;
}

.preview-footer-panel .preview-highlights {
   margin-top: 0 !important;
   background: transparent !important;
   padding: 0 !important;
   border-radius: 0 !important;
}

.preview-footer-panel .preview-highlights h3 {
   margin-top: 0;
   margin-bottom: 1rem;
   font-size: 1.1rem;
   font-weight: 700;
   color: #0f172a;
}

.preview-sources h4,
.preview-media-section h3,
.preview-video-section h3 {
   font-size: 1.15rem;
   font-weight: 700;
   color: #0f172a;
   margin-bottom: 0.75rem;
}

.preview-media-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
   gap: clamp(1rem, 3vw, 1.25rem);
}

.preview-media-card {
   position: relative;
   background: #ffffff;
   border-radius: 1rem;
   overflow: hidden;
   box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.preview-media-card img {
   width: 100%;
   height: 220px;
   object-fit: cover;
   display: block;
}

.preview-media-badge {
   display: none;
}

.preview-caption {
   font-size: 0.85rem;
   font-style: italic;
   color: #475569;
   padding: 0.5rem 0 0;
   margin-top: 0.5rem;
   text-align: center;
}

.preview-video-list {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
   gap: clamp(1rem, 3vw, 1.5rem);
}

.preview-video-item {
   background: #ffffff;
   border-radius: 1rem;
   padding: 1rem;
   box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
   position: relative;
}

.preview-video-frame {
   border-radius: 0.9rem;
   overflow: hidden;
   background: #000;
   aspect-ratio: 16 / 9;
   margin-bottom: 0.75rem;
}

.preview-video-frame iframe,
.preview-video-frame video {
   width: 100%;
   height: 100%;
   border: none;
   display: block;
}

.preview-video-link {
   display: inline-flex;
   align-items: center;
   gap: 0.4rem;
   color: var(--primary-blue);
   font-weight: 600;
   text-decoration: none;
}

.preview-video-link:hover {
   text-decoration: underline;
}

.preview-inline-block {
   margin: 1.5rem 0;
   padding: 0;
   border-radius: 0;
   background: transparent;
   box-shadow: none;
}

.preview-inline-block--media img {
   width: 100%;
   border-radius: 0.5rem;
   margin-top: 0;
   object-fit: cover;
}

.preview-inline-block--video .preview-inline-frame {
   border-radius: 0.5rem;
   overflow: hidden;
   background: #000;
   aspect-ratio: 16 / 9;
   margin: 0;
}

.preview-inline-block--video iframe,
.preview-inline-block--video video {
   width: 100%;
   height: 100%;
   border: none;
   display: block;
}

.preview-inline-badge {
   display: none;
}

.preview-sources ul {
   list-style: none;
   padding-left: 0;
   margin: 0.75rem 0 0;
   display: flex;
   flex-direction: column;
   gap: 0.4rem;
}

.preview-sources a {
   color: var(--primary-blue);
   text-decoration: none;
   font-weight: 600;
}

.preview-sources a:hover {
   text-decoration: underline;
}

.preview-highlights {
   margin-top: 2rem;
   padding: 1.75rem;
   border-radius: 1.25rem;
   background: #f5f8fb;
}

.preview-highlights h3 {
   margin-bottom: 1rem;
   color: var(--primary-dark);
}

.preview-highlights ul {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 0.85rem;
}

.preview-highlights li {
   display: flex;
   gap: 0.75rem;
   align-items: flex-start;
   color: #24323a;
}

.preview-highlights i {
   color: var(--primary-blue);
   margin-top: 0.2rem;
}

.preview-placeholder {
   color: #94a3b8;
   font-style: italic;
}

.preview-error {
   text-align: center;
}

.product-preview-layout {
   display: grid;
   grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
   gap: clamp(2rem, 5vw, 3.5rem);
   align-items: start;
}

.product-main {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.product-main .preview-content {
   text-align: justify;
   text-justify: inter-word;
}

.product-cta-group {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
}

@media (max-width: 992px) {
   .preview-content {
      padding: 2rem;
   }

   .product-preview-layout {
      grid-template-columns: 1fr;
   }
}
/* ============================================================================
   Detail Pages
   Article and product detail layouts plus live preview styling
   ============================================================================ */

/* ============================================================================
    ARTICLE DETAIL PAGES
    ============================================================================ */

.article-hero {
   padding: 8rem 0 4rem;
   text-align: center;
   background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
   color: #0f172a;
}

.article-hero .article-category {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.35rem 1rem;
   border-radius: 999px;
   background: rgba(18, 78, 102, 0.1);
   color: #124e66;
   font-weight: 600;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

.article-hero .article-title {
   margin: 1rem auto 0.75rem;
   max-width: 960px;
   color: #0f172a;
}

.article-hero .article-subtitle {
   max-width: 820px;
   margin: 0 auto 1.5rem;
   font-size: 1.1rem;
   color: #4b5c6a;
}

.article-meta {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 1rem;
   color: #5f717a;
   font-size: 0.95rem;
}

.article-author {
   display: flex;
   align-items: center;
   gap: 0.75rem;
}

.article-author .author-avatar {
   width: 48px;
   height: 48px;
   border-radius: 50%;
   background: rgba(18, 78, 102, 0.1);
   display: grid;
   place-items: center;
   color: #124e66;
}

.article-author .author-avatar i {
   font-size: 1.2rem;
}

.article-author .author-info {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
}

.article-layout {
   display: grid;
   grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
   gap: clamp(2rem, 5vw, 3.5rem);
   align-items: start;
}

.article-main {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.article-main .preview-content {
   text-align: justify;
   text-justify: inter-word;
}

.article-cover img {
   width: 100%;
   border-radius: 1.25rem;
   box-shadow: 0 18px 45px rgba(18, 78, 102, 0.12);
   object-fit: cover;
}

.article-body {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
   font-size: 1.05rem;
   line-height: 1.75;
   color: #24323a;
}

.article-body h2,
.article-body h3 {
   margin-top: 1rem;
   color: #124e66;
}

.article-tags,
.article-keywords {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
}

.article-tags .tag,
.article-keywords .tag {
   padding: 0.4rem 1.1rem;
   border-radius: 999px;
   background: rgba(18, 78, 102, 0.08);
   color: #124e66;
   font-weight: 600;
   font-size: 0.9rem;
}

.article-back {
   margin-top: 1rem;
}

.article-side {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.aside-card {
   padding: 1.75rem;
   border-radius: 1.1rem;
   background: #f7f9fa;
   box-shadow: 0 12px 28px rgba(18, 78, 102, 0.08);
}

.aside-card h3 {
   margin-bottom: 1rem;
   font-size: 1.1rem;
   color: #124e66;
}

.aside-card.highlight {
   background: linear-gradient(145deg, rgba(18, 78, 102, 0.08), rgba(18, 78, 102, 0.18));
}

.aside-list {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.aside-list li {
   list-style: none;
   border: 1px solid rgba(18, 78, 102, 0.12);
   border-radius: 0.95rem;
   background: #ffffff;
   box-shadow: 0 10px 20px rgba(13, 27, 42, 0.08);
   transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.aside-list li:hover {
   transform: translateY(-3px);
   border-color: rgba(18, 78, 102, 0.35);
   box-shadow: 0 16px 32px rgba(13, 27, 42, 0.12);
}

.aside-list .recent-post-link {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 0.75rem;
   padding: 1rem 1.2rem;
   text-decoration: none;
   color: inherit;
}

.aside-list .recent-post-body {
   display: flex;
   flex-direction: column;
   gap: 0.35rem;
}

.aside-list .recent-post-title {
   font-weight: 600;
   color: #0f172a;
}

.aside-list .recent-post-date {
   font-size: 0.85rem;
   color: #667580;
}

.aside-list .recent-post-link i {
   color: #124e66;
   transition: transform 0.2s ease;
}

.aside-list li:hover .recent-post-link i {
   transform: translateX(4px);
}

@media (max-width: 992px) {
   .article-layout {
      grid-template-columns: 1fr;
   }

   .article-meta {
      flex-direction: column;
      gap: 0.5rem;
   }

   .article-hero {
      padding-top: 6rem;
   }
}

@media (max-width: 600px) {
   .article-hero .article-title {
      font-size: 1.9rem;
   }
}

.article-error {
   text-align: center;
   padding: 2.5rem;
   border-radius: 1.25rem;
   background: rgba(217, 83, 79, 0.1);
   color: #8c2f39;
   display: flex;
   flex-direction: column;
   gap: 1rem;
   align-items: center;
}

.article-error .btn {
   margin-top: 0.5rem;
}

