/* Articles
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.articles-section { padding: var(--section-padding-y) 0; }

.articles-intro {
   /* max-width: 760px; */
   margin-bottom: 3rem;
}

.articles-intro .section-title { margin-bottom: 1rem; }

.articles-intro > p {
   margin-bottom: 0;
   color: var(--color-text-muted);
}

@media (max-width: 991.98px) {
   .articles-section { padding: var(--section-padding-y-md) 0; }
   .articles-intro { margin-bottom: 2.5rem; }
}

@media (max-width: 575.98px) {
   .articles-section { padding: var(--section-padding-y-sm) 0; }
   .articles-intro { margin-bottom: 2rem; }
}


/* Featured Article
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.article-feature {
   overflow: hidden;
   margin-bottom: 3.5rem;
   border: var(--border-width) solid var(--color-border-light);
   border-radius: var(--border-radius-2xl);
   background-color: var(--mybone-primary-deep);
   box-shadow: var(--shadow-md);
}

.article-feature-image {
   display: block;
   width: 100%;
   height: 100%;
   min-height: 420px;
   overflow: hidden;
}

.article-feature-image img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform var(--transition-slow);
}

.article-feature:hover .article-feature-image img { transform: scale(1.03); }

.article-feature-content {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   justify-content: center;
   height: 100%;
   padding: 3rem;
}

.article-feature-content > .ui-label {
   margin-bottom: 1rem;
   color: var(--mybone-accent);
}

.article-feature-content h2 {
   margin-bottom: 1rem;
   font-size: clamp(1.8rem, 3vw, 2.5rem);
   color: var(--color-white);
}

.article-feature-content h2 a { color: inherit; }
.article-feature-content h2 a:hover { color: var(--mybone-accent); }

.article-feature-content p {
   margin-bottom: 1.5rem;
   color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991.98px) {
   .article-feature-image { min-height: 340px; }

   .article-feature-content {
      padding: 2rem;
   }
}

@media (max-width: 575.98px) {
   .article-feature {
      margin-bottom: 2.5rem;
      border-radius: var(--border-radius-xl);
   }

   .article-feature-image { min-height: 240px; }
   .article-feature-content { padding: 1.5rem; }
}


/* Article Grid
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.articles-grid-heading {
   margin-bottom: 1.25rem;
   padding-bottom: 0.75rem;
   border-bottom: var(--border-width) solid var(--color-border-light);
   color: var(--mybone-primary);
}

.article-card {
   display: flex;
   flex-direction: column;
   height: 100%;
   overflow: hidden;
   border-bottom: 3px solid var(--mybone-accent);
   border-radius: var(--border-radius-xl);
   background-color: var(--color-white);
   box-shadow: var(--shadow-sm);
   transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.article-card:hover {
   box-shadow: var(--shadow-md);
   transform: translateY(-4px);
}

.article-card-image {
   display: block;
   aspect-ratio: 16 / 9;
   overflow: hidden;
   background-color: var(--color-background-soft);
}

.article-card-image img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform var(--transition-slow);
}

.article-card:hover .article-card-image img { transform: scale(1.04); }

.article-card-content {
   display: flex;
   flex-direction: column;
   flex: 1;
   padding: 1.5rem;
}

.article-card-content > .ui-label {
   margin-bottom: 0.65rem;
   color: var(--mybone-primary);
}

.article-card h3 {
   margin-bottom: 0.75rem;
   line-height: 1.35;
}

.article-card h3 a { color: var(--mybone-primary-deep); }
.article-card h3 a:hover { color: var(--mybone-primary); }

.article-card p {
   margin-bottom: 1.25rem;
   font-size: 0.95rem;
   color: var(--color-text-muted);
}

.article-card .info-card-link { margin-top: auto; }

@media (max-width: 575.98px) {
   .article-card-content { padding: 1.25rem; }
}


/* Empty State
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.articles-empty {
   display: flex;
   align-items: center;
   gap: 1rem;
   max-width: 720px;
}

.articles-empty h3 { margin-bottom: 0.25rem; }
.articles-empty p { margin-bottom: 0; color: var(--color-text-muted); }

@media (max-width: 575.98px) {
   .articles-empty { align-items: flex-start; }
}


/* Article Detail
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.article-detail-section { padding: var(--section-padding-y) 0; }

.article-detail-header {
   max-width: 920px;
   margin: 0 auto 2.5rem;
   text-align: center;
}

.article-detail-header .section-eyebrow {
   justify-content: center;
}

.article-detail-header h1 {
   margin-bottom: 0;
   font-size: clamp(2.2rem, 4vw, 3.5rem);
   font-weight: var(--font-weight-extrabold);
   line-height: 1.15;
   letter-spacing: -0.04em;
}

.article-detail-banner {
   max-width: 1120px;
   margin: 0 auto 3.5rem;
   overflow: hidden;
   border-radius: var(--border-radius-2xl);
   background-color: var(--color-background-soft);
   box-shadow: var(--shadow-md);
}

.article-detail-banner img {
   display: block;
   width: 100%;
   max-height: 650px;
   object-fit: cover;
}

.article-reading-wrap {
   max-width: 992px;
   margin: 0 auto;
}

@media (max-width: 991.98px) {
   .article-detail-section { padding: var(--section-padding-y-md) 0; }
   .article-detail-banner { margin-bottom: 3rem; }
}

@media (max-width: 575.98px) {
   .article-detail-section { padding: var(--section-padding-y-sm) 0; }
   .article-detail-header { margin-bottom: 2rem; }

   .article-detail-banner {
      margin-bottom: 2.25rem;
      border-radius: var(--border-radius-lg);
   }
}


/* Article Content
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.article-richtext {
   font-size: 1.075rem;
   line-height: 1.85;
   color: var(--color-text);
}

.article-richtext > *:first-child { margin-top: 0; }
.article-richtext > *:last-child { margin-bottom: 0; }

.article-richtext p { margin-bottom: 1.4rem; }

.article-richtext h2 {
   margin-top: 2.75rem;
   margin-bottom: 1rem;
   font-size: 1.75rem;
}

.article-richtext h3 {
   margin-top: 2.25rem;
   margin-bottom: 0.9rem;
   font-size: 1.4rem;
}

.article-richtext h4 {
   margin-top: 2rem;
   margin-bottom: 0.75rem;
}

.article-richtext ul,
.article-richtext ol {
   margin-bottom: 1.4rem;
   padding-left: 1.5rem;
}

.article-richtext li { margin-bottom: 0.45rem; }

.article-richtext blockquote {
   margin: 2rem 0;
   padding: 1.25rem 1.5rem;
   border-left: 3px solid var(--mybone-accent);
   border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
   color: var(--mybone-primary-deep);
   background-color: var(--mybone-primary-soft);
}

.article-richtext blockquote p:last-child { margin-bottom: 0; }

.article-richtext a {
   font-weight: var(--font-weight-semibold);
   text-decoration: underline;
   text-underline-offset: 3px;
}

.article-richtext img {
   display: block;
   max-width: 100%;
   height: auto;
   margin: 2rem auto;
   border-radius: var(--border-radius-lg);
}

.article-richtext hr {
   margin: 2.5rem 0;
   border-color: var(--color-border-light);
}


/* Article Resources
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.article-resources {
   margin-top: 3rem;
   padding: 1.5rem;
   border-top: 3px solid var(--mybone-accent);
   border-radius: var(--border-radius-lg);
   background-color: var(--mybone-primary-soft);
}

.article-resources > .ui-label {
   display: block;
   margin-bottom: 1rem;
   color: var(--mybone-primary);
}

.article-resource-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
}

@media (max-width: 575.98px) {
   .article-resource-actions {
      flex-direction: column;
   }

   .article-resource-actions .btn { width: 100%; }
}


/* Article Footer
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.article-detail-footer {
   margin-top: 2.5rem;
   padding-top: 1.5rem;
   border-top: var(--border-width) solid var(--color-border-light);
}

.article-back-link {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   font-weight: var(--font-weight-semibold);
}

.article-back-link i { transition: transform var(--transition-normal); }
.article-back-link:hover i { transform: translateX(-4px); }
