/* =========================================================
   TƯƠNG LAI NRO
   WEBSITE STYLE
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #050e1b;
    color: #eaf4ff;

    font-family: Arial, Helvetica, sans-serif;

    line-height: 1.5;
}

a {
    color: #e4efff;
    text-decoration: none;

    transition: all .2s ease;
}

a:hover {
    color: #39adff;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.nav {
    min-height: 72px;

    background: #071321ee;

    border-bottom: 1px solid #1a4269;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 4%;

    position: sticky;
    top: 0;

    z-index: 1000;

    backdrop-filter: blur(8px);
}


/* Logo navbar */

.brand {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.brand img {
    width: 155px;
    max-height: 58px;

    display: block;

    object-fit: contain;
}


/* Menu */

.nav nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 17px;

    font-weight: 600;
}

.nav nav a {
    white-space: nowrap;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1180px, 92%);

    margin: 28px auto;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 420px;

    border-radius: 24px;

    padding: 45px 6%;

    border: 1px solid #1b568a;

    background:
        radial-gradient(
            circle at 78% 35%,
            #198bd8 0,
            #0c4677 35%,
            #071528 72%
        );

    box-shadow:
        0 20px 60px #0006;

    position: relative;

    overflow: hidden;
}


/* Nội dung hero */

.hero-content {
    position: relative;

    z-index: 5;

    min-height: 330px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.hero-text {
    position: relative;

    z-index: 10;

    width: 55%;
}

.hero-text .muted {
    font-size: 14px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #8dccff;
}


.hero h1 {
    font-size: 52px;

    line-height: 1.1;

    margin: 12px 0;

    font-weight: 900;

    text-shadow:
        0 4px 15px #0008;
}


.hero p {
    max-width: 620px;

    margin: 0 0 25px;

    font-size: 18px;

    line-height: 1.6;

    color: #b7cce2;
}


/* =========================================================
   HERO LOGO
   ========================================================= */

.hero-logo {
    position: absolute;

    right: -25px;

    top: 50%;

    transform: translateY(-50%);

    width: 47%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 3;

    pointer-events: none;
}


.hero-logo img {
    width: 100%;

    max-width: 560px;

    height: auto;

    display: block;

    object-fit: contain;

    transform: scale(1.15);

    filter:
        drop-shadow(0 15px 25px #0009)
        drop-shadow(0 0 18px #167ac7);
}


/* =========================================================
   HERO LIGHT
   ========================================================= */

.hero:before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -100px;
    top: -60px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #35b5ff55 0,
            #167ac722 45%,
            transparent 70%
        );

    z-index: 1;

    pointer-events: none;
}


.hero:after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -160px;
    bottom: -300px;

    border-radius: 50%;

    background: #ff9c00;

    opacity: .18;

    z-index: 1;

    pointer-events: none;
}


/* =========================================================
   BUTTON
   ========================================================= */

.btn {
    display: inline-block;

    padding: 13px 20px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #139bff,
            #195de8
        );

    color: white;

    font-weight: 800;

    cursor: pointer;

    transition: all .2s ease;
}


.btn:hover {
    color: white;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px #139bff55;
}


.btn.orange {
    background:
        linear-gradient(
            135deg,
            #ffc000,
            #ff5400
        );

    box-shadow:
        0 8px 25px #ff8a0055;
}


.btn.orange:hover {
    box-shadow:
        0 10px 30px #ff8a0080;

    transform: translateY(-2px);
}


.small {
    padding: 8px 12px;
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 12px;

    margin-top: 20px;
}


.stat {
    text-align: center;

    padding: 18px;

    border: 1px solid #19436b;

    background: #0a1c31;

    border-radius: 14px;

    transition: all .2s ease;
}


.stat:hover {
    transform: translateY(-3px);

    border-color: #267fc0;

    box-shadow:
        0 8px 25px #0004;
}


.stat b {
    font-size: 26px;

    display: block;

    color: #43b6ff;

    margin-bottom: 6px;
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 20px;
}


/* =========================================================
   CARD
   ========================================================= */

.card {
    background: #091a2e;

    border: 1px solid #1a3e61;

    border-radius: 16px;

    padding: 20px;

    box-shadow:
        0 10px 35px #0002;
}


.card h1,
.card h2,
.card h3 {
    margin-top: 0;
}


.card h2 {
    margin-bottom: 18px;
}


/* =========================================================
   TABLE
   ========================================================= */

.table {
    width: 100%;

    border-collapse: collapse;
}


.table th,
.table td {
    padding: 12px;

    border-bottom:
        1px solid #183450;

    text-align: left;
}


.table th {
    color: #6ec8ff;
}


.table tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   FORUM
   ========================================================= */

.topic {
    padding: 15px 0;

    border-bottom:
        1px solid #183450;
}


.topic:last-child {
    border-bottom: 0;
}


.topic h3 {
    margin: 0 0 5px;
}


.topic p {
    margin-bottom: 0;
}


/* =========================================================
   TEXT
   ========================================================= */

.muted {
    color: #8ca4bd;
}


/* =========================================================
   FLASH
   ========================================================= */

.flash {
    padding: 12px;

    background: #123b2a;

    border: 1px solid #1b8e54;

    border-radius: 10px;

    margin-bottom: 15px;
}


/* =========================================================
   FORM
   ========================================================= */

.form {
    max-width: 560px;

    margin: 0 auto;
}


.form input,
.form textarea,
.form select {
    width: 100%;

    padding: 13px;

    margin: 7px 0 15px;

    background: #061323;

    color: white;

    border:
        1px solid #285478;

    border-radius: 9px;

    outline: none;
}


.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: #2399e8;

    box-shadow:
        0 0 0 2px #2399e822;
}


.form textarea {
    min-height: 140px;

    resize: vertical;
}


/* =========================================================
   DOWNLOAD
   ========================================================= */

.download {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin-top: 20px;
}


.download .card {
    text-align: center;
}


/* =========================================================
   RANK
   ========================================================= */

.rank1 {
    color: #ffd43b;
}


.rank2 {
    color: #d5dee8;
}


.rank3 {
    color: #e2a06e;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 60px;

    padding: 30px;

    text-align: center;

    border-top:
        1px solid #17344f;

    color: #718aa3;
}


footer img {
    width: 135px;

    max-height: 60px;

    object-fit: contain;
}


/* =========================================================
   TABLET
   851px - 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .nav {
        padding-left: 3%;
        padding-right: 3%;
    }


    .nav nav {
        gap: 10px;

        font-size: 14px;
    }


    .hero-text {
        width: 57%;
    }


    .hero-logo {
        width: 45%;
    }


    .hero-logo img {
        transform: scale(1.05);
    }


    .grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .stats {
        grid-template-columns:
            repeat(3, 1fr);
    }
}


/* =========================================================
   MOBILE
   <= 850px
   ========================================================= */

@media (max-width: 850px) {

    /* -------------------------------------
       BODY
    ------------------------------------- */

    body {
        overflow-x: hidden;
    }


    /* -------------------------------------
       CONTAINER
    ------------------------------------- */

    .container {
        width: 94%;

        margin: 15px auto;
    }


    /* -------------------------------------
       NAVBAR
    ------------------------------------- */

    .nav {
        min-height: auto;

        padding: 10px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;
    }


    .brand {
        margin-bottom: 8px;

        justify-content: center;
    }


    .brand img {
        width: 120px;

        max-height: 48px;
    }


    .nav nav {
        width: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        flex-wrap: wrap;

        gap: 7px 10px;

        font-size: 12px;
    }


    .nav nav a {
        white-space: nowrap;
    }


    /* -------------------------------------
       HERO
    ------------------------------------- */

    .hero {
        min-height: 490px;

        padding: 25px 18px;

        border-radius: 18px;
    }


    .hero-content {
        min-height: 440px;

        display: block;

        position: relative;
    }


    /* -------------------------------------
       HERO TEXT
    ------------------------------------- */

    .hero-text {
        width: 100%;

        text-align: center;

        position: relative;

        z-index: 10;
    }


    .hero-text .muted {
        font-size: 11px;

        letter-spacing: 1px;

        line-height: 1.4;
    }


    .hero h1 {
        font-size: 32px;

        line-height: 1.1;

        margin: 10px 0;
    }


    .hero p {
        max-width: 100%;

        margin: 0 auto 18px;

        font-size: 15px;

        line-height: 1.5;
    }


    /* -------------------------------------
       HERO LOGO
    ------------------------------------- */

    .hero-logo {
        position: absolute;

        width: 100%;

        height: 250px;

        left: 0;

        right: 0;

        top: auto;

        bottom: -15px;

        transform: none;

        display: flex;

        align-items: flex-end;

        justify-content: center;

        z-index: 3;
    }


    .hero-logo img {
        width: 100%;

        max-width: 370px;

        height: auto;

        transform: scale(1);

        object-fit: contain;
    }


    /* -------------------------------------
       HERO LIGHT
    ------------------------------------- */

    .hero:before {
        width: 350px;

        height: 350px;

        right: -100px;

        top: 100px;
    }


    .hero:after {
        width: 350px;

        height: 350px;

        right: -150px;

        bottom: -220px;
    }


    /* -------------------------------------
       STATS
    ------------------------------------- */

    .stats {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;

        margin-top: 15px;
    }


    .stat {
        padding: 14px 8px;

        font-size: 13px;
    }


    .stat b {
        font-size: 22px;

        margin-bottom: 4px;
    }


    /* -------------------------------------
       GRID
    ------------------------------------- */

    .grid {
        grid-template-columns: 1fr;

        gap: 14px;

        margin-top: 15px;
    }


    /* -------------------------------------
       DOWNLOAD
    ------------------------------------- */

    .download {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    /* -------------------------------------
       CARD
    ------------------------------------- */

    .card {
        padding: 15px;

        border-radius: 14px;
    }


    /* -------------------------------------
       TABLE
    ------------------------------------- */

    .table {
        font-size: 14px;
    }


    .table th,
    .table td {
        padding: 9px 6px;
    }


    /* -------------------------------------
       FOOTER
    ------------------------------------- */

    footer {
        margin-top: 35px;

        padding: 25px 15px;
    }
}


/* =========================================================
   ĐIỆN THOẠI NHỎ
   <= 480px
   ========================================================= */

@media (max-width: 480px) {

    /* -------------------------------------
       CONTAINER
    ------------------------------------- */

    .container {
        width: 94%;

        margin-top: 12px;
    }


    /* -------------------------------------
       NAVBAR
    ------------------------------------- */

    .nav {
        padding: 9px 6px;
    }


    .brand img {
        width: 110px;

        max-height: 45px;
    }


    .nav nav {
        gap: 6px 8px;

        font-size: 11px;
    }


    /* -------------------------------------
       HERO
    ------------------------------------- */

    .hero {
        min-height: 465px;

        padding: 22px 14px;

        border-radius: 16px;
    }


    .hero-content {
        min-height: 420px;
    }


    /* -------------------------------------
       TEXT
    ------------------------------------- */

    .hero-text .muted {
        font-size: 10px;

        letter-spacing: .8px;
    }


    .hero h1 {
        font-size: 28px;

        margin: 9px 0;
    }


    .hero p {
        font-size: 14px;

        line-height: 1.45;

        margin-bottom: 15px;
    }


    /* -------------------------------------
       BUTTON
    ------------------------------------- */

    .btn {
        padding: 11px 16px;

        font-size: 14px;
    }


    /* -------------------------------------
       LOGO
    ------------------------------------- */

    .hero-logo {
        height: 225px;

        bottom: -10px;
    }


    .hero-logo img {
        width: 100%;

        max-width: 330px;

        transform: scale(1);
    }


    /* -------------------------------------
       STATS
    ------------------------------------- */

    .stats {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;
    }


    .stat {
        padding: 12px 5px;

        font-size: 12px;
    }


    .stat b {
        font-size: 20px;
    }


    /* -------------------------------------
       CARD
    ------------------------------------- */

    .card {
        padding: 13px;
    }


    .card h2 {
        font-size: 20px;
    }


    /* -------------------------------------
       TABLE
    ------------------------------------- */

    .table {
        font-size: 13px;
    }


    .table th,
    .table td {
        padding: 8px 5px;
    }


    /* -------------------------------------
       FOOTER
    ------------------------------------- */

    footer {
        font-size: 13px;

        padding: 22px 10px;
    }


    footer img {
        width: 115px;
    }
}


/* =========================================================
   SIÊU NHỎ
   <= 360px
   ========================================================= */

@media (max-width: 360px) {

    .brand img {
        width: 100px;
    }


    .nav nav {
        font-size: 10px;

        gap: 5px 7px;
    }


    .hero {
        min-height: 450px;

        padding: 20px 12px;
    }


    .hero h1 {
        font-size: 25px;
    }


    .hero p {
        font-size: 13px;
    }


    .hero-logo {
        height: 205px;
    }


    .hero-logo img {
        max-width: 300px;
    }


    .btn {
        padding: 10px 13px;

        font-size: 13px;
    }


    .stat {
        font-size: 11px;
    }
}
/* =========================================================
   FORUM - BÀI VIẾT CÓ ICON
   ========================================================= */

.forum-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.forum-header h1 {
    margin: 0;
}


.forum-header p {
    margin: 5px 0 0;
}


/* Danh sách */

.forum-list {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


/* Bài viết */

.forum-post {
    background: #ffffff;

    border: 2px solid #dce5ef;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0,0,0,.06);

    transition: .2s ease;
}


.forum-post:hover {
    transform: translateY(-2px);

    border-color: #b9d0e8;

    box-shadow:
        0 10px 30px rgba(0,0,0,.10);
}


.forum-post-link {
    display: block;

    padding: 35px 45px;

    color: #122b48;
}


.forum-post-link:hover {
    color: #122b48;
}


/* Icon */

.forum-post-icon {
    width: 125px;

    height: 125px;

    border-radius: 18px;

    background: #edf5ff;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 25px;

    overflow: hidden;
}


.forum-post-icon img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* Badge */

.forum-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 15px;

    border-radius: 30px;

    background: #edf5ff;

    color: #2868d9;

    font-size: 16px;

    font-weight: 800;

    margin-bottom: 10px;
}


/* Tiêu đề */

.forum-post-content h2 {
    margin: 0 0 12px;

    color: #122b48;

    font-size: 30px;

    line-height: 1.25;
}


/* Tác giả */

.forum-author {
    color: #71829a;

    font-size: 18px;
}


.forum-author strong {
    color: #2868d9;
}


/* Nội dung ngắn */

.forum-post-content p {
    margin: 10px 0 0;

    color: #66778d;

    font-size: 17px;

    line-height: 1.5;
}


/* =========================================================
   CHỌN ICON KHI ĐĂNG BÀI
   ========================================================= */

.forum-icon-picker {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;

    margin: 10px 0 20px;
}


.forum-icon-option {
    cursor: pointer;
}


.forum-icon-option input {
    display: none;
}


.forum-icon-box {
    display: flex;

    align-items: center;

    justify-content: center;

    aspect-ratio: 1 / 1;

    background: #edf5ff;

    border: 3px solid transparent;

    border-radius: 15px;

    overflow: hidden;

    transition: .2s ease;
}


.forum-icon-box img {
    width: 100%;

    height: 100%;

    object-fit: contain;
}


.forum-icon-option:hover .forum-icon-box {
    transform: translateY(-3px);

    border-color: #80b7f5;
}


.forum-icon-option input:checked + .forum-icon-box {
    border-color: #2874e8;

    background: #dcecff;

    box-shadow:
        0 0 0 3px #2874e822;
}


/* =========================================================
   FORM ĐĂNG BÀI
   ========================================================= */

.forum-create label {
    display: block;

    margin-top: 10px;

    font-weight: 700;

    color: #bcd2e8;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .forum-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }


    .forum-header .btn {
        width: 100%;

        text-align: center;
    }


    .forum-post {
        border-radius: 18px;
    }


    .forum-post-link {
        padding: 22px 18px;
    }


    .forum-post-icon {
        width: 100px;

        height: 100px;

        margin-bottom: 18px;

        border-radius: 15px;
    }


    .forum-badge {
        font-size: 13px;

        padding: 7px 12px;

        max-width: 100%;
    }


    .forum-post-content h2 {
        font-size: 22px;

        line-height: 1.3;
    }


    .forum-author {
        font-size: 14px;
    }


    .forum-post-content p {
        font-size: 14px;
    }


    .forum-icon-picker {
        grid-template-columns:
            repeat(4, 1fr);

        gap: 8px;
    }
}


/* =========================================================
   MOBILE NHỎ
   ========================================================= */

@media (max-width: 480px) {

    .forum-post-link {
        padding: 18px 15px;
    }


    .forum-post-icon {
        width: 85px;

        height: 85px;

        margin-bottom: 15px;
    }


    .forum-post-content h2 {
        font-size: 19px;
    }


    .forum-badge {
        font-size: 12px;

        padding: 6px 10px;
    }


    .forum-author {
        font-size: 13px;
    }


    .forum-post-content p {
        font-size: 13px;
    }


    .forum-icon-picker {
        grid-template-columns:
            repeat(4, 1fr);
    }
}
/* ICON BÀI VIẾT TRANG CHỦ */
.home-topic {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.home-topic-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    background: #edf5ff;
    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.home-topic-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-topic-info {
    flex: 1;
    min-width: 0;
}

.home-topic-info a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-topic-info b {
    font-size: 15px;
}

.home-topic-info .muted {
    margin-top: 3px;
    font-size: 12px;
}


/* ĐIỆN THOẠI */
@media (max-width: 480px) {

    .home-topic {
        gap: 9px;
        padding: 8px 0;
    }

    .home-topic-icon {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .home-topic-info b {
        font-size: 14px;
    }

    .home-topic-info .muted {
        font-size: 11px;
    }
}
/* ================================
   ZALO + FANPAGE
   ================================ */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 110px;
    padding: 10px 16px;

    border-radius: 10px;

    color: #fff !important;
    font-weight: 700;

    transition: .2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.social-btn.zalo {
    background: #1688ff;
}

.social-btn.facebook {
    background: #1877f2;
}


/* Mobile */

@media (max-width: 480px) {

    .social-links {
        gap: 8px;
        margin: 15px 0;
    }

    .social-btn {
        min-width: 95px;
        padding: 9px 13px;
        font-size: 14px;
    }

}