/* ==========================================================================
   TÃ™NG LINH MEDICAL - NEWS SHORTCODES STYLES
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary: #e90505;
    --primary-dark: #c10404;
    --primary-darker: #9a0303;
    --primary-light: #ff1a1a;
    --primary-lighter: #ff4d4d;
    --primary-pale: #ffe5e5;
    
    /* Secondary Colors */
    --secondary: #EE1C26;
    --secondary-dark: #d01920;
    --secondary-light: #f23d46;
    --secondary-lighter: #f66b72;
    --secondary-pale: #ffeaeb;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Accent Colors */
    --accent-blue: #0077cc;
    --accent-blue-light: #e6f4ff;
    --accent-green: #00a65a;
    --accent-green-light: #e6f9f0;
    --accent-orange: #ff9800;
    --accent-orange-light: #fff3e0;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-accent: #ffe5e5;
    --bg-overlay: rgba(233, 5, 5, 0.05);
    
    /* Text Colors */
    --text-primary: #212121;
    --text-secondary: #616161;
    --text-tertiary: #9e9e9e;
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --text-accent: #e90505;
    
    /* Border Colors */
    --border-light: #eeeeee;
    --border-medium: #e0e0e0;
    --border-dark: #bdbdbd;
    --border-accent: #EE1C26;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 12px rgba(233, 5, 5, 0.15);
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #ffb2b2 0%, #ffffff70 100%);
    --gradient-soft: linear-gradient(180deg, #ffffff 0%, #ffe5e5 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(233, 5, 5, 0) 0%, rgba(233, 5, 5, 0.05) 100%);

    --tl-transition-base: 0.3s ease;
    --tl-transition-slow: 0.4s ease;
    --tl-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* News Section */
.tl-news {
    padding: 100px 0;
}
.tl-news .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.tl-news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}
.tl-news-header-content {
    max-width: 600px;
}

/* Section Label & Title */
.tl-section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.tl-section-label::before {
    content: "";
    width: 50px;
    height: 2px;
    background: var(--primary);
}
.tl-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* News Tabs */
.tl-news-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tl-news-tab {
    padding: 10px 24px;
    background: var(--gray-100);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--tl-transition-base);
    text-decoration: none;
}
.tl-news-tab:hover {
    background: var(--gray-200);
}
.tl-news-tab.active {
    background: var(--primary);
    color: var(--white);
}

/* Featured Post */
.tl-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    padding: 0;
    background: transparent;
}
.tl-featured-post-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    height: 400px;
}
.tl-featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.tl-featured-post-image:hover img {
    transform: scale(1.05);
}
.tl-featured-post-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tl-featured-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tl-featured-post-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
}
.tl-featured-post-category svg {
    width: 8px;
    height: 8px;
}
.tl-featured-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 16px;
    transition: var(--tl-transition-base);
}
.tl-featured-post-title:hover {
    color: var(--primary);
}
.tl-featured-post-excerpt {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
}
.tl-featured-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}
.tl-featured-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tl-featured-post-author-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.tl-featured-post-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}
.tl-featured-post-author-role {
    font-size: 13px;
    color: var(--gray-500);
}
.tl-featured-post-date {
    font-size: 14px;
    color: var(--gray-500);
}
@media (max-width: 1024px) {
    .tl-featured-post {
        grid-template-columns: 1fr;
    }
    .tl-featured-post-image img {
        min-height: 300px;
    }
}

/* News Layout */
.tl-news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}
.tl-news-main {
    min-width: 0;
}
@media (max-width: 1200px) {
    .tl-news-layout {
        grid-template-columns: 1fr;
    }
}

/* News Grid */
.tl-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .tl-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .tl-news-grid {
        grid-template-columns: 1fr;
    }
}

/* News Card */
.tl-news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--tl-transition-slow);
}
.tl-news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.tl-news-card-image {
    display: block;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.tl-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.tl-news-card:hover .tl-news-card-image img {
    transform: scale(1.1);
}
.tl-news-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tl-news-card-content {
    padding: 28px;
}
.tl-news-card-date {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
    display: block;
}
.tl-news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--tl-transition-base);
}
.tl-news-card:hover .tl-news-card-title {
    color: var(--primary);
}
.tl-news-card-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}
.tl-news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--tl-transition-base);
    text-decoration: none;
}
.tl-news-card-link:hover {
    gap: 14px;
}
.tl-news-card-link svg {
    transition: transform var(--tl-transition-base);
}

/* Pagination */
.tl-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}
.tl-pagination-btn {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--tl-transition-base);
    text-decoration: none;
}
.tl-pagination-btn:hover {
    background: var(--gray-200);
}
.tl-pagination-btn.active {
    background: var(--primary);
    color: var(--white);
}
.tl-pagination-btn.arrow {
    width: auto;
    padding: 0 16px;
}

/* Sidebar */
.tl-news-sidebar {
    position: sticky;
    top: 100px;
}
@media (max-width: 1200px) {
    .tl-news-sidebar {
        position: static;
    }
}

.tl-sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--gray-100);
}
.tl-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

/* Popular Posts */
.tl-popular-posts { }
.tl-popular-post {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--tl-transition-base);
    text-decoration: none;
}
.tl-popular-post:first-child {
    padding-top: 0;
}
.tl-popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.tl-popular-post:hover {
    opacity: 0.8;
}
.tl-popular-post-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    overflow: hidden;
}
.tl-popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tl-popular-post > div:not(.tl-popular-post-image) {
    flex: 1;
    min-width: 0;
}
.tl-popular-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tl-popular-post-date {
    font-size: 12px;
    color: var(--gray-500);
}

/* Category List */
.tl-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tl-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.tl-category-item:last-child {
    border-bottom: none;
}
.tl-category-link {
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--tl-transition-base);
    text-decoration: none;
}
.tl-category-link:hover {
    color: var(--primary);
}
.tl-category-count {
    font-size: 12px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Tags */
.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tl-tag {
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray-700);
    transition: var(--tl-transition-base);
    text-decoration: none;
}
.tl-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Newsletter Widget */
.tl-newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}
.tl-newsletter-widget .tl-sidebar-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.2);
}
.tl-newsletter-text {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}
.tl-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tl-newsletter-input {
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
}
.tl-newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
}
.tl-newsletter-btn {
    padding: 14px 24px;
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tl-transition-base);
}
.tl-newsletter-btn:hover {
    background: var(--gray-100);
}

/* No posts message */
.tl-no-posts {
    text-align: center;
    padding: 40px;
    color: var(--gray-600);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .tl-news {
        padding: 60px 0;
    }
    .tl-news .container {
        padding: 0 20px;
    }
    .tl-news-header {
        margin-bottom: 40px;
    }
}