/* =========================================================
   LEARN — News / ข่าวประชาสัมพันธ์ styles
   Loads AFTER home.css — inherits tokens, nav, footer, buttons.
   ========================================================= */

/* ---------- HERO ---------- */
.lc-news-hero {
    position: relative;
    padding: 120px var(--gutter) 40px;
    min-height: 34vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background-color: var(--brand-3);
    background-image:
        linear-gradient(180deg, rgba(206,230,247,0.95) 0%, rgba(177,215,240,0.55) 25%, rgba(40,121,185,0.55) 60%, rgba(11,79,132,0.95) 100%),
        url("../images/bg-slide-01.webp");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    border-radius: 0 0 32px 32px;
}
.lc-news-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.lc-news-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.lc-news-hero__orb--a {
    width: 520px; height: 520px;
    left: -140px; top: -160px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.3;
    animation: lcFloat 18s var(--ease) infinite alternate;
}
.lc-news-hero__orb--b {
    width: 420px; height: 420px;
    right: -100px; bottom: -120px;
    background: radial-gradient(circle, var(--brand-2) 0%, transparent 70%);
    opacity: 0.25;
    animation: lcFloat 22s var(--ease) infinite alternate-reverse;
}

.lc-news-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.lc-news-hero .lc-eyebrow {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    margin-bottom: 24px;
}
.lc-news-hero__title {
    font-family: var(--font-display);
    font-size: var(--hero-title-size) !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 20px;
    color: #fff;
}
.lc-news-hero__title .lc-accent {
    background: none;
    color: #fff;
    -webkit-text-fill-color: currentColor;
    animation: none;
}
.lc-news-hero__sub {
    font-size: clamp(14.4px, 1.2vw, 17.1px);
    color: rgba(255,255,255,0.82);
    margin: 0 auto 40px;
    line-height: 1.7;
    max-width: 640px;
}

/* Search bar */
.lc-news-search {
    position: relative;
    max-width: 720px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 22px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(6,35,60,0.35);
}
.lc-news-search__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--muted);
    display: grid;
    place-items: center;
}
.lc-news-search__input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 14px 10px;
    font-family: var(--font-thai);
    font-size: 13.5px;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}
.lc-news-search__input::placeholder { color: var(--muted); }
.lc-news-search__submit {
    flex-shrink: 0;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--ink-2);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12.6px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lc-news-search__submit:hover {
    background: var(--brand-3);
    transform: translateY(-1px);
}

/* Category pills */
.lc-news-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lc-news-cats__label {
    font-family: var(--font-display);
    font-size: 11.7px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.04em;
    margin-right: 4px;
}
.lc-news-cats__item {
    display: inline-block;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12.6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.lc-news-cats__item:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}
.lc-news-cats__item.is-active {
    background: #fff;
    color: var(--brand-3);
}

/* ---------- NEWS GRID SECTION ---------- */
.lc-news-list {
    padding: 80px 0 120px;
    background: var(--paper);
}

/* Featured row */
.lc-news-featured {
    max-width: var(--max);
    margin: 0 auto 64px;
    padding: 0 var(--gutter);
}
.lc-news-featured__card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 32px;
    background: var(--paper-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}
.lc-news-featured__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}
@media (max-width: 900px) {
    .lc-news-featured__card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
}
.lc-news-featured__media {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e5edf5;
}
.lc-news-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.lc-news-featured__card:hover .lc-news-featured__media img { transform: scale(1.04); }

.lc-news-featured__body { padding: 8px 8px 8px 0; }
@media (max-width: 900px) {
    .lc-news-featured__body { padding: 0 8px 8px; }
}
.lc-news-featured__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.lc-news-featured__title {
    font-family: var(--font-display);
    font-size: clamp(21.6px, 2.3vw, 32.4px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 14px;
}
.lc-news-featured__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}
.lc-news-featured__title a:hover { color: var(--brand); }
.lc-news-featured__excerpt {
    margin: 0 0 24px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--ink-soft);
}

/* Shared badge / meta */
.lc-news-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 9.9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lc-news-badge--outline {
    background: transparent;
    color: var(--brand);
    border: 1px solid currentColor;
}
.lc-news-date {
    font-family: var(--font-display);
    font-size: 11.7px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.lc-news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12.6px;
    color: var(--brand);
    transition: gap 0.3s var(--ease), color 0.3s;
}
.lc-news-readmore:hover {
    color: var(--brand-3);
    gap: 12px;
}

/* ---------- GRID of news cards ---------- */
.lc-news-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
@media (max-width: 900px) {
    .lc-news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 620px) {
    .lc-news-grid { grid-template-columns: 1fr; }
}

.lc-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}
.lc-news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.lc-news-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5edf5;
}
.lc-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.lc-news-card:hover .lc-news-card__media img { transform: scale(1.05); }
.lc-news-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    background: rgba(255,255,255,0.95);
    color: var(--brand-3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lc-news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}
.lc-news-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.lc-news-card__cat {
    font-family: var(--font-display);
    font-size: 10.8px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
}
.lc-news-card__dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--muted);
    opacity: 0.6;
}
.lc-news-card__title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.4;
    margin: 0 0 12px;
    color: var(--ink);
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-news-card:hover .lc-news-card__title { color: var(--brand-3); }
.lc-news-card__excerpt {
    font-size: 12.6px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-news-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.lc-news-card__readmore {
    font-family: var(--font-display);
    font-size: 11.7px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.lc-news-card:hover .lc-news-card__readmore { color: var(--brand-3); }

/* ---------- PAGINATION ---------- */
.lc-news-pagination {
    max-width: var(--max);
    margin: 64px auto 0;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.lc-news-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 12.6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s;
}
.lc-news-pagination__btn:hover {
    background: var(--paper-2);
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}
.lc-news-pagination__btn.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.lc-news-pagination__btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.lc-news-pagination__ellipsis {
    padding: 0 6px;
    color: var(--muted);
}

/* ---------- SEARCH / FILTER META LINE ---------- */
.lc-news-meta-line {
    max-width: var(--max);
    margin: 0 auto 32px;
    padding: 0 var(--gutter);
    color: var(--ink-soft);
    font-size: 13.5px;
}
.lc-news-meta-line strong {
    color: var(--ink);
    font-weight: 700;
}
.lc-news-meta-line__clear {
    margin-left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(40,121,185,0.08);
    color: var(--brand);
    font-size: 11.7px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}
.lc-news-meta-line__clear:hover {
    background: var(--brand);
    color: #fff;
}

/* ---------- EMPTY STATE ---------- */
.lc-news-empty {
    grid-column: 1 / -1;
    padding: 80px 24px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 15.3px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper-2);
}
.lc-news-empty a {
    margin-left: 8px;
    color: var(--brand);
    font-weight: 500;
}

/* ---------- HOME — Latest News teaser ---------- */
.lc-news-latest {
    /* Tight top so the section sits right under the Journey CTA without
       a big white gap; bottom keeps breathing room before The Proof. */
    padding: 24px 0 100px;
    background: var(--paper);
}
/* Left-aligned single-line heading with a subtle top divider so the
   section reads as a quieter teaser between flagship blocks. */
.lc-news-latest__head {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px var(--gutter) 0;
    border-top: 1px solid var(--line);
}
.lc-news-latest__title {
    font-family: var(--font-display);
    font-size: clamp(19.8px, 1.8vw, 25.2px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    text-align: left;
}
.lc-news-grid--home {
    margin-top: 32px;
}

/* =========================================================
   Section head — shared by ข่าวประชาสัมพันธ์ + บทความน่าสนใจ
   ========================================================= */
.lc-news-sectionhead {
    max-width: var(--max);
    margin: 0 auto 48px;
    padding: 0 var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
}
.lc-news-sectionhead__title {
    font-family: var(--font-display);
    font-size: clamp(25.2px, 3.1vw, 39.6px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--ink);
    margin: 6px 0 0;
}
.lc-news-sectionhead__desc {
    max-width: 460px;
    font-size: clamp(12.6px, 1vw, 14.4px);
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0;
}
.lc-news-sectionhead--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.lc-news-sectionhead--center .lc-news-sectionhead__text { text-align: center; }
.lc-news-sectionhead--center .lc-news-sectionhead__desc { max-width: 620px; }
@media (max-width: 700px) {
    .lc-news-sectionhead { margin-bottom: 36px; }
    .lc-news-sectionhead__desc { max-width: none; }
}

/* =========================================================
   บทความน่าสนใจ — editorial layout (distinct from press grid)
   Tinted band + image-led cards with the category chip overlaid
   on the cover, so the section reads differently from the
   white, text-forward press list above it.
   ========================================================= */
.lc-articles {
    position: relative;
    padding: 80px 0 88px;
    overflow: hidden;
    isolation: isolate;
}
.lc-articles__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(820px 540px at 85% 12%, rgba(122,195,234,0.16), transparent 60%),
        radial-gradient(680px 480px at 8% 92%, rgba(40,121,185,0.10), transparent 65%),
        linear-gradient(180deg, #f3f8fd 0%, #e8f1fa 100%);
}
.lc-articles__grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
@media (max-width: 980px) {
    .lc-articles__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 560px) {
    .lc-articles__grid { grid-template-columns: 1fr; }
}
.lc-article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 15, 26, 0.06);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.lc-article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}
.lc-article-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e5edf5;
}
.lc-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.lc-article-card:hover .lc-article-card__media img { transform: scale(1.06); }
/* Readability gradient so the chip stays legible on bright covers */
.lc-article-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,51,92,0.28) 0%, transparent 38%);
    pointer-events: none;
}
.lc-article-card__cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 10.8px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--brand-3);
}
.lc-article-card__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px 16px 18px;
    flex: 1;
}
.lc-article-card__body .lc-news-date {
    font-size: 10.8px;
    color: var(--ink-soft);
    opacity: 0.85;
}
.lc-article-card__title {
    font-family: var(--font-display);
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}
.lc-article-card__title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-article-card:hover .lc-article-card__title a { color: var(--brand-3); }
.lc-article-card__excerpt {
    font-size: 11.7px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-articles__more {
    max-width: var(--max);
    margin: 52px auto 0;
    padding: 0 var(--gutter);
    text-align: center;
}
