* FONT CHUNG */
body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

/* HEADER */
header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2e8b57;
    color: white;
    padding: 10px 30px;
}

header h1{
    font-size: 30px;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* LOGO + HÌNH */
.logo img,
.flower-deco img{
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

/* NAVBAR */
.navbar{
    background: #1f6b45;
}

.main-menu{
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li{
    margin: 0;
}

.main-menu a{
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 17px;
}

.main-menu a:hover,
.main-menu .active{
    background: #14532d;
}


/******CONTAINER CHÍNH******/

/* LAYOUT */
.container{
    display: flex;
    gap: 20px;
    padding: 20px;
}

/* SIDEBAR */
.sidebar-left,
.sidebar-right{
    width: 20%;
    background: white;
    padding: 15px;
    border-radius: 10px;
}

/* MENU DỌC */
.vertical-menu{
    list-style: none;
    padding: 0;
    margin: 0;
}

.vertical-menu li{
    border-bottom: 1px solid #ddd;
}

.vertical-menu a{
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.vertical-menu a:hover{
    background: #e8f5e9;
    color: #2e8b57;
}

/* CONTENT */
.content{
    width: 60%;
}

/* CARD */
.card{
    width: 100% !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ẢNH CARD */
.card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* NỘI DUNG CARD */
.card-body{
    padding: 15px;
}

.card-title{
    font-size: 22px;
    color: #2e8b57;
}

.card-text{
    font-size: 15px;
    line-height: 1.6;
}

/* BANNER */
.banner-left img{
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
}

/* CONTAINER */
.container{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

/* CONTENT */
.content{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* CARD */
.card{
    width: 85%;
    max-width: 850px !important;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* HOVER */
.card:hover{
    transform: translateY(-5px);
}

/* ROW */
.card .row{
    display: flex;
    align-items: center;
}

/* KHUNG ẢNH */
.col-md-4{
    height: 250px;
    overflow: hidden;
}

/* ẢNH */
.card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* NỘI DUNG */
.card-body{
    padding: 20px;
}

.card-title{
    font-size: 24px;
    color: #2e8b57;
    margin-bottom: 10px;
}

.card-text{
    font-size: 15px;
    line-height: 1.6;
}
/* NAVBAR STICKY */
.navbar{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1f6b45; 
}

/**************Trang Chủ********************/

/* RESET */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* CONTAINER */
.container{
    width: 95%;
    margin: 20px auto;
    display: flex;
    gap: 20px;
}

/* SIDEBAR */
.sidebar-left,
.sidebar-right{
    width: 20%;
}

/* MENU */
.vertical-menu{
    list-style: none;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.vertical-menu li{
    border-bottom: 1px solid #ddd;
}

.vertical-menu li:last-child{
    border-bottom: none;
}

.vertical-menu a{
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.vertical-menu a:hover{
    background: #4CAF50;
    color: white;
}

.vertical-menu i{
    margin-right: 8px;
}

/* BANNER */
.banner-left img{
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
}
.main-banner {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.carousel {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.carousel-inner {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
}

.carousel-item {
    position: relative !important;
    display: none !important;
    float: left !important;
    width: 100% !important;
    margin-right: -100% !important;
    backface-visibility: hidden !important;
    transition: opacity 0.6s ease-in-out !important; 
}

.carousel-item.active {
    display: block !important;
    opacity: 1 !important;
}

.carousel-item img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    display: none !important;
}
@keyframes slideFade {
    0%, 28% {
        opacity: 1;
        z-index: 1;
    }
    33%, 95% {
        opacity: 0;
        z-index: 0;
    }
    100% {
        opacity: 1;
    }
}

.carousel-inner {
    position: relative !important;
    display: block !important;
    height: 400px !important;
}

.carousel-item {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    opacity: 0;
    animation: slideFade 10.5s infinite ease-in-out;
}

.carousel-item:nth-child(1) {
    animation-delay: 0s;
}

.carousel-item:nth-child(2) {
    animation-delay: 3.5s;
}

.carousel-item:nth-child(3) {
    animation-delay: 7s;
}

/* PRODUCT SECTION */
.product-section{
    width: 60%;
}

.section-title{
    background: #4CAF50;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

/* PRODUCT GRID */
.product-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* PRODUCT CARD */
.product{
    width: 220px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
}

.product:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* PRODUCT IMAGE */
.product img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* PRODUCT NAME */
.p-name{
    font-size: 18px;
    font-weight: bold;
    padding: 10px 5px 5px;
    color: #333;
}

/* PRODUCT PRICE */
.p-price{
    color: #e53935;
    padding-bottom: 15px;
    font-weight: bold;
}

/*******CONTAINER PHỤ*******/
/* RESET */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CONTAINER */
.container{
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 20px;
}

/* SIDEBAR */
.sidebar-left,
.sidebar-right{
    width: 20%;
}

/* MENU */
.vertical-menu{
    list-style: none;
}

.vertical-menu li{
    margin-bottom: 10px;
}

.vertical-menu li a{
    display: block;
    padding: 10px;
    background: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.vertical-menu li a:hover{
    background: #1b5e20;
}

/* BANNER */
.banner-left img{
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
}

/* PRODUCT SECTION */
.product-section{
    width: 60%;
}

.section-title{
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2e7d32;
    text-align: center;
}

/* GRID */
.product-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

/* PRODUCT */
.product{
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    background: #fff;
    transition: 0.3s;
}

.product:hover{
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* HÌNH ẢNH */
.product img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* TÊN */
.p-name{
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* GIÁ */
.p-price{
    color: red;
    margin-top: 5px;
    font-weight: bold;
}

/* ẢNH TOP */
img{
    max-width: 100%;
    display: block;
}







/*****DropDown****/
/* MENU CHA */
.navbar .main-menu li{
    position: relative;
}

/* MENU CON (ẩn ban đầu) */
.dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    border: 1px solid #ddd;
    display: none;
    z-index: 999;
}

/* ITEM MENU CON */
.dropdown-menu li a{
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
}

.dropdown-menu li a:hover{
    background: #4CAF50;
    color: white;
}

/* HOVER HIỆN MENU */
.dropdown:hover .dropdown-menu{
    display: block;
}
/*banner */ 

.main-banner {
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

.carousel {
    width: 100% !important;
}

.carousel-inner {
    width: 100% !important;
    display: block !important;
}

.carousel-item {
    width: 100% !important;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out !important;
}

.carousel-item img {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}
























/*******Đăng Nhập*******/
/* FORM */
.form-box{
    width: 400px;
    margin: 30px auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-box h2{
    text-align: center;
    margin-bottom: 20px;
    color: #4CAF50;
}

.form-box form{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-box input,
.form-box textarea{
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
}

.form-box textarea{
    height: 100px;
    resize: none;
}

.form-box button{
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.form-box button:hover{
    background: #388e3c;
}

  *{
      margin:0;
      padding:0;
      box-sizing:border-box;
      font-family: Arial, sans-serif;
    }

    body{
      background:#f4f4f4;
      padding:30px;
    }

    h1{
      text-align:center;
      margin-bottom:30px;
      color:#222;
    }

    .news-container{
      display:grid;
      grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
      gap:20px;
    }

    .news-card{
      background:#fff;
      border-radius:10px;
      overflow:hidden;
      box-shadow:0 2px 10px rgba(0,0,0,0.1);
      transition:0.3s;
    }

    .news-card:hover{
      transform:translateY(-5px);
    }

    .news-card img{
      width:100%;
      height:200px;
      object-fit:cover;
    }

    .news-content{
      padding:15px;
    }

    .news-title{
      font-size:20px;
      margin-bottom:10px;
      color:#111;
    }

    .news-date{
      color:gray;
      font-size:14px;
      margin-bottom:10px;
    }

    .news-desc{
      color:#555;
      line-height:1.6;
      margin-bottom:15px;
    }

    .btn-read{
      display:inline-block;
      padding:10px 15px;
      background:#007bff;
      color:#fff;
      text-decoration:none;
      border-radius:5px;
    }

    .btn-read:hover{
      background:#0056b3;
    }




    