/* ============================================================================
   MR CASTING KSA — Article Template Additions
   File: assets/css/article-template.css
   Append this to article-pillar.css OR include separately
   ============================================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav {
    background: #f8f6f2;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}
.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.breadcrumb-item {
    color: #6b7280;
}
.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #c9a961;
    font-weight: 700;
}
.breadcrumb-item a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item a:hover {
    color: #c9a961;
}
.breadcrumb-item span[aria-current="page"] {
    color: #1a1f2e;
    font-weight: 600;
}

/* ---------- Article Hero ---------- */
.article-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 5rem 0 4rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.category-badge {
    display: inline-block;
    background: rgba(201, 169, 97, 0.95);
    color: #0a0e1a;
    padding: 0.4rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    transition: background 0.2s;
}
.category-badge:hover {
    background: #e5d4a8;
}
.article-title {
    font-family: Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 auto 1.25rem auto;
    max-width: 900px;
}
.article-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-weight: 400;
}

/* ---------- Article Meta (Author + Date row) ---------- */
.article-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    justify-content: center;
}
.author-meta-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c9a961;
}
.author-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}
.author-byline {
    color: #ffffff;
    font-weight: 600;
}
.author-byline a {
    color: #c9a961;
    text-decoration: none;
}
.author-byline a:hover {
    text-decoration: underline;
}
.author-title-inline {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}
.meta-separator {
    color: rgba(255, 255, 255, 0.4);
}
.meta-updated {
    color: #c9a961;
    font-weight: 600;
}

/* ---------- Article Container Layout ---------- */
.article-main {
    background: #ffffff;
    padding: 3rem 0 4rem;
}
.article-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.article-body {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #1a1f2e;
}
.article-body p {
    margin-bottom: 1.25rem;
}
.article-body h2 {
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: 1.3;
    color: #0a0e1a;
    margin: 3rem 0 1.25rem 0;
    font-weight: 700;
}
.article-body h3 {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    color: #1a1f2e;
    margin: 2rem 0 0.85rem 0;
    font-weight: 700;
}
.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-body li {
    margin-bottom: 0.65rem;
    line-height: 1.7;
}
.article-body a {
    color: #c9a961;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 500;
}
.article-body a:hover {
    color: #0a0e1a;
}

/* ---------- Table of Contents ---------- */
.article-toc {
    background: #fafaf7;
    border-left: 3px solid #c9a961;
    padding: 1.5rem 1.75rem;
    margin: 0 0 3rem 0;
    border-radius: 4px;
}
.toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #c9a961;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
}
.toc-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}
.toc-list li {
    margin-bottom: 0.4rem;
    color: #4b5563;
}
.toc-list a {
    color: #1a1f2e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.toc-list a:hover {
    color: #c9a961;
    text-decoration: underline;
}

/* ---------- Author Bio Card (end of article) ---------- */
.author-bio-card {
    margin: 4rem 0 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #fafaf7 0%, #ffffff 100%);
    border-left: 3px solid #c9a961;
    border-radius: 4px;
}
.author-bio-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.author-bio-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c9a961;
    flex-shrink: 0;
}
.author-bio-name {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    color: #0a0e1a;
    margin: 0 0 0.25rem 0;
}
.author-bio-name a {
    color: #0a0e1a;
    text-decoration: none;
}
.author-bio-title {
    font-size: 0.9rem;
    color: #c9a961;
    font-weight: 600;
    margin: 0 0 0.85rem 0;
}
.author-bio-text-content {
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 0.85rem 0;
}
.author-bio-social {
    display: inline-block;
    color: #c9a961;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #c9a961;
    padding: 0.4rem 1rem;
    border-radius: 3px;
    transition: all 0.2s;
}
.author-bio-social:hover {
    background: #c9a961;
    color: #ffffff;
}

/* ---------- Related Articles ---------- */
.related-articles-section {
    background: #f8f6f2;
    padding: 4rem 0;
    border-top: 1px solid #e5e7eb;
}
.related-title {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: #0a0e1a;
    margin: 0 0 2rem 0;
    text-align: center;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.related-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.related-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.related-card-title {
    padding: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #1a1f2e;
    margin: 0;
    font-weight: 600;
    flex-grow: 1;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 768px) {
    .article-hero {
        padding: 3rem 1rem 2.5rem;
        min-height: 45vh;
    }
    .article-meta {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    .author-bio-content {
        flex-direction: column;
        text-align: center;
    }
    .author-bio-photo {
        margin: 0 auto;
    }
    .article-body h2 {
        font-size: 1.6rem;
    }
    .article-body h3 {
        font-size: 1.2rem;
    }
}