/* ==========================================================================
   GLOBAL CALCIUM - NEWSROOM, ARTICLE DETAIL & LATEST NEWS STYLES
   ========================================================================== */

/* --- 1. HOMEPAGE LATEST NEWS SECTION (index.php) --- */
.latest_news_section {
    padding-top: 50px !important;
    padding-bottom: 60px !important;
    background-color: #f8fafc !important;
}

@media (max-width: 991.98px) {
    .latest_news_section {
        padding-top: 30px !important;
        padding-bottom: 15px !important;
    }
}

.latest_news_section .center_heading {
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto 40px auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    z-index: 1 !important;
}

.latest_news_section .center_heading h2.blog-heading,
.latest_news_section .center_heading .blog-heading,
.latest_news_section .center_heading h2 {
    font-family: 'SF Pro Display', sans-serif !important;
    font-weight: 500 !important;
    color: #0094d1 !important;
    font-size: 40px !important;
    text-align: center !important;
    letter-spacing: 0 !important;
    line-height: normal !important;
    margin-bottom: 6px !important;
}

.latest_news_section .under-line {
    width: 65px !important;
    height: 5px !important;
    background: linear-gradient(to right, #0094d1, #19a544) !important;
    border-radius: 20px !important;
    margin: 0 !important;
    margin-top: 4px !important;
    margin-bottom: 20px !important;
    align-self: flex-start !important;
}

.latest_news_card,
.news-card {
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.latest_news_card:hover,
.news-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1) !important;
    border-color: #d0e1fd !important;
}

.latest_news_card .blog_img,
.news-img-wrapper,
.news-card-img-wrap {
    height: 220px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #f0f4f8 !important;
}

.latest_news_card .blog_img img,
.news-img-wrapper img,
.news-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.latest_news_card:hover .blog_img img,
.news-card:hover .news-img-wrapper img,
.news-card:hover .news-card-img {
    transform: scale(1.06) !important;
}

.news-badge,
.news-category-badge,
.news-card-badge {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    background: rgba(0, 148, 209, 0.92) !important;
    backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    z-index: 2 !important;
}

.latest_news_card .blog_text,
.news-body,
.news-card-body {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.news-date,
.news-card-date {
    font-size: 13px !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.latest_news_card .blog_heading,
.news-title,
.news-card-title {
    font-size: 17.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1a202c !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.latest_news_card:hover .blog_heading,
.news-card:hover .news-title,
.news-card:hover .news-card-title {
    color: #0094d1 !important;
}

.news-excerpt,
.news-card-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-bottom: 18px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
}

/* --- BUTTONS --- */
.news_read_more_btn,
.news-read-more,
.news-btn,
.news-card-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 20px !important;
    background: #0094d1 !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    box-shadow: 0 3px 10px rgba(0, 148, 209, 0.25) !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    align-self: flex-start !important;
    margin-top: auto !important;
}

.news_read_more_btn span,
.news_read_more_btn i,
.news-read-more span,
.news-read-more i,
.news-btn span,
.news-btn i,
.news-card-link span,
.news-card-link i {
    color: #ffffff !important;
}

.news_read_more_btn:hover,
.news-read-more:hover,
.news-btn:hover,
.news-card-link:hover {
    background: #0077aa !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 14px rgba(0, 148, 209, 0.35) !important;
    gap: 11px !important;
}

.news_view_all_btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 30px !important;
    background: #0094d1 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 14px rgba(0, 148, 209, 0.3) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.news_view_all_btn span,
.news_view_all_btn i {
    color: #ffffff !important;
}

.news_view_all_btn:hover {
    background: #0077aa !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 148, 209, 0.4) !important;
}

/* --- 2. NEWSROOM ARCHIVE LISTING (newsroom.php) --- */
.newsroom_section {
    padding-top: 60px !important;
    padding-bottom: 80px !important;
    background-color: #f8fafc !important;
}

.newsroom-title-heading {
    font-family: 'SF Pro Display', sans-serif !important;
    font-weight: 600 !important;
    color: #0094d1 !important;
    font-size: 32px !important;
    margin-bottom: 6px !important;
    text-align: left !important;
}

.newsroom_section .under-line {
    width: 65px !important;
    height: 5px !important;
    background: linear-gradient(to right, #0094d1, #19a544) !important;
    border-radius: 20px !important;
    margin: 6px 0 15px 0 !important;
}

.newsroom-category-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    margin-bottom: 35px !important;
    margin-top: 20px !important;
}

.news-filter-btn,
.newsroom-category-pill {
    padding: 9px 22px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    color: #4a5568 !important;
    background: #edf2f7 !important;
    border: 1px solid transparent !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

.news-filter-btn:hover,
.newsroom-category-pill:hover {
    color: #0094d1 !important;
    background: #e2e8f0 !important;
    transform: translateY(-2px);
}

.news-filter-btn.active,
.newsroom-category-pill.active {
    background: #0094d1 !important;
    color: #ffffff !important;
    border-color: #0094d1 !important;
    box-shadow: 0 4px 12px rgba(0, 148, 209, 0.28);
}

.newsroom-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 40px !important;
}

.newsroom-pagination a,
.newsroom-pagination span {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #4a5568 !important;
    transition: all 0.2s ease !important;
}

.newsroom-pagination a:hover {
    background: #edf2f7 !important;
    color: #0094d1 !important;
    border-color: #cbd5e0 !important;
}

.newsroom-pagination .active {
    background: #0094d1 !important;
    color: #ffffff !important;
    border-color: #0094d1 !important;
    box-shadow: 0 3px 10px rgba(0, 148, 209, 0.3);
}

.newsroom-pagination .disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* --- 3. NEWSROOM DETAIL TEMPLATE (newsroom-detail.php) --- */
.news_detail_section {
    padding-top: 60px !important;
    padding-bottom: 80px !important;
    background-color: #ffffff !important;
}

.news-detail-header {
    margin-bottom: 25px !important;
}

.news-detail-title {
    font-size: clamp(24px, 3.2vw, 36px) !important;
    font-weight: 700 !important;
    color: #0b2545 !important;
    line-height: 1.35 !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    font-family: 'SF Pro Display', sans-serif !important;
}

@media (max-width: 768px) {
    .news-detail-title {
        font-size: 24px !important;
        line-height: 1.35 !important;
    }
    .news-article-content {
        font-size: 15.5px !important;
        line-height: 1.75 !important;
    }
}

@media (max-width: 480px) {
    .news-detail-title {
        font-size: 20px !important;
    }
}

.news-detail-meta {
    font-size: 14px !important;
    color: #666666 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #edf2f7 !important;
}

.news-hero-img-wrap {
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 35px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.news-hero-img {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    object-fit: cover !important;
    display: block !important;
}

.news-article-content {
    font-size: 16.5px !important;
    line-height: 1.85 !important;
    color: #2d3748 !important;
}

.news-article-content p {
    margin-bottom: 22px !important;
}

.news-article-content h2,
.news-article-content h3 {
    font-weight: 700 !important;
    color: #0b2545 !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

.news-article-content ul,
.news-article-content ol {
    margin-bottom: 22px !important;
    padding-left: 25px !important;
}

.news-article-content li {
    margin-bottom: 8px !important;
}

.news-article-content blockquote {
    border-left: 4px solid #0094d1 !important;
    padding-left: 18px !important;
    margin: 24px 0 !important;
    font-style: italic !important;
    color: #4a5568 !important;
}

.news-pdf-attachment-box {
    background: linear-gradient(135deg, #f0f7fd 0%, #e1effc 100%) !important;
    border: 1px solid #c8e1fa !important;
    border-radius: 10px !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 35px 0 !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.news-share-strip {
    padding: 18px 0 !important;
    border-top: 1px solid #e9ecef !important;
    border-bottom: 1px solid #e9ecef !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin: 35px 0 !important;
}

.share-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.share-btn:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    opacity: 0.9 !important;
}

.share-linkedin { background-color: #0077b5 !important; }
.share-twitter { background-color: #000000 !important; }
.share-whatsapp { background-color: #25d366 !important; }
.share-facebook { background-color: #1877f2 !important; }
.share-copy { background-color: #4a5568 !important; cursor: pointer !important; border: none !important; }

/* Previous / Next Article Navigation */
.news-prev-next {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 40px 0 20px 0 !important;
    padding-top: 25px !important;
    border-top: 1px solid #edf2f7 !important;
}

.prev-next-card {
    flex: 1 !important;
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.prev-next-card:hover {
    background: #edf2f7 !important;
    border-color: #cbd5e0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

/* --- SIDEBAR STYLES & STICKY BEHAVIOR (newsroom-detail.php) --- */
.news_detail_section,
.news_detail_section .container,
.news_detail_section .row,
.news_detail_section .col-lg-4,
.news_detail_section .col-xl-4 {
    overflow: visible !important;
}

@media (min-width: 992px) {
    .news_detail_section .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .news-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
        z-index: 5 !important;
        display: block !important;
        width: 100% !important;
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 6px !important;
    }

    .news-sidebar::-webkit-scrollbar {
        width: 5px;
    }
    .news-sidebar::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    .news-sidebar::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    .news-sidebar::-webkit-scrollbar-thumb:hover {
        background: #0094d1;
    }
}
.sidebar-widget {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.sidebar-widget-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0b2545 !important;
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
    border-bottom: 2px solid #edf2f6 !important;
    position: relative !important;
    font-family: 'SF Pro Display', sans-serif !important;
}

.sidebar-widget-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: #0094d1 !important;
}

.sidebar-news-item {
    display: flex !important;
    gap: 14px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f3f6 !important;
    align-items: center !important;
}

.sidebar-news-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.sidebar-news-thumb {
    width: 78px !important;
    height: 78px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f0f4f8 !important;
    display: block !important;
}

.sidebar-news-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.sidebar-news-item:hover .sidebar-news-thumb img {
    transform: scale(1.08) !important;
}

.sidebar-news-content {
    flex-grow: 1 !important;
}

.sidebar-news-content h4 {
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.sidebar-news-content h4 a {
    color: #2d3748 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.sidebar-news-item:hover .sidebar-news-content h4 a {
    color: #0094d1 !important;
}

/* Sidebar Categories Link List */
.sidebar-category-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 11px 14px !important;
    margin-bottom: 6px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 1px solid #edf2f7 !important;
}

.sidebar-category-link:last-child {
    margin-bottom: 0 !important;
}

.sidebar-category-link:hover {
    background: #0094d1 !important;
    color: #ffffff !important;
    border-color: #0094d1 !important;
    transform: translateX(4px) !important;
}

.sidebar-category-link:hover i {
    color: #ffffff !important;
}

/* --- 4. HOMEPAGE HERO VIDEO CONTAINER --- */
.hero-video-section {
    width: 100% !important;
    position: relative !important;
    padding-top: 40px !important;
    padding-bottom: 50px !important;
}

@media (max-width: 991.98px) {
    .hero-video-section {
        padding-top: 25px !important;
        padding-bottom: 30px !important;
    }
}

.hero_video_container {
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.hero_video_container video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 16px !important;
}