﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI",sans-serif;
    color: #334155;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(249,168,212,.35), transparent 30%), radial-gradient(circle at top right, rgba(125,211,252,.30), transparent 28%), radial-gradient(circle at bottom, rgba(196,181,253,.28), transparent 35%), linear-gradient(135deg, #fff9fc 0%, #f8fbff 45%, #fdfdff 100%);
    overflow-x: hidden;
}

    /* =========================
   NỀN MỜ NHIỀU LỚP
========================= */

    body::before,
    body::after {
        content: "";
        position: fixed;
        border-radius: 50%;
        filter: blur(70px);
        z-index: -1;
        pointer-events: none;
    }

    body::before {
        width: 400px;
        height: 400px;
        top: -120px;
        left: -100px;
        background: rgba(249,168,212,.35);
    }

    body::after {
        width: 350px;
        height: 350px;
        right: -80px;
        bottom: -100px;
        background: rgba(125,211,252,.30);
    }

/* =========================
   HEADER
========================= */

.header {
    width: min(1200px,95%);
    margin: 22px auto;
    padding: 18px 25px;
    border-radius: 30px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 15px 40px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 12px;
    z-index: 999;
}

/* =========================
   BRAND
========================= */

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #7dd3fc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(168,85,247,.25);
}

    .logo::after {
        content: "";
        position: absolute;
        width: 35px;
        height: 140px;
        background: rgba(255,255,255,.5);
        transform: rotate(25deg);
        left: -80px;
        animation: shine 4s linear infinite;
    }

@keyframes shine {
    0% {
        left: -80px;
    }

    100% {
        left: 140px;
    }
}

.brand h1 {
    font-size: 26px;
    color: #1e293b;
}

.brand p {
    margin-top: 4px;
    color: #64748b;
    font-weight: 600;
}

/* =========================
   MENU
========================= */

.menu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .menu a {
        text-decoration: none;
        padding: 12px 20px;
        border-radius: 999px;
        color: #475569;
        font-weight: 700;
        background: rgba(255,255,255,.85);
        border: 1px solid rgba(226,232,240,.9);
        transition: .28s;
    }

        .menu a:hover {
            color: white;
            background: linear-gradient(135deg, #f9a8d4, #a78bfa, #7dd3fc);
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(168,85,247,.25);
        }

/* =========================
   CONTAINER
========================= */

.container {
    width: min(1200px,95%);
    margin: auto;
}

/* =========================
   CARD
========================= */

.card {
    margin-top: 28px;
    padding: 35px;
    border-radius: 35px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 45px rgba(15,23,42,.06);
    position: relative;
    overflow: hidden;
}

    .card::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(249,168,212,.18), rgba(125,211,252,.18));
        top: -120px;
        right: -120px;
    }

/* =========================
   TITLE
========================= */

.title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
   INPUT
========================= */

.input {
    width: 100%;
    padding: 15px 18px;
    margin-top: 8px;
    margin-bottom: 20px;
    border-radius: 18px;
    border: 1px solid #dbe4ef;
    background: rgba(255,255,255,.92);
    outline: none;
    font-size: 15px;
    transition: .25s;
}

    .input:focus {
        border-color: #c084fc;
        box-shadow: 0 0 0 5px rgba(192,132,252,.15);
        transform: translateY(-1px);
    }

/* =========================
   BUTTON
========================= */

.btn {
    border: none;
    cursor: pointer;
    padding: 13px 24px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    font-size: 15px;
    background: linear-gradient(135deg, #f9a8d4, #a78bfa, #7dd3fc);
    box-shadow: 0 14px 30px rgba(168,85,247,.22);
    transition: .28s;
    position: relative;
    overflow: hidden;
}

    .btn::after {
        content: "";
        position: absolute;
        top: -40%;
        left: -60px;
        width: 35px;
        height: 180%;
        background: rgba(255,255,255,.5);
        transform: rotate(25deg);
        transition: .6s;
    }

    .btn:hover::after {
        left: 140%;
    }

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 40px rgba(168,85,247,.28);
    }

/* =========================
   GRIDVIEW
========================= */

.grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

    .grid th {
        padding: 15px;
        color: white;
        font-size: 15px;
        background: linear-gradient(135deg, #f9a8d4, #a78bfa, #7dd3fc);
    }

        .grid th:first-child {
            border-radius: 18px 0 0 18px;
        }

        .grid th:last-child {
            border-radius: 0 18px 18px 0;
        }

    .grid td {
        padding: 15px;
        background: white;
        border-top: 1px solid #eef2f7;
        border-bottom: 1px solid #eef2f7;
    }

        .grid td:first-child {
            border-left: 1px solid #eef2f7;
            border-radius: 18px 0 0 18px;
        }

        .grid td:last-child {
            border-right: 1px solid #eef2f7;
            border-radius: 0 18px 18px 0;
        }

    .grid tr {
        transition: .25s;
    }

        .grid tr:hover td {
            background: #fcfcff;
            transform: scale(1.003);
        }

/* =========================
   NEWS
========================= */

.news-title {
    margin: 35px 0 25px;
    font-size: 38px;
    font-weight: 900;
    color: #1e293b;
}

.news-card {
    margin-bottom: 28px;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 18px 45px rgba(15,23,42,.06);
    transition: .3s;
}

    .news-card:hover {
        transform: translateY(-6px);
    }

.news-content {
    padding: 35px;
}

.news-date {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    margin-bottom: 18px;
}

.news-content h2 {
    margin-bottom: 14px;
    color: #1e293b;
}

.news-content p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* =========================
   READ BUTTON
========================= */

.read-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    transition: .28s;
}

    .read-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(99,102,241,.25);
    }

/* =========================
   HERO
========================= */

.hero {
    margin-bottom: 45px;
}

.hero-box {
    padding: 70px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(219,234,254,.9), rgba(237,233,254,.92), rgba(252,231,243,.92));
    box-shadow: 0 25px 60px rgba(15,23,42,.07);
    position: relative;
    overflow: hidden;
}

    .hero-box::before {
        content: "";
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: rgba(255,255,255,.35);
        top: -180px;
        right: -120px;
    }

    .hero-box h1 {
        font-size: 58px;
        margin-bottom: 20px;
        color: #1e293b;
    }

    .hero-box p {
        max-width: 700px;
        font-size: 18px;
        line-height: 1.9;
        color: #475569;
    }

/* =========================
   FOOTER
========================= */

.footer {
    width: min(1200px,95%);
    margin: 35px auto;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(15px);
    text-align: center;
    color: #64748b;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

/* =========================
   MOBILE
========================= */

@media(max-width:900px) {

    .header {
        flex-direction: column;
        gap: 20px;
    }

    .hero-box {
        padding: 40px;
    }

        .hero-box h1 {
            font-size: 42px;
        }

    .title {
        font-size: 38px;
    }
}

@media(max-width:600px) {

    .menu {
        width: 100%;
    }

        .menu a {
            width: 100%;
            text-align: center;
        }

    .card {
        padding: 22px;
        border-radius: 25px;
    }

    .hero-box {
        padding: 28px;
        border-radius: 28px;
    }

        .hero-box h1 {
            font-size: 34px;
        }

    .news-content {
        padding: 25px;
    }

    .btn {
        width: 100%;
    }
}
