/* css/blog.css */

body.blog-archive,
body.blog-single {
    background-color: #0A0E14; /* Deepest dark matching var(--dark-900) */
    color: #cbd5e1; /* Light grey text matching var(--text-light) */
}

body.blog-archive h1, body.blog-archive h2, body.blog-archive h3, body.blog-archive h4, body.blog-archive h5, body.blog-archive h6,
body.blog-single h1, body.blog-single h2, body.blog-single h3, body.blog-single h4, body.blog-single h5, body.blog-single h6 {
    color: #ffffff;
}

.blog-hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at 50% 50%, rgba(201, 162, 39, 0.08) 0%, rgba(15, 17, 21, 0) 70%), #0A0E14;
    text-align: center;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
}

.blog-hero h1 span {
    background: linear-gradient(135deg, #d4af37 0%, #aa8623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    color: #94a3b8;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #161920;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.05);
}

.blog-card-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #0f1115;
    position: relative;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.04);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #c9a227;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
    color: #c9a227;
}

.blog-card-excerpt {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.blog-card-author {
    font-weight: 500;
    color: #e2e8f0;
}

/* Single Post Viewer styling */
.post-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 80px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header-meta {
    color: #c9a227;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.25;
}

.post-author-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    color: #94a3b8;
}

.post-author-name {
    color: #fff;
    font-weight: 600;
}

.post-featured-image {
    width: 100%;
    max-height: 540px;
    border-radius: 16px;
    object-fit: cover;
    object-position: center 15%;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.post-content p {
    margin-bottom: 1.8em;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 2em 0 0.8em;
}

.post-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin: 1.8em 0 0.8em;
}

.post-content ul {
    list-style: none;
    padding-left: 5px;
    margin: 1.5em 0;
}

.post-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a227'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.post-content ol {
    list-style-type: decimal;
    padding-left: 24px;
    margin: 1.5em 0;
}

.post-content ol li {
    margin-bottom: 12px;
    padding-left: 6px;
    line-height: 1.7;
}

.post-content blockquote {
    border-left: 4px solid #c9a227;
    padding: 15px 25px;
    background: rgba(201, 162, 39, 0.03);
    margin: 2em 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content blockquote cite {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
}

.post-content figure {
    margin: 2.5em 0;
    text-align: center;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.post-content figcaption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 10px;
}

.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c9a227;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.back-to-blog:hover {
    color: #fff;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2.5rem; }
    .post-title { font-size: 2.2rem; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOUNDER STORY / EXTENDED BLOG STYLING
   ============================================================ */
.blog-article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 130px 20px 80px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.12);
    color: #e8c547;
    border: 1px solid rgba(201, 162, 39, 0.35);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.blog-header {
    text-align: center;
    margin-bottom: 36px;
}

.blog-header .blog-title {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 18px 0;
    letter-spacing: -0.5px;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.95rem;
    color: #94a3b8;
}

.blog-meta strong {
    color: #f1f5f9;
}

.featured-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 45px;
    max-width: 780px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    background: #0f1116;
    text-align: center;
}

.featured-image-wrapper .featured-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: center 15%;
    display: block;
    margin: 0 auto;
}

.blog-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #cbd5e1;
}

.blog-content p {
    margin-bottom: 1.7em;
}

.blog-content h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin: 2.2em 0 0.8em;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-content h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, #e8c547 0%, #c9a227 100%);
    border-radius: 3px;
}

.blog-content hr.section-divider {
    position: static;
    transform: none;
    width: 100%;
    height: 1px;
    border: 0;
    margin: 3.5em 0;
    background: linear-gradient(90deg, rgba(201,162,39,0) 0%, rgba(201,162,39,0.5) 50%, rgba(201,162,39,0) 100%);
}

.intro-quote {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(15, 17, 21, 0.7) 100%);
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-left: 5px solid #c9a227;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 2.5em;
}

.intro-quote p {
    margin-bottom: 0.8em;
    color: #e2e8f0;
    font-size: 1.2rem;
    line-height: 1.7;
}

.intro-quote .highlight-text {
    margin-bottom: 0;
    color: #e8c547;
    font-size: 1.15rem;
}

.story-pullquote {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(201, 162, 39, 0.04);
    border-left: 4px solid #c9a227;
    border-radius: 0 12px 12px 0;
    padding: 20px 26px;
    margin: 2em 0;
    line-height: 1.6;
    font-style: italic;
}

.inline-image {
    margin: 2.5em auto;
    background: #101217;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    max-width: 680px;
}

.inline-image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    object-position: center top;
    display: block;
    margin: 0 auto;
}

.inline-image.full-width {
    max-width: 100%;
}

.inline-image.full-width img {
    max-height: 600px;
}

.inline-image .caption {
    display: block;
    padding: 12px 18px;
    font-size: 0.9rem;
    color: #94a3b8;
    background: #0d1016;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-style: italic;
    text-align: center;
}

.mission-box {
    background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.15) 0%, rgba(18, 22, 30, 0.95) 70%);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 16px;
    padding: 30px;
    margin: 2.5em 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(201, 162, 39, 0.05);
}

.mission-box h3 {
    color: #e8c547;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission-box p {
    color: #e2e8f0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.75;
}

.highlight-quote {
    background: rgba(201, 162, 39, 0.08);
    border-left: 4px solid #e8c547;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 2em 0;
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1.6;
}

.founder-quote-card {
    background: linear-gradient(135deg, #161a23 0%, #10131a 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 16px;
    padding: 32px;
    margin: 3.5em 0;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.founder-quote-card .quote-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: #c9a227;
    text-transform: uppercase;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 18px;
}

.founder-quote-card blockquote {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 0 18px 0;
    border: none;
    background: transparent;
    padding: 0;
    font-style: normal;
}

.founder-quote-card .author-sign {
    color: #c9a227;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.blog-cta-box {
    background: linear-gradient(135deg, #171b24 0%, #0d1016 100%);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 18px;
    padding: 40px 30px;
    text-align: center;
    margin: 3.5em 0 1em;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.blog-cta-box h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.blog-cta-box p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 24px;
}

.blog-cta-box .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8c547 0%, #c9a227 50%, #a07a1a 100%);
    color: #080a0f;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-cta-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(201, 162, 39, 0.5);
    color: #000;
}
