html, body {
    width: 100%;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    font-family: Roboto, sans-serif;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/**
 * Header
 */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    box-sizing: border-box;
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.header-logo-img {
    width: auto;
    height: 50px;
}

.header-button-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 35px;
    color: black;
    text-decoration: none;
    background-color: #FFEA00;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 4px #FFA600;
    animation: pulse 2s infinite;
}

.header-button-content:hover {
    background-color: #FFEA00;
    box-shadow: 0px 0px 10px 4px #FFA600;
}

.header-button-content-text {
    font-size: 16px;
    font-weight: 400;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #FFA600;
    }
    50% {
        box-shadow: 0 0 10px 0 #FFA600;
    }
    100% {
        box-shadow: 0 0 0 0 #FFA600;
    }
}

/**
 * Menu
 */
.menu {
    width: 100%;
    height: 70px;
    background: linear-gradient(90deg, #FFF 0%, #D7F8FF 47.6%, #FFF 100%);
    box-sizing: border-box;
}

.menu-list {
    width: 100%;
    height: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin-left: 50px;
    margin-right: 50px;
}

.menu-item-icon {
    width: auto;
    height: 50px;
}


/**
 * Mobile Menu
 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: bold;
    font-family: Roboto, sans-serif;
}

.mobile-menu-close {
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-list {
    list-style: none;
    padding: 10px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-menu-list li {
    font-weight: 600;
    margin-bottom: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #00A3C6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.mobile-menu-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-list a {
    display: block;
    padding: 10px;
    font-size: 16px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.mobile-menu-list a::after {
    content: '›';
    position: absolute;
    right: 18px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    transition: right 0.2s;
}

.mobile-menu-list a:hover::after {
    right: 14px;
    color: #007bff;
}

/**
 * Banner
 */

.banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
    height: auto; 
}
  
.banner .slides {
    display: flex !important;
    width: 100%;
    animation: slide 9s infinite;
}
  
.banner .slides img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}
  
/* Keyframes cho hiệu ứng trượt ngang */
@keyframes slide {
    0%   { transform: translateX(0%); }
    16.666% { transform: translateX(0%); }   /* giữ ảnh 1 trong 1s */
    33.333% { transform: translateX(-100%); }/* trượt sang ảnh 2 */
    50%     { transform: translateX(-100%); } /* giữ ảnh 2 */
    66.666% { transform: translateX(-200%); }/* trượt sang ảnh 3 */
    83.333% { transform: translateX(-200%); }/* giữ ảnh 3 */
    100%    { transform: translateX(0%); }    /* quay về ảnh đầu */
}
  
/* Nếu muốn hiển thị mượt hơn khi hover dừng lại */
.banner:hover .slides {
    animation-play-state: paused;
}

/**
 * Main action
 */
.main-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-action-button-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 50px;
    color: white;
    text-decoration: none;
    background-color: #00A3C6;
    border-radius: 25px;
    box-shadow: 0px 0px 10px 4px #24D8FF;
    animation: main-action-pulse 2s infinite;
    margin: 0 auto;
}

.main-action-button-content:hover {
    background-color: #00A3C6;
    box-shadow: 0px 0px 10px 4px #24D8FF;
}

.main-action-button-content-text {
    font-size: 15px;
    font-weight: 400;
}

@keyframes main-action-pulse {
    0% {
        box-shadow: 0 0 0 0 #24D8FF;
    }
    50% {
        box-shadow: 0 0 10px 0 #24D8FF;
    }
    100% {
        box-shadow: 0 0 0 0 #24D8FF;
    }
}

/**
 * Main
 */
.main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
}

.main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}
  
.main-content {
    flex: 1;
    min-width: 320px;
}
  
.main-content-title h1 {
    color: #00A3C6;
    font-size: 20px;
    margin-bottom: 20px;
}
  
.main-content-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}
  
.main-content-description ul {
    padding-left: 20px;
    margin-bottom: 20px;
}
  
.main-content-description li {
    margin-bottom: 10px;
    line-height: 1.5;
}
  
.main-image-content {
    flex: 1;
    max-width: 550px;
    background-size: contain;
    height: auto;
    border-radius: 10px;
}

/**
 * News
 */
.news {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}
  
.news-item {
    background-color: #FFF;
    padding: 10px;
    border: 1px solid #00A3C6;
    border-radius: 5px;
    text-decoration: none;
}
  
.news-item-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 2px;
}
  
.news-item-content {
    font-weight: 600;
    font-size: 15px;
    color: #00A3C6;
    margin-bottom: 5px;
}

.news-item-time {
    font-size: 11px;
    color: #999;
}

/**
 * Partner
 */
.partner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.partner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/**
 * Patition
 */
.patition {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
}

.patition-content {
    height: 30px;
    width: auto;
}

.patition-mobile {
    display: none;
}
  
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }

    /* Header */
    .header {
        flex-direction: column;
        padding: 10px 20px;
        gap: 10px;
    }

    .header-logo {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    

    .hamburger {
        display: block;
    }

    .header-button {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-button-content {
        width: 80%;
        max-width: 300px;
        height: 45px;
        font-size: 16px;
    }

    /* Pc Menu */
    .menu {
        display: none;
    }

    /* Header */
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
        width: 100%;
    }

    /* Main action */
    .main-action {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .main-action-button {
        width: 100%;
        margin-top: 20px;
    }

    .main-action-button-content {
        width: 80%;
        //margin-left: 10%;
    }

    /* Main */
    .main {
        flex-direction: column;
        align-items: flex-start;
        //padding: 20px;
        width: 100%;
        margin: 0;
    }

    .main-content, .main-image-content {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
    }

    /* Main footer */
    .patition {
        display: none;
    }

    .patition-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 2px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .patition-content-mobile {
        height: 50px;
        width: auto;
    }

    /* News */
    .news {
        grid-template-columns: repeat(1, 1fr);
        padding: 20px;
        width: 100%;
        margin: 0;
    }

    .news-item {
        background-color: #FFF;
        padding: 10px;
        border: 1px solid #00A3C6;
        border-radius: 7px;
    }
      
    .news-item-image {
        width: 100%;
        height: auto;
        object-fit: cover;
        margin-top: 2px;
    }
      
    .news-item-content {
        font-weight: 600;
        font-size: 14px;
        color: #00A3C6;
        margin-bottom: 5px;
    }
    
    .news-item-time {
        font-size: 11px;
        color: #999;
    }

    /* Partner */
    .partner {
        height: 50px;
        max-width: 1200px;
        margin: 0 auto;
    }
}


/* --- Responsive Container --- */

.main,
.main-action,
.news {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}


/* --- Responsive Grid --- */

@media screen and (max-width: 1120px) {
    .news {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-action-button-content {
        width: 300px;
        height: 50px;
    }
}

@media screen and (max-width: 1024px) {
    .news {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-action-button-content {
        width: 300px;
        height: 50px;
    }
}

@media screen and (max-width: 600px) {
    .news {
        grid-template-columns: 1fr;
    }
}


/* --- Responsive Menu --- */

@media screen and (max-width: 768px) {
    .menu {
        display: none !important;
    }

    .main-action-button-content {
        width: 300px;
        height: 50px;
    }
}

@media screen and (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}


/* Footer container */
.site-footer {
    background-color: #fff;
    color: #4993AC;
    padding: 40px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand,
.footer-links,
.footer-categories,
.footer-ambassador {
    text-align: left;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-brand img {
    max-width: 150px;
    height: auto;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.5;
    //text-align: center;
}

.footer-links h4,
.footer-categories h4,
.footer-ambassador h4 {
    font-size: 20px;
    margin-bottom: 15px;
    //text-align: center;
}

.footer-links ul,
.footer-categories ul {
    list-style: none;
    padding: 0;
    //text-align: center;
}

.footer-links li,
.footer-categories li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 0.5px solid #4C9BB6;
    padding-bottom: 5px;
    font-weight: 500;
}

.footer-links ul li:last-child,
.footer-categories ul li:last-child {
    border-bottom: none;
}

.footer-links a,
.footer-categories a {
    color: #4C9BB6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-categories a:hover {
    color: #4C9BB6;
}

.footer-links img,
.footer-categories img {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

.footer-ambassador {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-ambassador img {
    max-width: 170px;
    height: auto;
    margin-top: 10px;
}

.footer-bottom {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding-top: 30px;
    font-size: 14px;
    color: #4C9BB6;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .footer-categories {
        display: none;
    }

    .footer-brand img {
        max-width: 150px;
    }

    .footer-ambassador img {
        max-width: 150px;
    }
}