* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 75px;
}

body.lien-he .main{
    background: white;
    height: auto;
}

.main {
    width: 100%;
}

.main-content{
    flex: 1;
}

.navbar {
    width: 100%;
    height: 75px;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    padding: 0 40px;
}

/* Hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #000;
}

/* Mobile menu default hidden */
.menu {
    display: flex;
}

/* Mobile behavior */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
        height: 70px;
    }

    .icon {
        margin-left: 0;
    }

    .hamburger {
        display: block;
    }

    .menu {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .menu.active {
        display: flex;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .navbar ul li a {
        display: block;
        padding: 15px;
    }
}

/* icon */
.icon {
    width: 220px;
    float: left;
    height: 70px;
    margin-left: 60px;
}

/* company logo */
.logo {
    width: 180px;
    margin-right: 20px;
    height: auto;
    padding-top: 15px;
}

.logo img {
    width: 180px;
    height: auto;
}

.menu{
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.menu-toogle{
    display:none
}
.navbar ul{
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar ul li{
    display: inline-block;
}

.navbar ul li a {
    text-decoration: none;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    padding: 10px 15px;
}

.navbar ul li a:hover{
    color: rgb(255, 145, 0);
    border-bottom: 1px solid rgb(255, 145, 0);

}

.hero-banner {
    position: relative;
    width: 100%;
    height: 15vh;
    background:
        linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url('images/egg.jpg');
    background-size: cover;
    background-position: center;
}

.logo-middle {
    position: absolute;
    left: 50%;
    bottom: -35px;
    transform: translateX(-50%);
    z-index: 30;
}

.logo-middle img{
    width: 70px;
    height: auto;
    border-radius: 46%;
    background: none;
    background-color: white;
    padding: 10px;
    mix-blend-mode: multiply;
    box-shadow: none;
    display: block;
}

@media (max-width: 768px) {
    .main {
        min-height: 22vh;
        padding-top: 70px;
    }

    .logo-middle img {
        width: 52px;
    }

    .logo-middle {
        bottom: -26px;
    }

    .quote-section {
        padding-top: 50px;
    }
}

.quote-section {
    text-align: center;
    padding: 50px;
    padding-top: 60px;
    background: #ffffff;
    font-family: Arial, sans-serif;
    position: relative;
}

.quote-icon {
    font-size: 100px;
    color: rgba(250, 7, 44, 0.5); 
    font-family: serif;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.quote-text {
    font-size: 16px;
    color: #222;
    font-weight: bold;
    max-width: 900px;
    margin: 60px auto 20px auto;
    line-height: 1.6;
}

.quote-text::after{
    content: "";
    display: block;
    width: 70px;
    height: 1.5px;
    background-color: red;
    margin: 8px auto 0;
}

.quote-author {
    font-size: 18px;
    font-style: italic;
    color: #555;
}


@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        align-items: center;
    }

    .menu {
        width: 100%;
        justify-content: center;
    }

    .navbar ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .navbar ul li {
        display: block;
    }
}

.card-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    height: 400px;
    border-radius: 10px;
}

.card {
    position: relative;
    width: 32%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background-color: white; /* Ensure a clean background */
}

/* Upper section - Image */
.card .image-section {
    width: 100%;
    height: 280px; /* Adjust height */
    background-size: cover;
    background-position: center;
}

/* Lower section - Content */
.card .content-section {
    padding: 15px;
    color: white;
    position: relative;
    text-align: center;
}

.card .content-section h2 {
    font-size: 24px;
    font-weight: bold;
}

.card .content-section p {
    font-size: 16px;
}

/* Add different background colors */
.feed .content-section {
    background-color: #F4A825;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.farm .content-section {
    background-color: #E86F26;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.food .content-section {
    background-color: #D63031;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Product images - Positioned slightly outside the content box */
.card .products {
    position: absolute;
    bottom: -68px; /* Adjust overlap */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    border-radius: 5px;
}

/*------ main page -----*/
.background-section{
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 30px;
    text-align: center;
}

.background-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-section h3{
    color: dimgrey;
    font-size: 30px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.background-section h3::after{
    content: "";
    display: block;
    width: 70px;
    height: 1.5px;
    background-color: red;
    margin: 7px auto 0;
}

.background-section p{
    max-width: 800px;
    padding: 10px;
    text-align: justify;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    margin: 0 auto;
}

.core-values {
    max-width: 1200px;
    margin: 60px auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.core-item {
    flex: 1;
    text-align: left;
}

.core-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.core-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.core-line {
    display: block;
    width: 50px;
    height: 3px;
    background: #f2a900; /* gold line */
    margin: 10px 0 16px 0;
}

.core-item p {
    margin: 0;
    padding-left: 15px; 
    border-left: 2px solid rgb(255, 131, 131);
}
/*------- Giới thiệu page -------*/
.founder-section{
    text-align: justify;
    padding: 50px;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 60px;
}

.menu-gioithieu{
    display: flex;
    justify-content: center;
    background-color: #fff;
    padding: 20px 0;
    margin-top: 50px;
}

.menu-gioithieu ul{
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.menu-gioithieu ul li{
    position: relative;
}

.menu-gioithieu ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #888;
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}

.menu-gioithieu ul li.active a{
    color: red;
    font-weight: bold;
    border: 1.5px solid red;
    padding: 8px 15px;
    border-radius: 20px;
}

.menu ul li.active::after{
    content:"";
    width: 100%;
    height: 1.5px;
    background: red;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.menu-gioithieu ul li a:hover{
    color: red;
}

.header-gioithieu{
    text-align: center;
    margin: 40px 0;
}

.header-gioithieu h2{
    display: inline-block;
    font-size: 26px;
    font-weight: bold;
}

.header-gioithieu::after{
    content:"";
    display: block;
    width: 70px;
    height: 1.5px;
    background-color: red;
    margin: 7px auto 0;
}

.founder-content{
    width: 48%;
    margin: 0;
    padding: 40px;
    text-align: justify;    
    position: relative;
}

.founder-content h3{
    font-size: 23px;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .founder-section {
        flex-direction: column;
        padding: 20px;
    }

    .founder-content {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .history-images {
        width: 100%;
        margin-top: 20px;
    }

    .history-images img {
        width: 100%;
        height: auto;
    }
}

.history-images{
    width: 52%;
    display: flex;
    justify-content: center;
}

.history-images img{
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.lich-su-phat-trien{
    text-align: center;
    margin-top: 40px;
    background-color: #f1f9ff;
    padding: 80px 0;
    width: 100%;
    position: relative;
    clear: both;
    margin: 60px 0;
}

.lich-su-phat-trien h2{
    display: inline-block;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}

.lich-su-phat-trien h2::after{
    content:"";
    display: block;
    width: 70px;
    height: 1.5px;
    background-color: red;
    margin: 7px auto 0;
}

.lich-su-phat-trien-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lich-su-phat-trien-img img {
    display: block;
    max-width: 1100px;
    width: 90%;
    height: auto;
}

@media (max-width: 768px) {
    .lich-su-phat-trien {
        padding: 40px 0;
    }

    .lich-su-phat-trien-img img {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .lich-su-phat-trien img {
        width: 100%;
    }
}



/*------- Quy mô sản xuất page ------*/
.production-scale{
    text-align: center;
    margin-top: 20px;
}

.production-scale h2{
    display: inline-block;
    font-size: 26px;
    font-weight: bold;
}

.production-scale h2::after{
    content:"";
    display: block;
    width: 70px;
    height: 1.5px;
    background-color: red;
    margin: 7px auto 0;
    margin-bottom: 20px;
}

.production-scale-menu{
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.production-scale-menu li{
    display: flex;
    align-items: center;
}

.container2{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 30px;
    margin-top: 20px;
}

.card2{
    background-color: white;
    width: 350px;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.card-header {
    width: 100%;
    height: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

.red {
    background-color: red;
}

.blue {
    background-color: #2a6f92;
}

.card2 h2 {
    color: #23527c;
    font-size: 18px;
    margin: 20px 0;
    text-transform: uppercase;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 900;
    text-shadow: 0.05px 0.05px 0 black;
}

.card2 img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.card2 p {
    font-size: 14px;
    color: #444;
    margin-top: 10px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .container2 {
        flex-direction: column;
        align-items: center;
    }

    .card2 {
        width: 90%;
    }
}

/*------- Đối tác page ------*/
.partner{
    text-align: center;
    margin-top: 20px;
}

.partner h2{
    display: inline-block;
    font-size: 26px;
    font-weight: bold;
}

.partner h2::after{
    content:"";
    display: block;
    width: 70px;
    height: 1.5px;
    background-color: red;
    margin: 7px auto 0;
}

.logo-doi-tac{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 20px;
}

.logo-doi-tac img{
    width: 150px;
    height: 130px;
    object-fit: contain;
}

.logo-doi-tac2{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.logo-doi-tac2 img{
    width: 150px;
    height: 130px;
    object-fit: contain;
}

/*------- Sản phẩm page ------*/
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: -30px;
    position: relative;
}

.container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 290px;
    width: 2px;
    height: 920px;
    background-color: grey;
}

.sidebar {
    width: 250px;
    padding: 20px;
    border-radius: 8px;
    padding-right: 5px;
    margin-right: 5px;
    position: relative;
}

.sidebar h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li { 
    margin: 20px 20px; /*y x margin*/
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* Main content */
.content {
    flex-grow: 1;
    padding: 20px;
    text-align: center;
    position: relative;
}

.category {
    width: 100%;
    margin-bottom: 50px;
    text-align: center;
}

.category h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    border-bottom: 2px solid grey;
    padding-bottom: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

/* Product list */ 
.product-container{
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    margin-bottom: -10px;
}

.product-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-list a{
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: -20px 0;
}

/* Product item */
.product-item{
    width: 200px;
    text-align: center;
    display: block;
    margin-top: -10px;
}

.product-item img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    transform: scale(1.05); /*each product will be zoom in a little when mouse pointed to */
    display: block;
    margin: 20px auto;

}

.product-item p{
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color:grey;
    padding-bottom: 0px;
    margin-top: -10px;
    margin-bottom: -10px;
}

@media screen and (max-width: 992px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .sidebar, .content {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .sidebar ul{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
    }

    .sidebar ul li{
        margin: 10px 15px;
    }

    .container::after{
        display: none;
    }
}

/*------- contact us page -------*/
.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
    margin-bottom: -40px;
}

.location iframe{
    width: 100%;
}

/* Footer Section */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    flex-wrap: wrap;
    background: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    clear: both;
    border-top: 1px solid black;
}

.footer-left {
    flex: 1;
    background: #f8f9fa;
    padding: 15px 30px;
    color: black;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid black;
    font-family: Arial, Helvetica, sans-serif;
    white-space: normal;
}


.footer h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color:dimgrey;
    letter-spacing: 0.8px;
    margin: 0;
}

.footer p, .footer a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    line-height: 1.6;
    margin: 5px 0;
    display: inline-block;
}

.footer a:hover {
    color: red;
}

.footer-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-icons i {
    font-size: 22px;
    color: #000;
    cursor: pointer;
}

.footer-icons i:hover {
    color: red;
}

@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column;
        padding: 15px;
    }

    .footer-left {
        width: 100%;
        text-align: center;
        align-items: center;
        border: none;
    }

    .footer-left p,
    .footer-left a{
        display: block;
        margin-bottom: 5px;
    }

    .footer-icons {
        justify-content: center;
        margin-top: 10px;
    }
}

.factories{
    background: white;
    padding: 30px;
    text-align: center;
}

.factories h3{
    color: dimgrey;
    font-size: 18px;
    font-weight: bold;

}

.factory{
    background: white;
    width: 45%;
    padding: 30px;
}


