body {
    font-family: Arial, sans-serif;
    background-color: #DAD8CE;
    margin: 0;
    width: 100%;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    background-color: #DAD8CE;
    /* #DAD8CE */
    position: relative;
}

.navibar {
    position: fixed;
    z-index: 25;
    width: 100%;
    height: 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 2%;
    box-sizing: border-box;
    transition: background-color 0.3s;
}

.logo {
    width: 100px;
    object-fit: contain;
    border-radius: 0 0 50px 50px;
    grid-column: 1;
    justify-self: start;
    margin-top: -20px;
    margin-left: 15%;
}

.menu {
    grid-column: 2;
    display: flex;
    gap: 10vw;
    list-style: none;
    margin: 0;
    padding: 0 30px;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 50px;
    height: 50px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu-title {
    text-decoration: none;
    color: #DAD8CE;
    font-size: 20px;
    transition: all 0.3s ease;
}

li a:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background-color: #3B5B41;
    transform: scale(1.4);
    border-radius: 30px;
    padding: 5px 20px 5px 20px;
}

.widget {
    display: flex;
    gap: 20px;
    grid-column: 3;
    justify-self: end;
    align-items: center;
    margin-right: 15%;
    padding: 0 20px 0 20px;
    background-color: #DAD8CE;
    height: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.widget svg {
    width: 24px !important;
    height: 24px !important;
}

.widget a:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background-color: #3B5B41;
    transform: scale(1.2);
    border-radius: 30px;
    padding: 5px 10px 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.widget a:hover svg path,
.widget a:hover svg circle,
.widget a:hover svg line {
    stroke: white !important;
}

.icon-one,
.icon-two,
.icon-three {
    width: 35px;
    height: auto;
}

.icon-one path {
    stroke: #3B5B41;
    stroke-width: 5px;
    fill: none;
}

.icon-two path,
.icon-three path {
    stroke: #3B5B41;
}


.floating-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-icon svg {
    width: 30px !important;
    height: 30px !important;
}

.sidebar-icon svg path {
    fill: #3B5B41;
    stroke: none;
}

.sidebar-icon:hover {
    background-color: #3B5B41;
    transform: scale(1.4);
}

.sidebar-icon:hover svg path {
    fill: white;
}

.header {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1;
}

.header-img {
    width: 100%;
    height: 75%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.6);
    transition: transform 0.5s ease;
}

.header-img:hover img {
    transform: scale(1);
}

.title {
    width: 100%;
    height: 25%;
    background-color: #DAD8CE;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.title p {
    position: relative;
    width: 65%;
    margin: 0;
    top: auto;
    font-size: clamp(20px, 3vw, 32px);
    letter-spacing: 4px;
    text-align: center;
    line-height: 1.4;
    color: #3B5B41;
    font-weight: bold;
    font-family: 'Helvetica', cursive;
}

.article{
    width: 65%;
    margin: 0 auto;
    display: flex;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica',cursive;
    color: #3B5B41;
}
.article p{
    width: 100%;
    z-index: 3;
    text-align: left;
    font-family: 'Helvetica',cursive;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 2;
    font-weight: 200;
}
.article h2{
    text-align: center;
    letter-spacing:2px;
    line-height: 1.4;
    padding: 4%;
    font-family: 'Helvetica',cursive;
}
.content-one{
    letter-spacing: 2px;
    margin-top: 0.5%;
    font-weight: 200;
}
.content-one li{
    padding-bottom: 2%;
}

.pic-box{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height:500px;
    padding-bottom: -5%;
}

.box-one, .box-two, .box-three {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center; /* Căn giữa ảnh */
    background-repeat: no-repeat;
}

.box-one{
    background-image: url('../img/box1.png');
}
.box-two{
    background-image: url('../img/box2.png');
}
.box-three{
    background-image: url('../img/box3.png');
}


.article h3{
    font-family: 'Helvetica', cursive;
    letter-spacing: 2px;
}

.cat-box{
    width: 100%;
    display: grid;
    grid-template-columns: 4fr 6fr; 
    grid-template-rows: 1fr 1fr;
    height: 1000px;
    gap: 20px;
}
.box{
    position: relative;
    overflow: hidden;
}
.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.box:hover img {
    transform: scale(1.2);
}

.item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.item-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;   
}

.item-3 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.footer {
    width: 100%;
    height: auto;
    background-color: #3B5B41;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.footer-wrapper {
    width: 65%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 0;
}

.f-content {
    width: 45%;
    color: #DAD8CE;
    font-family: 'Helvetica', cursive;
}

.f-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 2px;
}

.hashtag {
    display: flex;
    margin-top: 5%;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 1px;
}

.f-img {
    width: 25%;
    display: flex;
    justify-content: flex-end;
}

.f-img img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
}

@media screen and (max-width: 1024px) {
    .navibar {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* Để logo "treo" từ trên xuống */
        padding: 0 20px;
        background-color: transparent; /* QUAN TRỌNG: Làm thanh bar trong suốt */
        height: auto;
        padding-top: 0;
    }

    /* 1. LOGO: Hình cái tag treo xuống */
    .logo {
        position: static;
        width: 80px; /* Kích thước logo */
        background-color: #DAD8CE; /* Nền màu be */
        border-radius: 0 0 40px 40px; /* Bo tròn 2 góc dưới */
        padding: 10px 5px 15px 5px; /* Căn chỉnh ảnh bên trong */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Bóng đổ nhẹ cho nổi */
        margin: 0;
        display: flex;
        justify-content: center;
        z-index: 30;
    }

    /* 2. MENU GIỮA: Nền đen mờ */
    .menu {
        display: flex;
        gap: 15px;
        background-color: rgba(0, 0, 0, 0.5); /* Nền đen mờ giống ảnh */
        border-radius: 30px; /* Bo tròn viên thuốc */
        padding: 8px 20px;
        margin-top: 25px; /* Đẩy xuống ngang tầm mắt */
        border: none;
        box-shadow: none;
        height: auto;
        white-space: nowrap;
    }

    .menu-title {
        font-size: 14px;
        color: #DAD8CE; /* Chữ màu sáng nổi trên nền đen */
        font-weight: bold;
        text-decoration: none;
    }

    /* 3. WIDGET PHẢI: Nền be giống logo */
    .widget {
        position: static;
        display: flex;
        align-items: center;
        gap: 15px;
        background-color: #DAD8CE; /* Nền màu be */
        border-radius: 30px; /* Bo tròn viên thuốc */
        padding: 8px 20px;
        margin: 0;
        margin-top: 25px; /* Đẩy xuống ngang hàng với menu */
        height: auto;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .widget svg, 
    .icon-one, .icon-two, .icon-three {
        width: 20px;
        height: 20px;
        stroke: #3B5B41; 
    }

    .title p {
        width: 90%;
        font-size: 24px;
    }

    .article {
        width: 100%;
        padding: 40px 20px;
    }

    .article p,
    .article ul {
        font-size: 16px;
    }

    .pic-box {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 20px;
        margin-bottom: 40px;
    }

    .box-one,
    .box-two,
    .box-three {
        width: 100%;
        height: 300px;
        border-radius: 15px;
    }

    .cat-box {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .item-1,
    .item-2,
    .item-3 {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        height: 400px;
    }

    .footer {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }

    .footer-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }

    .f-content {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .f-img {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .floating-sidebar {
        right: 10px;
        padding: 15px 10px;
        gap: 15px;
        transform: translateY(-50%) scale(0.8);
    }

    .sidebar-icon {
        width: 40px;
        height: 40px;
    }
}