/* ==========================================================================
   HTAsiaLink - News & News Show Page Specific Styles
   ========================================================================== */

/* Utility Classes */
.text-orange {
    color: var(--primary-orange) !important;
}

.text-blue {
    color: var(--primary-blue) !important;
}

.bg-orange {
    background-color: var(--primary-orange) !important;
}

.bg-blue {
    background-color: var(--primary-blue) !important;
}

/* --------------------------------------
   Hero Banner Specific to News (#news-hero)
   -------------------------------------- */
.news-hero {
    padding: 200px 0 120px;
    background: linear-gradient(135deg, rgba(0, 67, 146, 0.85) 0%, rgba(0, 45, 98, 0.95) 100%),
        url('../images/index02.jpg') center/cover no-repeat;
    margin-bottom: 60px;
}

.news-hero h1 {
    font-family: 'Playfair Display', serif;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

.news-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --------------------------------------
   Category Badges
   -------------------------------------- */
.badge-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
}

.badge-conference {
    background-color: rgba(226, 105, 13, 0.1);
    color: var(--primary-orange);
    border: 1px solid rgba(226, 105, 13, 0.2);
}

.badge-announcement {
    background-color: rgba(0, 67, 146, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 67, 146, 0.2);
}

.badge-webinar {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0b93a6;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

/* --------------------------------------
   News List Page Grid & Cards
   -------------------------------------- */
.news-section {
    padding: 20px 0 100px;
    background-color: var(--bg-offwhite);
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 67, 146, 0.1) !important;
    border-color: rgba(226, 105, 13, 0.15) !important;
}

.news-card .img-container {
    overflow: hidden;
    position: relative;
    height: 220px;
}

.news-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .img-container img {
    transform: scale(1.08);
}

.news-card .card-body {
    padding: 30px;
}

.news-card .news-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-card .card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.news-card:hover .card-title {
    color: var(--primary-orange);
}

.news-card .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore-btn {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.news-readmore-btn i {
    transition: transform 0.3s ease;
}

.news-readmore-btn:hover {
    color: #c75a09;
}

.news-readmore-btn:hover i {
    transform: translateX(6px);
}

/* Category Filter Tags */
.filter-btn {
    border: 1px solid rgba(0, 67, 146, 0.15);
    background-color: #ffffff;
    color: var(--primary-blue);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 67, 146, 0.15);
}

/* --------------------------------------
   News Show (Detail) Page
   -------------------------------------- */
.news-detail-section {
    padding: 20px 0 100px;
    background-color: var(--bg-offwhite);
}

.back-to-news {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-to-news:hover {
    color: var(--primary-orange);
    transform: translateX(-5px);
}

.news-post {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.news-post-header {
    margin-bottom: 30px;
}

.news-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.news-post h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 25px;
    color: var(--primary-blue);
}

.news-post-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-post-img-wrapper img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.news-post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.news-post-body p {
    color: var(--text-dark);
    margin-bottom: 25px;
}

.news-post-body blockquote {
    border-left: 4px solid var(--primary-orange);
    padding-left: 25px;
    margin: 35px 0;
    font-style: italic;
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Share Buttons */
.share-container {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 30px;
    margin-top: 50px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-email { background-color: #718096; }

/* --------------------------------------
   Sidebar
   -------------------------------------- */
.sidebar-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 67, 146, 0.08);
}

.sidebar-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-orange);
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-title:hover {
    color: var(--primary-orange);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background-color: var(--bg-offwhite);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tag-item:hover {
    background-color: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
}

/* --------------------------------------
   Responsive Adjustments
   -------------------------------------- */
@media (max-width: 991px) {
    .news-hero {
        padding: 150px 0 80px;
    }

    .news-hero h1 {
        font-size: 2.5rem;
    }

    .news-post {
        padding: 25px;
    }

    .news-post h1 {
        font-size: 2rem;
    }
}
