/* KMUTT Single News */

.kmutt-single-news-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eceff3;
    margin-bottom: 0;
}

.kmutt-single-news-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 64px;
    color: #64748b;
    font-size: 14px;
}

.kmutt-single-news-breadcrumb a {
    color: #334155;
    text-decoration: none;
}

.kmutt-single-news-breadcrumb span:last-child {
    color: #0f172a;
    max-width: 540px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kmutt-single-news-page {
    background: #fff;
    padding: 56px 0 72px;
}

.kmutt-single-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}

.kmutt-single-news-main {
    min-width: 0;
}

.kmutt-single-news-header {
    margin-bottom: 28px;
}

.kmutt-single-news-kicker {
    color: #f15a24;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.kmutt-single-news-header h1 {
    color: #0f172a;
    font-size: 44px;
    line-height: 1.13;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 20px;
}

.kmutt-single-news-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    margin-bottom: 24px;
}

.kmutt-single-news-taxonomy .kmutt-term-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.kmutt-single-news-taxonomy .kmutt-term-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.kmutt-single-news-sdg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.kmutt-single-news-sdg-badge {
    display: grid;
    grid-template-columns: 34px auto;
    align-items: center;
    min-height: 34px;
    overflow: hidden;
    border-radius: 4px;
    background: #64748b;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.kmutt-single-news-sdg-badge strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,.18);
    color: inherit;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.kmutt-single-news-sdg-badge em {
    display: block;
    padding: 0 10px;
    color: inherit;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    line-height: 1;
}

.kmutt-single-news-sdg-1 { background: #e5243b; }
.kmutt-single-news-sdg-2 { background: #dda63a; }
.kmutt-single-news-sdg-3 { background: #4c9f38; }
.kmutt-single-news-sdg-4 { background: #c5192d; }
.kmutt-single-news-sdg-5 { background: #ff3a21; }
.kmutt-single-news-sdg-6 { background: #26bde2; }
.kmutt-single-news-sdg-7 { background: #fcc30b; color: #111; }
.kmutt-single-news-sdg-8 { background: #a21942; }
.kmutt-single-news-sdg-9 { background: #fd6925; }
.kmutt-single-news-sdg-10 { background: #dd1367; }
.kmutt-single-news-sdg-11 { background: #fd9d24; color: #111; }
.kmutt-single-news-sdg-12 { background: #bf8b2e; }
.kmutt-single-news-sdg-13 { background: #3f7e44; }
.kmutt-single-news-sdg-14 { background: #0a97d9; }
.kmutt-single-news-sdg-15 { background: #56c02b; color: #111; }
.kmutt-single-news-sdg-16 { background: #00689d; }
.kmutt-single-news-sdg-17 { background: #19486a; }

.kmutt-single-news-meta-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.kmutt-single-news-meta,
.kmutt-single-news-share-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #0f172a;
    font-size: 15px;
}

.kmutt-single-news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.kmutt-single-news-meta i {
    color: #0f172a;
}

.kmutt-single-news-share-inline span {
    color: #475569;
    font-weight: 700;
}

.kmutt-single-news-share-inline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    float: none;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 800;
}

.kmutt-single-news-share-inline a {
    width: 34px;
    height: 34px;
    color: #fff;
    font-size: 13px;
}

.kmutt-single-news-share-inline .kmutt-share-facebook,
.kmutt-single-news-share-card .kmutt-share-facebook {
    background: #1877f2;
}

.kmutt-single-news-share-inline .kmutt-share-x,
.kmutt-single-news-share-card .kmutt-share-x {
    background: #050505;
}

.kmutt-single-news-share-inline .kmutt-share-line,
.kmutt-single-news-share-card .kmutt-share-line {
    background: #06c755;
}

.kmutt-single-news-cover {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f5f9;
}

.kmutt-single-news-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.kmutt-single-news-summary {
    background: #f8fafc;
    border-left: 4px solid #f15a24;
    border-radius: 6px;
    padding: 22px 24px;
    margin-bottom: 28px;
}

.kmutt-single-news-summary h2 {
    color: #f15a24;
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 10px;
}

.kmutt-single-news-summary p {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
}

.kmutt-single-news-content {
    color: #111827;
    font-size: 20px;
    line-height: 1.78;
}

.kmutt-single-news-content p,
.kmutt-single-news-content ul,
.kmutt-single-news-content ol {
    margin-bottom: 22px;
}

.kmutt-single-news-content h2,
.kmutt-single-news-content h3,
.kmutt-single-news-content h4 {
    color: #0f172a;
    font-weight: 900;
    line-height: 1.25;
    margin: 34px 0 16px;
}

.kmutt-single-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.kmutt-single-news-content a {
    color: #e95420;
    text-decoration: underline;
}

.kmutt-single-news-quote {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin: 36px 0;
    padding: 24px;
    border-radius: 8px;
    background: #fff7ed;
}

.kmutt-single-news-quote img {
    width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}

.kmutt-single-news-quote blockquote {
    margin: 0;
    color: #111827;
}

.kmutt-single-news-quote p {
    position: relative;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 700;
    margin: 0 0 12px;
}

.kmutt-single-news-quote cite {
    color: #64748b;
    font-size: 16px;
    font-style: normal;
}

.kmutt-single-news-section-head {
    margin-bottom: 16px;
}

.kmutt-single-news-section-head h2 {
    color: #f15a24;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.kmutt-single-news-gallery {
    margin-top: 36px;
}

.kmutt-single-news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.kmutt-single-news-gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f5f9;
}

.kmutt-single-news-gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .2s ease;
}

.kmutt-single-news-gallery-grid a:hover img {
    transform: scale(1.04);
}

.kmutt-single-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.kmutt-single-news-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 4px;
    background: #f15a24;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.kmutt-single-news-back-link:hover {
    color: #fff;
    background: #d94d19;
    text-decoration: none;
}

.kmutt-single-news-sidebar {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 24px;
}

.kmutt-single-news-side-card {
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 24px;
}

.kmutt-single-news-side-card h2 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 20px;
}

.kmutt-single-news-detail-list {
    display: grid;
    gap: 18px;
    margin: 0;
}

.kmutt-single-news-detail-list div {
    display: grid;
    gap: 5px;
}

.kmutt-single-news-detail-list dt {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 15px;
    font-weight: 800;
}

.kmutt-single-news-detail-list dd {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.45;
    padding-left: 27px;
}

.kmutt-single-news-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.kmutt-single-news-side-head h2 {
    margin: 0;
}

.kmutt-single-news-side-head a {
    color: #f15a24;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.kmutt-single-news-related-list {
    display: grid;
    gap: 16px;
}

.kmutt-single-news-related-item a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    color: #0f172a;
    text-decoration: none;
}

.kmutt-single-news-related-item img {
    width: 112px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0;
}

.kmutt-single-news-related-item strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
    margin-bottom: 6px;
}

.kmutt-single-news-related-item em {
    color: #64748b;
    font-size: 14px;
    font-style: normal;
}

.kmutt-single-news-share-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kmutt-single-news-share-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    border-radius: 4px;
    padding: 8px 10px;
    color: #fff;
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
    .kmutt-single-news-page {
        padding: 36px 0 56px;
    }

    .kmutt-single-news-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .kmutt-single-news-sidebar {
        position: static;
    }

    .kmutt-single-news-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 767.98px) {
    .kmutt-single-news-breadcrumb .container {
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .kmutt-single-news-breadcrumb span:last-child {
        max-width: 100%;
        white-space: normal;
    }

    .kmutt-single-news-header h1 {
        font-size: 30px;
    }

    .kmutt-single-news-meta-share {
        align-items: flex-start;
    }

    .kmutt-single-news-meta,
    .kmutt-single-news-share-inline {
        width: 100%;
    }

    .kmutt-single-news-content {
        font-size: 18px;
    }

    .kmutt-single-news-quote {
        grid-template-columns: 1fr;
    }

    .kmutt-single-news-quote img {
        width: 100%;
        max-height: 260px;
    }

    .kmutt-single-news-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kmutt-single-news-related-item a {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .kmutt-single-news-related-item img {
        width: 96px;
    }

    .kmutt-single-news-share-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479.98px) {
    .kmutt-single-news-header h1 {
        font-size: 26px;
    }

    .kmutt-single-news-summary,
    .kmutt-single-news-side-card,
    .kmutt-single-news-quote {
        padding: 18px;
    }

    .kmutt-single-news-gallery-grid {
        grid-template-columns: 1fr;
    }
}
