/* BioExcel Pharma — Blog & Insights */

.blog-hero {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.92) 0%, rgba(26, 31, 61, 0.88) 50%, rgba(255, 92, 0, 0.15) 100%),
        url('../img/aboutBg.jpg') center/cover no-repeat;
    padding: 80px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 92, 0, 0.2) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #fff;
    margin-bottom: 0.75rem;
}

.blog-hero-lead {
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

.blog-section {
    padding: 70px 0 100px;
    background: linear-gradient(180deg, #f8faff 0%, #fff 40%);
}

.blog-layout {
    align-items: flex-start;
}

/* Sticky sidebar */
.blog-sidebar-sticky {
    position: sticky;
    top: 20px;
    z-index: 10;
        align-self: flex-start;
}

.blog-sidebar-sticky .sticky {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-widget {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(26, 31, 61, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-vibrant) 0%, rgba(255, 92, 0, 0) 100%);
}

.blog-widget:hover {
    box-shadow: 0 8px 24px rgba(26, 31, 61, 0.12);
    border-color: var(--orange-vibrant);
    transform: translateY(-2px);
}

.blog-widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--orange-vibrant);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-widget-title span {
    display: inline-flex;
    width: 8px;
    height: 8px;
    background: var(--orange-vibrant);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-list li {
    margin-bottom: 0.35rem;
}

.blog-sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: var(--transition);
}

.blog-sidebar-list a:hover,
.blog-sidebar-list a.active {
    background: var(--blue-medical);
    color: var(--navy-main);
    padding-left: 1rem;
}

.blog-sidebar-list a .arrow {
    opacity: 0;
    color: var(--orange-vibrant);
    transition: var(--transition);
}

.blog-sidebar-list a:hover .arrow {
    opacity: 1;
}

.blog-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 92, 0, 0.1);
    color: var(--orange-vibrant);
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.blog-card {
    background: #fff;
    border: 1px solid #e8edf5;
    /* border-left: 4px solid var(--orange-vibrant); */
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(26, 31, 61, 0.08);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-vibrant) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(26, 31, 61, 0.15);
    border-color: var(--orange-vibrant);
}

.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    /* aspect-ratio: 16 / 10; */
}

.blog-card-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 92, 0, 0) 0%, rgba(255, 92, 0, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-card:hover .blog-card-img-wrap::after {
    opacity: 1;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.08);
}

/* Date Badge on Image */
.blog-card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 92, 0, 0.4);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    z-index: 2;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-date span {
    display: inline-flex;
}

.blog-card:hover .blog-card-date {
    background: rgba(255, 92, 0, 0.95);
    border-color: var(--orange-vibrant);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 92, 0, 0.3);
}

.blog-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}

.blog-card h3 a {
    color: var(--navy-deep);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--orange-vibrant);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.5;
      display: -webkit-box;
    -webkit-line-clamp: 3; /* Show only 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--orange-vibrant);
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.blog-read-more:hover {
    gap: 0.75rem;
    color: var(--navy-main);
    transform: translateX(2px);
}

/* Article single */
.blog-article-hero-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-premium);
}

.blog-article-hero-img img {
    width: 100%;
    max-height: auto;
    object-fit: cover;
}

.blog-article-content {
    font-size: 1.02rem;
    color: var(--text-secondary);
}

.blog-article-content h2 {
    font-size: 1.65rem;
    margin: 2.25rem 0 1rem;
    color: var(--navy-deep);
}

.blog-article-content h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--navy-main);
}

.blog-article-content p {
    margin-bottom: 1.1rem;
}

.blog-article-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.blog-article-content ul li {
    margin-bottom: 0.5rem;
}

.blog-article-content ul.check-list {
    list-style: none;
    padding-left: 0;
}

.blog-article-content ul.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
}

.blog-article-content ul.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange-vibrant);
    font-weight: 700;
}

.blog-highlight-box {
    background: linear-gradient(135deg, var(--blue-medical) 0%, #fff 100%);
    border-left: 4px solid var(--orange-vibrant);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.blog-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.blog-process-card {
    background: #fff;
    border: 1px solid #e8edf5;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.blog-process-card:hover {
    border-color: var(--orange-vibrant);
    box-shadow: var(--shadow-soft);
}

.blog-process-card strong {
    display: block;
    color: var(--navy-deep);
    margin-bottom: 0.35rem;
    font-family: 'Outfit', sans-serif;
}

.blog-cta-widget {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-main) 100%);
    color: #fff;
    text-align: center;
}

.blog-cta-widget p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.blog-cta-widget .btn-primary-scientific {
    width: 100%;
}

.blog-toc a {
    display: block;
    padding: 0.4rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dashed #e8edf5;
    transition: var(--transition);
}

.blog-toc a:hover {
    color: var(--orange-vibrant);
    padding-left: 0.5rem;
}

.blog-faq .accordion-item {
    border: 1px solid #e8edf5;
    margin-bottom: 0.75rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.blog-faq .accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--navy-deep);
    background: #fff;
    box-shadow: none !important;
}

.blog-faq .accordion-button:not(.collapsed) {
    background: var(--blue-medical);
    color: var(--orange-vibrant);
}

.blog-faq .accordion-body {
    color: var(--text-secondary);
}

.blog-author-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid #e8edf5;
    margin-bottom: 2rem;
}

.blog-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.navbar-blog-page {
    position: sticky !important;
    top: 0;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.navbar-blog-page .nav-link {
    color: var(--navy-main) !important;
}

.navbar-blog-page .nav-link.active {
    color: var(--orange-vibrant) !important;
}

@media (max-width: 991px) {
    .blog-sidebar-sticky {
        position: static;
    }

    .blog-hero {
        padding: 130px 0 60px;
    }
}
