/* ============================================
   Prolrey Biotech — News Page Stylesheet
   ============================================ */

/* ---------- Hero Section ---------- */
.news-hero {
    margin-top: var(--nav-h);
    padding: 72px 0 64px;
    background: var(--bg-light);
    background-image: url('ASSETS/SLIDE/lab-microscope.jpg');
    background-size: 110% auto;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(247,248,250,0.92) 0%, rgba(247,248,250,0.75) 60%, rgba(247,248,250,0.5) 100%);
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.news-hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.news-hero-sub {
    font-size: 18px;
    color: var(--red);
    font-weight: 500;
}

.news-hero-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.news-hero-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-badge-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
}

.news-hero-badge-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

.news-hero-badge-text strong {
    display: block;
    font-size: 16px;
    color: var(--dark);
    font-weight: 700;
}

/* ---------- Filter Bar ---------- */
.news-filter-section {
    padding: 40px 0 24px;
    background: var(--bg-white);
}

.news-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.news-filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    flex: 1;
}

.news-tab {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--gray);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
}

.news-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform var(--transition);
}

.news-tab.active {
    color: var(--red);
}

.news-tab.active::after {
    transform: scaleX(1);
}

.news-tab:hover:not(.active) {
    color: var(--dark);
}

.news-search {
    position: relative;
    width: 240px;
    flex-shrink: 0;
}

.news-search input {
    width: 100%;
    padding: 12px 44px 12px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--bg-light);
    outline: none;
    transition: border-color var(--transition);
}

.news-search input:focus {
    border-color: var(--red);
}

.news-search input::placeholder {
    color: var(--gray-light);
}

.news-search svg {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-light);
    pointer-events: none;
}

/* ---------- Featured Section ---------- */
.news-featured-section {
    padding: 32px 0 48px;
    background: var(--bg-white);
}

.news-featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

/* Main featured card */
.news-featured-main {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
    cursor: pointer;
}

.news-featured-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.news-featured-main-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-featured-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.news-featured-main:hover .news-featured-main-img img {
    transform: scale(1.05);
}

.news-featured-main-body {
    padding: 24px 28px 28px;
}

.news-featured-main-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-date {
    font-size: 13px;
    font-family: var(--font-num);
    color: var(--gray-light);
    font-weight: 500;
}

.news-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--red-light);
    color: var(--red);
}

.news-featured-main-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-featured-main-body p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    transition: gap var(--transition);
}

.news-read-more:hover {
    gap: 10px;
}

.news-read-more svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Sidebar cards */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100%;
}

.news-sidebar-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
    cursor: pointer;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.news-sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.news-sidebar-card-img {
    width: 140px;
    height: 100%;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.news-sidebar-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.news-sidebar-card:hover .news-sidebar-card-img img {
    transform: scale(1.06);
}

.news-sidebar-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.news-sidebar-card-body .news-date {
    margin-bottom: 2px;
}

.news-sidebar-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-sidebar-card-body p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- News Grid ---------- */
.news-list {
    padding: 0 0 80px;
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Infinite-scroll trigger (invisible). */
.news-load-sentinel { height: 1px; overflow: hidden; }

.news-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

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

.news-card-body {
    padding: 20px 22px 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.news-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Whole-card links: strip default anchor styling so cards keep their look */
a.news-card,
a.news-sidebar-card,
a.news-featured-main {
    text-decoration: none;
    color: inherit;
}

/* Hidden / empty states */
.news-card.hidden,
.news-sidebar-card.hidden,
.news-featured-main.hidden {
    display: none;
}

.news-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: var(--gray-light);
    font-size: 15px;
}

/* ---------- Stay Updated CTA ---------- */
.news-cta {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.news-cta::before {
    content: '';
    position: absolute;
    left: -80px;
    bottom: -60px;
    width: 500px;
    height: 500px;
    background: url('ASSETS/SLIDE/building-night.jpg') center/cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.news-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.news-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-cta-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
}

.news-cta-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.news-cta-text p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .news-hero { padding: 48px 0; }
    .news-hero-inner { flex-direction: column; text-align: center; gap: 32px; }
    .news-hero-text h1 { font-size: 36px; }

    .news-filter { flex-direction: column; align-items: stretch; gap: 16px; }
    .news-search { width: 100%; }

    .news-featured-layout { grid-template-columns: 1fr; }
    .news-sidebar { flex-direction: row; }
    .news-sidebar-card { flex-direction: column; }
    .news-sidebar-card-img { width: 100%; height: 160px; }

    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .news-cta-inner { flex-direction: column; text-align: center; }
    .news-cta-left { flex-direction: column; }
}

@media (max-width: 640px) {
    .news-hero { padding: 36px 0; }
    .news-hero-text h1 { font-size: 28px; }
    .news-hero-badge { display: none; }

    .news-sidebar { flex-direction: column; }
    .news-sidebar-card { flex-direction: row; }
    .news-sidebar-card-img { width: 120px; height: auto; }

    .news-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .news-list { padding: 0 0 56px; }
    .news-cta { padding: 56px 0; }
}
