/**
 * Spectrum Pharma Tech - Dynamic Blog Stylesheet
 * Brand colors: #076653 (Dark Green), #E3EF26 (Tech Chartreuse), #006338 (Olive)
 * Font: Plus Jakarta Sans
 */

/* Blog Hero */
.blog-hero-section {
    padding: 140px 60px 50px 60px;
    background: transparent;
    position: relative;
}

.blog-hero-title {
    font-size: var(--rfs-54);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-02);
    margin-bottom: 20px;
}

.blog-hero-sub {
    font-size: var(--rfs-18);
    color: var(--color-04);
    max-width: 720px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Category Filter & Search Bar - High Standout Card */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    background: #FFFFFF;
    border: 1.5px solid rgba(7, 102, 83, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(7, 102, 83, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 45px;
    position: relative;
    z-index: 5;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-pill-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1F2E2B;
    background: #F3F7F5;
    border: 1.5px solid #CFDDD8;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.filter-pill-item a:hover {
    color: #076653;
    border-color: #076653;
    background: #E8F5F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 102, 83, 0.16);
}

.filter-pill-item.active a {
    background: linear-gradient(135deg, #076653 0%, #0B8069 100%);
    color: #FFFFFF;
    border-color: #076653;
    box-shadow: 0 4px 16px rgba(7, 102, 83, 0.35);
    transform: translateY(-1px);
}

.filter-pill-item.active a:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, #09755f 0%, #0e9177 100%);
    box-shadow: 0 6px 18px rgba(7, 102, 83, 0.42);
}

.blog-search-box {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.blog-search-input {
    width: 100%;
    padding: 11px 20px 11px 42px;
    border-radius: 30px;
    border: 1.5px solid #BCCEC8;
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
    background: #FAFCFB;
    color: #111816;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.blog-search-input::placeholder {
    color: #7A8E88;
    font-weight: 400;
}

.blog-search-input:focus {
    border-color: #076653;
    background: #FFFFFF;
    box-shadow: 0 0 0 3.5px rgba(7, 102, 83, 0.15), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #076653;
    font-size: 15px;
    font-weight: bold;
    pointer-events: none;
}

.blog-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8C9E97;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.blog-search-clear:hover {
    color: #DC2626;
}

/* Blog Cards Grid */
.blog-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(7, 102, 83, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(7, 102, 83, 0.12);
    border-color: rgba(7, 102, 83, 0.3);
}

.blog-card-thumb-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
    background: #0F1D19;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.06);
}

.blog-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(7, 102, 83, 0.88);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(227, 239, 38, 0.3);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #718096;
    margin-bottom: 12px;
}

.blog-meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #1A202C;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card:hover .blog-card-title {
    color: #076653;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #EDF2F7;
    margin-top: auto;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E6F3EF;
    color: #076653;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.blog-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #2D3748;
}

.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #076653;
    text-decoration: none;
    transition: gap 0.2s;
}

.blog-read-link:hover {
    gap: 10px;
    color: #006338;
}

/* ================= SINGLE POST DETAILS ================= */
.post-detail-section {
    padding: 140px 60px 80px 60px;
    position: relative;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 24px;
}

.post-breadcrumb a {
    color: #718096;
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: #076653;
}

.post-header-badge {
    display: inline-block;
    background: rgba(7, 102, 83, 0.1);
    color: #076653;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(7, 102, 83, 0.2);
    margin-bottom: 16px;
}

.post-main-title {
    font-size: var(--rfs-48);
    font-weight: 700;
    line-height: 1.25;
    color: #1A202C;
    margin-bottom: 24px;
}

.post-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #4A5568;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(7, 102, 83, 0.15);
    margin-bottom: 35px;
}

.post-featured-hero {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.post-featured-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* AEO Direct Answer Box */
.aeo-callout-box {
    background: linear-gradient(135deg, #F0FBF8 0%, #FAFDF7 100%);
    border-left: 5px solid #076653;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(7, 102, 83, 0.06);
    position: relative;
}

.aeo-callout-box::after {
    content: "AI OVERVIEW & DEFINITIVE ANSWER";
    position: absolute;
    top: -10px;
    right: 20px;
    background: #076653;
    color: #E3EF26;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 10px;
}

.aeo-callout-title {
    font-size: 16px;
    font-weight: 700;
    color: #076653;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.aeo-callout-text {
    font-size: 16px;
    line-height: 1.65;
    color: #2D3748;
    margin-bottom: 0;
    font-style: italic;
}

/* GEO Key Takeaways Box */
.geo-takeaways-box {
    background: #FAFCFB;
    border: 1px solid rgba(7, 102, 83, 0.2);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 40px;
}

.geo-takeaways-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A202C;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.geo-takeaways-list {
    margin: 0;
    padding-left: 20px;
}

.geo-takeaways-list li {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 8px;
}

/* Post Content Body */
.post-body-content {
    font-size: 17px;
    line-height: 1.75;
    color: #2D3748;
}

.post-body-content p {
    margin-bottom: 24px;
}

.post-body-content h2, 
.post-body-content h3, 
.post-body-content h4 {
    color: #076653;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.post-body-content blockquote {
    border-left: 4px solid #076653;
    background: #F8FAF9;
    padding: 20px 26px;
    border-radius: 0 12px 12px 0;
    font-size: 18px;
    font-style: italic;
    color: #1A202C;
    margin: 32px 0;
}

.post-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 28px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.post-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-body-content table th {
    background: #076653;
    color: #FFFFFF;
    padding: 12px 16px;
    font-size: 14px;
}

.post-body-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 14px;
}

/* FAQ Accordion Styling */
.post-faq-section {
    margin-top: 50px;
    padding: 30px;
    background: #F8FAF9;
    border-radius: 16px;
    border: 1px solid rgba(7, 102, 83, 0.15);
}

.post-faq-title {
    font-size: 22px;
    font-weight: 700;
    color: #076653;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-item {
    border: 1px solid #E2E8F0;
    border-radius: 10px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    font-size: 16px;
    color: #1A202C;
    background: #FFFFFF;
}

.accordion-button:not(.collapsed) {
    color: #076653;
    background-color: #EDF7F4;
    box-shadow: none;
}

.accordion-body {
    font-size: 15px;
    line-height: 1.65;
    color: #4A5568;
    background: #FFFFFF;
}

/* Citations Box */
.citations-box {
    margin-top: 40px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px dashed #CBD5E1;
    font-size: 13.5px;
    color: #64748B;
}

/* Social Share Bar */
.post-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    margin: 40px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.share-linkedin { background: #0077B5; color: #FFF; }
.share-twitter { background: #000000; color: #FFF; }
.share-whatsapp { background: #25D366; color: #FFF; }
.share-copy { background: #F1F5F9; color: #334155; border: 1px solid #CBD5E1; cursor: pointer; }

.share-btn:hover {
    transform: translateY(-2px);
    color: #FFF;
    opacity: 0.9;
}
.share-copy:hover { color: #076653; }

/* Responsive */
@media (max-width: 768px) {
    .blog-hero-section, .post-detail-section {
        padding: 100px 20px 40px 20px;
    }
    .blog-hero-title {
        font-size: 32px;
    }
    .post-main-title {
        font-size: 28px;
    }
}
