/* SVN-Gilroy — file dat trong public/fonts/ (xem README.txt o do).
   Chua co file thi trinh duyet tu roi ve Be Vietnam Pro, khong loi. */
@font-face {
    font-family: 'SVN-Gilroy';
    src: url('/fonts/SVN-Gilroy-Regular.woff2') format('woff2'),
         url('/fonts/SVN-Gilroy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SVN-Gilroy';
    src: url('/fonts/SVN-Gilroy-Bold.woff2') format('woff2'),
         url('/fonts/SVN-Gilroy-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --orange: #FF5100;
    --ink: #11151a;
    --muted: #647084;
    --line: #e9edf1;
}

.news-masthead {
    height: 360px;
    display: flex;
    align-items: center;
    background: #ff5a0a url('/images/unitel-hero-v2.png') center center / cover no-repeat;
    color: white;
}
.news-masthead-copy { width: 390px; padding-top: 8px; }
.news-masthead h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; font-weight: 800; }
.news-masthead p { font-size: 14px; line-height: 1.55; margin: 0; max-width: 360px; }
.news-index { padding-top: 28px; }
.breadcrumbs { display: flex; gap: 15px; align-items: center; color: #687384; font-size: 13px; margin-bottom: 34px; }
.breadcrumbs a { color: #20252b; font-weight: 600; }
.news-feature-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 42px; align-items: start; }
.news-feature-card, .news-side-card { display: block; border: 1px solid #e7ebef; border-radius: 14px; overflow: hidden; background: #fff; }
.news-feature-card img { width: 100%; height: 375px; object-fit: cover; display: block; }
.news-feature-copy { padding: 15px 20px 20px; }
.news-meta { display: flex; gap: 26px; align-items: center; color: #fb5717; font-size: 11px; font-weight: 700; }
.news-meta time { color: #98a1ad; font-weight: 500; }
.news-feature-copy h2 { font-size: 23px; line-height: 1.2; margin: 12px 0 10px; }
.news-feature-copy p, .all-news-item p { color: #87909c; line-height: 1.55; font-size: 13px; margin: 0 0 12px; }
.more { color: var(--orange); font-size: 12px; font-weight: 700; }
.more b { font-size: 16px; margin-left: 4px; }
.news-side-list { display: grid; gap: 15px; }
.news-side-card { display: grid; grid-template-columns: 155px 1fr; min-height: 132px; }
.news-side-card img { width: 155px; height: 100%; min-height: 132px; object-fit: cover; }
.news-side-card > div { padding: 16px 14px; }
.news-side-card .news-meta { gap: 10px; font-size: 10px; }
.news-side-card h3 { font-size: 14px; line-height: 1.3; margin: 12px 0 12px; }
.all-news { margin-top: 70px; }
.all-news-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.all-news-head h2 { margin: 0; font-size: 28px; }
.news-filters { display: flex; gap: 8px; }
.news-filters a { border: 1px solid #e1e6eb; border-radius: 22px; background: white; padding: 10px 17px; color: #535c68; font: inherit; font-size: 12px; cursor: pointer; }
.news-filters a.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.all-news-list { display: grid; gap: 20px; }
.all-news-item { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: center; }
.all-news-item img { width: 280px; height: 150px; object-fit: cover; border-radius: 13px; }
.all-news-item h3 { font-size: 17px; line-height: 1.35; margin: 8px 0; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination span { min-width: 36px; padding: 9px 12px; border: 1px solid #e8e8e8; border-radius: 5px; text-align: center; color: var(--orange); font-size: 13px; }
.pagination .current { color: white; background: var(--orange); border-color: var(--orange); }
.pagination a { min-width:36px; padding:9px 12px; border:1px solid #e8e8e8; border-radius:5px; text-align:center; color:var(--orange); font-size:13px; }
.news-pagination a, .news-pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 12px; border:1px solid #e8e8e8; border-radius:5px; background:#fff; color:var(--orange); font-size:13px; line-height:1; text-decoration:none; }
.news-pagination .current { background:var(--orange); border-color:var(--orange); color:#fff; }
.article-page { padding-top: 28px; }
.article-page > .breadcrumbs { margin-bottom: 25px; }
.article-page .article-head { max-width: none; }
.article-page .article-head h1 { font-size: 34px; margin: 12px 0; }
.article-page .article-head .summary { font-size: 14px; line-height: 1.6; }
.article-page .cover { width: 100%; height: 440px; margin: 20px 0 25px; border-radius: 0; object-fit: cover; }
.article-page .article-layout { grid-template-columns: minmax(0, 760px) 290px; gap: 42px; }
.article-page .side { background: #fafafa; border-radius: 8px; padding: 15px; height: max-content; }
.article-page .side h3 { color: var(--orange); font-size: 15px; margin: 0 0 6px; }
.article-page .related { display: grid; grid-template-columns: 70px 1fr; gap: 10px; border-top: 0; padding: 10px 0; }
.article-page .related:before { content: ''; grid-row: span 2; width: 70px; height: 50px; background: url('/images/unitel-news-feature-v1.png') center/cover; border-radius: 5px; }
.article-page .related time { grid-column: 2; grid-row: 1; }
.article-page .related b { grid-column: 2; grid-row: 2; font-size: 11px; margin: 0; line-height: 1.3; }

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'SVN-Gilroy','Be Vietnam Pro',Arial,sans-serif;
    color: var(--ink);
}

a {
    text-decoration: none;
    color: inherit;
}

.site-shell {
    max-width: 1440px;
    margin: 0 auto;
}
/* Banner va footer pha khung 1440px de trai het chieu ngang man hinh.
   overflow-x:clip (khong phai hidden) de header position:sticky van chay. */
body {
    overflow-x: clip;
}
.site-header,
.hero,
.site-shell > footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.container {
    width: min(1280px,calc(100% - 48px));
    margin: auto;
}

.site-header {
    height: 72px;
    background: #fff;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid #edf0f2;
}

.site-header .container {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
}
.site-logo img {
    display: block;
    max-width: 145px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
}
.site-nav {
    display: flex;
    justify-content: center;
    gap: 31px;
    font-size: 13px;
}

.site-nav a {
    padding: 27px 0 24px;
    color: #101418;
    font-weight: 400;
    line-height: 24px;
}

.site-nav a:hover {
    color: var(--orange);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-language {
    position: relative;
}

.header-language summary {
    list-style: none;
    cursor: pointer;
}

.header-language-menu {
    position: absolute;
    right: 0;
    top: 42px;
    background: #fff;
    padding: 7px;
    box-shadow: 0 12px 35px #0002;
    min-width: 135px;
}

.header-language-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
}
.header-language-menu img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
.header-language-emoji {
    width: 20px;
    text-align: center;
    flex: none;
}

.login-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 114px;
    height: 40px;
    padding: 11.5px 24px 12.5px 24px;
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.hero {
    background: #fff7f2;
    padding: 58px 0 110px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
}

.article-head {
    max-width: 900px;
}

.tag {
    color: var(--orange);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.article-head h1 {
    font-size: 46px;
    line-height: 1.22;
    margin: 18px 0;
}

.summary {
    font-size: 18px;
    line-height: 1.75;
    color: #55606d;
}

.cover {
    width: min(1120px,calc(100% - 40px));
    height: 560px;
    object-fit: cover;
    display: block;
    margin: -70px auto 55px;
    border-radius: 18px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0,760px) 1fr;
    gap: 70px;
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
}

.article-body h2 {
    font-size: 30px;
}

.article-body a {
    color: var(--orange);
    text-decoration: underline;
}

.article-body img {
    max-width: 100%;
}

.side {
    position: sticky;
    top: 95px;
}

.related {
    display: block;
    border-top: 1px solid #eee;
    padding: 16px 0;
}

.related time {
    font-size: 11px;
    color: var(--orange);
}

.related b {
    display: block;
    margin-top: 7px;
}

.fallback {
    background: #fff0e8;
    color: #a63e0d;
    padding: 11px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

footer {
    background: linear-gradient(270deg, #FFF3E9 0.05%, #FFD9B7 99.97%);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .75fr 1.2fr;
    gap: 90px;
}

footer p {
    line-height: 1.8;
}

.logo {
    font-size: 34px;
    font-weight: 800;
    color: #f15a24;
}

.logo small {
    display: block;
    color: #222;
    font-size: 12px;
    text-align: center;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.socials a {
    width: 43px;
    height: 43px;
    border: 1px solid #222;
    border-radius: 6px;
    display: grid;
    place-items: center;
}

.footer-links a {
    display: block;
    margin-bottom: 20px;
}

.contact-line {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.contact-line b {
    color: var(--orange);
}

.contact-line span {
    color: #111;
    font-size: 14px;
}

.copyright {
    border-top: 1px solid #333;
    margin-top: 42px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.legal {
    display: flex;
    gap: 28px;
}

@media (max-width: 900px) {
    .news-masthead { height: 270px; }
    .news-masthead-copy { width: 52%; }
    .news-masthead h1 { font-size: 28px; }
    .news-feature-grid, .article-page .article-layout { grid-template-columns: 1fr; }
    .all-news-head { display: block; }
    .news-filters { margin-top: 18px; overflow-x: auto; padding-bottom: 4px; }
    .all-news-item { grid-template-columns: 150px 1fr; }
    .all-news-item img { width: 150px; height: 105px; }
    .article-page .side { position: static; }
    .site-header .container {
        display: flex;
        justify-content: space-between;
    }

    .site-nav {
        display: none;
    }

    .article-head h1 {
        font-size: 34px;
    }

    .cover {
        height: 300px;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .side {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .copyright {
        display: block;
    }

    .legal {
        margin-top: 12px;
    }

}

@media (max-width: 560px) {
    .news-masthead-copy { width: 62%; }
    .news-masthead p { font-size: 12px; }
    .news-feature-card img { height: 240px; }
    .news-side-card { grid-template-columns: 105px 1fr; }
    .news-side-card img { width: 105px; min-height: 115px; }
    .all-news-item { grid-template-columns: 1fr; gap: 10px; }
    .all-news-item img { width: 100%; height: 190px; }
    .article-page .cover { height: 230px; }
}

/* Keep the shared footer identical to the homepage. */
footer {
    background: linear-gradient(270deg, #FFF3E9 0.05%, #FFD9B7 99.97%);
    padding: 48px 0 18px;
    margin-top: 80px;
    color: #111;
}

footer .footer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 34px;
}

footer .footer-grid h3 {
    color: #FF5100;
    font-family: 'SVN-Gilroy','Be Vietnam Pro',Arial,sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px;
    margin: 0 0 20px;
}

footer .footer-grid p,
footer .footer-links a,
footer .contact-line {
    font-size: 14px;
}

footer .footer-links a {
    margin-bottom: 13px;
}

footer .footer-brand .logo {
    font-size: 28px;
}

footer .footer-apps a {
    display: block;
    background: #171717;
    color: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
}

footer .footer-apps a svg {
    vertical-align: middle;
}

footer .copyright {
    border-top: 1px solid #efcdb0;
    margin-top: 30px;
    padding-top: 15px;
    color: #6b5547;
}

footer .copyright .legal {
    gap: 18px;
}

.footer-grid .socials a {
    border-color: #f2cdb1;
    color: var(--orange);
    border-radius: 12px;
}

@media (max-width: 900px) {
    footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

}

@media (max-width: 560px) {
    footer .footer-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================================================
   Header dung chung (resources/views/site/partials/header.blade.php)
   Cac rule nay doi ung voi bien the .simple-header + nut menu mobile,
   von chi co trong home.css. Giu dong bo de trang tin dung cung mot header.
   ===================================================================== */
.simple-header {
    height: 80px;
    overflow: visible;
}

.simple-header:after {
    content: '';
    position: absolute;
    z-index: -1;
    right: 0;
    top: 0;
    width: 34%;
    height: 80px;
    background: repeating-linear-gradient(55deg,transparent 0 58px,#f7f7f7 59px 100px);
}

.simple-header .container {
    grid-template-columns: 145px 1fr auto;
    gap: 40px;
}

.simple-header .site-nav {
    gap: 32px;
    font-size: 20px;
}

.simple-header .site-nav a {
    padding: 30px 0 27px;
    border: 0;
}

.site-nav a.active {
    color: var(--orange);
    font-weight: 700;
}

.header-flag {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #dbe1e6;
    font-size: 19px;
    cursor: pointer;
    list-style: none;
}
.header-flag::-webkit-details-marker {
    display: none;
}
.header-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.header-icon {
    width: 34px;
    height: 34px;
    border: 1px solid #e4e7ea;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--orange);
}

.mobile-menu-button {
    display: none;
}

.header-search-button {
    border: 0;
    color: var(--orange);
}

.header-search {
    position: absolute;
    right: 24px;
    top: 72px;
    width: min(360px, calc(100vw - 48px));
    padding: 9px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 35px #0002;
}

.header-search[hidden] {
    display: none;
}

.header-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    font: inherit;
}

@media (max-width: 1150px) {
    .simple-header .container {
        grid-template-columns: 145px 1fr auto;
    }

    .simple-header .site-nav {
        gap: 18px;
        font-size: 17px;
    }

}

@media (max-width: 900px) {
    .simple-header .container {
        display: flex;
        justify-content: space-between;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 80px;
        background: #fff;
        padding: 10px 24px 18px;
        box-shadow: 0 15px 25px #0001;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu-button {
        display: grid;
    }

    .simple-header .login-button {
        min-width: auto;
        padding: 11.5px 13px 12.5px 13px;
    }

    .simple-header:after {
        width: 55%;
    }

}

@media (max-width: 480px) {
    .header-flag {
        display: none;
    }

}
