body{
    font-family: Arial, sans-serif;
    margin:0;
    background:#fff5f5;
}

header{
    background:#c62828;
    color:white;
    padding:20px;
    text-align:center;
}

nav{
    background:#2e7d32;
    padding:10px;
    text-align:center;
}

nav a{
    color:white;
    margin:0 15px;
    text-decoration:none;
    font-weight:bold;
}

nav a:hover{
    color:yellow;
}

.section{
    padding:40px;
}

h2{
    color:#c62828;
}

.footer{
    background:#c62828;
    color:white;
    text-align:center;
    padding:15px;
}
.row{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 40px;
}

.reverse{
    flex-direction: row-reverse;
}

.col-img img{
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.col-text{
    flex:1;
}
.section{
    padding:40px;
    max-width: 1100px;
    margin:40px auto;
}
.box{
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.box{
    margin-bottom:30px;
}
.back-btn{
    display:block;
    width:fit-content;
    margin:30px auto;   /* cái này giúp nó ra giữa */
    text-decoration:none;
    background:#c62828;
    color:white;
    padding:10px 20px;
    border-radius:6px;
}

.content-img{
    width:100%;
    max-width:600px;
    display:block;
    margin:15px auto;
    border-radius:10px;
}
.row{
    display:flex;
    align-items:center;
    gap:30px;
    margin:40px 0;
}

.row.reverse{
    flex-direction:row-reverse;
}

.col-img img{
    width:100%;
    max-width:350px;
    border-radius:10px;
}

.col-text{
    flex:1;
}
@media(max-width:768px){
    .row{
        flex-direction:column;
        text-align:center;
    }

    .row.reverse{
        flex-direction:column;
    }
}
.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.card {
    width: 220px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.card {
    background: white;
    width: 220px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background: #c62828;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro h2 {
    color: #c62828;
    margin-bottom: 10px;
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}
.title {
    text-align: center;
    color: #c62828;
    margin: 40px 0 30px 0;
    font-size: 28px;
    font-weight: bold;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: url("../images/nen.png") no-repeat center center;
    background-size: cover;

    opacity: 1;   /* chỉnh độ chìm ở đây */
    z-index: -1;     /* nằm phía sau toàn bộ nội dung */
}

.index-box {
    position: relative;
    overflow: hidden;
}

.index-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: url("../images/mai.webp") no-repeat center center;
    background-size: cover;

    opacity: 0.1;   /* chỉnh độ chìm ở đây */
    z-index: 0;
}

.index-box * {
    position: relative;
    z-index: 1;
}

/* Vùng chứa hoa */
.falling-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Hoa mai */
.flower {
    position: absolute;
    top: -50px;
    width: 30px;
    height: 30px;
    background: url("../images/hoamai-removebg-preview.png") no-repeat center;
    background-size: contain;
    animation: fall linear forwards;
}

/* Animation rơi */
@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}