.header {
    position: relative;
    color: #fff;
    z-index: 4;
    .top-bar {
        background-color: var(--rootcolor1);
        font-size: 14px;
        @media (max-width: 768px) {
            font-size: 11px;
        }

        .container {
            display: flex;
            justify-content: flex-end;
            padding: 6px 20px;
            .contact-info {
                display: flex;
                gap: 24px;
                i {
                    margin-right: 6px;
                    color: #fff;
                }

                a {
                    color: #fff;
                    text-decoration: none;
                    &:hover {
                        text-decoration: underline;
                    }
                }
            }
        }
    }

    .main-header {
        background: #002f12;
        background-size: cover;
        background-position: center;
        position: relative;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        &.is-sticky {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            animation: slideDown 0.3s ease;
        }

        .container {
            padding: 4px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
        }

        .logo img {
            height: 36px;
            width: auto;
            margin-top: 5px;
            @media (max-width: 992px) {
                height: 34px;
                margin-left: 10px; }
        }

        /* MENU CHÍNH */
        .main-nav {
            flex: 1;
            margin: 0 40px;
            top: 0;
            display: flex;
            justify-content: right;
            .menu-item-has-children > a .arrow {
                font-size: 10px;
                margin-left: 8px;
            }

            .menu {
                display: flex;
                align-items: center;
                justify-content: center;
                list-style: none;
                margin: 0;
                padding: 0;
                > .menu-item > a {
                    text-transform: uppercase;
                }

                .menu-item {
                    position: relative;
                    list-style: none;
                    a {
                        display: block;
                        padding: 14px 18px;
                        color: #fff;
                        font-weight: 600;
                        text-decoration: none;
                        font-size: 14px;
                        transition: color 0.3s ease;
                        &:hover {
                            color: #00aaff;
                        }
                    }

                    .sub-menu {
                        display: none;
                        position: absolute;
                        top: 100%;
                        left: 0;
                        background: #fff;
                        min-width: 220px;
                        border-radius: 6px;
                        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
                        padding: 0;
                        z-index: 99;
                        list-style: none;
                        li {
                            list-style: none;
                        }

                        li a {
                            color: #333;
                            padding: 10px 20px;
                            display: block;
                            &:hover {
                                background-color: var(--rootcolor2);
                                color: #fff;
                            }
                        }
                    }

                    &:hover > .sub-menu {
                        display: block;
                    }
                }
            }
        }

        /* ICONS & LANGUAGE */
        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
            .icon-btn {
                background: none;
                border: none;
                color: #fff;
                font-size: 18px;
                cursor: pointer;
                transition: color 0.3s ease;
                &:hover {
                    color: #ccc;
                }
            }

            .micon {
                display: none;
            }

            .language {
                display: flex;
                align-items: center;
                gap: 6px;
                font-weight: 600;
                cursor: pointer;
                &:hover {
                    color: #ccc;
                }
            }
        }
    }

    .search_overlay {
        position: fixed;
        background: #0808088f;
        height: 100vh;
        width: 100%;
        display: none;
        z-index: 9999999;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        transition: opacity 0.3s ease;
        padding-bottom: 10%;
        &.active {
            display: flex;
        }

        .search_box {
            position: relative;
            width: 90%;
            max-width: 600px;
            text-align: center;
            animation: fadeInUp 0.3s ease forwards;
            form {
                display: flex;
                align-items: center;
                background: #fff;
                border-radius: 8px;
                overflow: hidden;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
                input {
                    flex: 1;
                    padding: 14px 18px;
                    border: none;
                    font-size: 16px;
                    color: #333;
                    outline: none;
                }

                button {
                    background: #2a93d5;
                    /* xanh dương */
                    color: #fff;
                    border: none;
                    padding: 14px 18px;
                    cursor: pointer;
                    font-size: 18px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: background 0.3s;
                    &:hover {
                        background: #1976b3;
                    }
                }
            }

            .close_search {
                position: absolute;
                bottom: -60px;
                left: 50%;
                transform: translateX(-50%);
                background: rgba(255,255,255,0.2);
                border: 1px solid rgba(255,255,255,0.4);
                color: #fff;
                font-size: 20px;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                cursor: pointer;
                transition: all 0.3s ease;
                &:hover {
                    background: rgba(255,255,255,0.4);
                }
            }
        }
    }

    @media (max-width: 992px) {
        .main-header {
            .container {
                padding: 12px 0;
            }

            .main-nav {
                flex: none;
                display: none;
                margin: 0;
                position: absolute;
                top: 100%;
                width: 100%;
                background: #fff;
                .menu li.menu-item a {
                    color: #333;
                    padding: 10px 20px;
                    display: block;
                    &:hover {
                        background-color: #f0f4ff;
                        color: #072b6f;
                    }
                }

                .menu {
                    display: block;
                }

                .sub-menu {
                    width: 100%;
                    box-shadow: none !important;
                    padding: 0 20px !important;
                }
            }

            .header-right {
                padding-right: 15px;
                .micon {
                    display: block;
                }
            }

            &.is-open .main-nav {
                display: block;
            }
        }
    }
}

.top_slide {
    width: 100%;
    margin: 0 auto;
    position: relative;
    .swiper {
        width: 100%;
    }

    .swiper-slide {
        position: relative;
        overflow: hidden;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    .swiper-button-prev, .swiper-button-next {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 50%;
        color: #fff;
        &:after {
            font-size: 16px;
        }
    }

    .swiper-pagination-bullet {
        background: #fff;
        opacity: 0.6;
    }

    .swiper-pagination-bullet-active {
        opacity: 1;
    }
}

.home.blog .site-wrapper {
    padding: 0;
}

#top_sanpham {
    padding: 20px 0;
    background: #fff;
    max-width: 1140px;
    margin: auto;
    h3 {
        text-align: center;
        font-size: 20px;
        margin-bottom: 20px;
    }

    .headline {
        text-align: center;
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 30px;
        text-transform: uppercase;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        // trước là repeat(3,1fr) gap: 24px;
        @media (max-width: 960px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: 640px) {
            grid-template-columns: 1fr 1fr;
        }
    }

    .card {
        overflow: hidden;
        transition: transform .2s ease, box-shadow .2s ease;
        &:hover {
            transform: translateY(-4px);
        }

        .media {
            img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                display: block;
            }
        }

        .content {
            padding: 16px;
            .title {
        text-align: center;
                font-size: 18px;
                font-weight: 700;
                margin: 8px 0;
                text-transform: uppercase;
            }

            .desc {
                font-size: 17px;
                color: #555;
                line-height: 1.5;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
        @media (max-width: 480px) {
            display: none;
        }
            }
        }
    }
}

#bootstrap-panel--5 {
    max-width: 1140px;
    margin: auto;
    margin-top: 30px;
    .panel-heading {
        padding: 0;
        a.fieldset-legend {
            display: block;
            padding: 10px 16px;
            font-weight: 700;
            text-decoration: none;
        }
    }

    .panel-body {
        padding: 14px 6px 6px;
    }

    .chungnhan-swiper {
        a[data-fancybox] {
            display: block;
            width: 100%;
            height: 100%;
        }

        a[data-fancybox] img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        a[data-fancybox] {
            cursor: zoom-in;
        }

        --radius: 12px;
        .swiper-slide {
            display: grid;
            place-items: center;
            background: #fff;
            border-radius: var(--radius);
            box-shadow: 0 4px 14px rgba(0,0,0,.08);
            overflow: hidden;
            min-height: 220px;
            // chiều cao gọn, đều }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            // cho hình fill đều card display: block;
        }

        .swiper-button-prev, .swiper-button-next {
            color: #222;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,.9);
            box-shadow: 0 2px 10px rgba(0,0,0,.12);
            &:after {
                font-size: 16px;
            }
        }

        .swiper-pagination-bullet {
            opacity: .5;
        }

        .swiper-pagination-bullet-active {
            opacity: 1;
        }
    }
}

.phh {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#gallery_box {
    padding: 12px 0;
    .gallery-swiper {
        a[data-fancybox] {
            display: block;
            width: 100%;
            height: 100%;
        }

        a[data-fancybox] img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        a[data-fancybox] {
            cursor: zoom-in;
        }

        --radius: 12px;
        .swiper-slide {
            border-radius: var(--radius);
            overflow: hidden;
            background: #fff;
            box-shadow: 0 4px 14px rgba(0,0,0,.08);
            display: flex;
            align-items: stretch;
            a {
                display: block;
                width: 100%;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                aspect-ratio: 3 / 4;
            }
        }

        .swiper-button-prev, .swiper-button-next {
            color: #222;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,.95);
            box-shadow: 0 2px 10px rgba(0,0,0,.12);
            &:after {
                font-size: 16px;
            }
        }

        .swiper-pagination-bullet {
            opacity: .5;
        }

        .swiper-pagination-bullet-active {
            opacity: 1;
        }
    }
}

.certificate_section {
    background: #f7f8fb;
    text-align: center;
    padding: 60px 0;
}

.cert_slider {
	.swiper-slide {
		display: flex;
		justify-content: center;
	}

	.cert_item {
		position: relative;
		border-radius: 10px;
		overflow: hidden;
		box-shadow: 0 4px 10px rgba(0,0,0,0.1);
		background: #fff;
		transition: transform .3s ease;
		&:hover {
			transform: translateY(-4px);
		}

		img {
			width: 100%;
			height: auto;
			display: block;
		}

		.caption {
			position: absolute;
			bottom: 0;
			left: 0;
			right: 0;
			background: rgba(0, 0, 0, 0.5);
			color: #fff;
			font-size: 14px;
			font-weight: 600;
			padding: 10px;
			text-align: center;
		}
	}
}

@media (max-width: 768px) {
	.cert_item .caption {
		font-size: 13px;
	}
}

.click_goi {
    border: 2px dotted #b55e11;
    padding: 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
    margin-bottom: 30px;
    .click_title {
        text-align: center;
        color: #cd7508;
        font-size: 1.8rem;
    }

    .zalo_text {
        text-align: center;
        font-size: 20px;
        color: #ff0000;
    }

    p {
        img {
            display: block;
            margin: auto;
        }
    }

    @media(max-width: 768px) {
        border: none;
    }
}

.chungnhan-swiper {
    a[data-fancybox] {
        display: block;
        width: 100%;
        height: 100%;
    }

    a[data-fancybox] img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    a[data-fancybox] {
        cursor: zoom-in;
    }

    .swiper-slide {
        display: grid;
        place-items: center;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(0,0,0,.08);
        overflow: hidden;
        min-height: 220px;
        }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .swiper-pagination-bullet {
        opacity: .5;
    }

    .swiper-pagination-bullet-active {
        opacity: 1;
    }
}

/* Accordion container */
.cong_dung {
	max-width: 800px;
	margin: 60px auto;
	/* Each item */
	.cong_dung-item {
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #fff;
		margin-bottom: 10px;
		overflow: hidden;
		box-shadow: 0 2px 6px rgba(0,0,0,.06);
		padding: 12px;
	}

	/* Header acts like a button */
	.cong_dung-item h3 {
		margin: 0;
		padding: 0;
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 1.3rem;
		line-height: 1.4;
		cursor: pointer;
		user-select: none;
		position: relative;
		text-align: left;
	}

	/* Chevron indicator (right) */
	.cong_dung-item h3::after {
		content: "▾";
		margin-left: auto;
		transition: transform .25s ease;
		opacity: .75;
	}

	/* Panel (content) */
	.cong_dung-item p {
		margin: 0;
		padding: 0 14px;
		line-height: 1.6;
		font-size: 1.25rem;
		color: #374151;
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease, padding-top .3s ease, opacity .25s ease;
		opacity: 0;
	}

	/* Expanded state */
	.cong_dung-item[aria-expanded="true"] h3::after {
		transform: rotate(-180deg);
	}

	.cong_dung-item[aria-expanded="true"] p {
		padding-top: 6px;
		max-height: 400px;
		/* đủ lớn cho đa số nội dung; JS sẽ set height thực tế */
		opacity: 1;
	}

	/* Hover/focus states */
	.cong_dung-item h3:hover, .cong_dung-item h3:focus {
		background: #f9fafb;
		outline: none;
	}
}


.lt-works {
    margin: 60px 0;
    background-image: url(../images/bg-loop1.png);
    background-repeat: repeat;
    background-size: unset;
		padding: 40px 0;
		margin: 0px;
	.sppb-title-heading {
  line-height: 1.4;
		text-align: center;
		color: #7e421a;
		margin-bottom: 20px;
		font-size: 26px;
		font-weight: 700;
	}

		.content {
			max-height: 300px;
			overflow: hidden;
			transition: max-height 0.3s ease;
			p {
				font-size: 20px;
            line-height: 36px;
            margin-bottom: 15px;
			}
			&.expanded {
				max-height: none;
			}
		}

		.toggle-btn {
			display: block;
			margin: 10px auto 0;
			background: none;
			border: none;
			color: #030838;
			font-weight: bold;
			cursor: pointer;
        font-size: 20px;
        line-height: 20px;
		&:hover {
				text-decoration: underline;
			}
		}
}
.vt_news {
    position: relative;
    margin: 60px 0;
    background: #fff;
    z-index: 1;
  
	.container {
		position: relative;
	}

  .newsSwiper  {
    overflow: hidden !important;
  }


  .swiper {
    overflow: visible;
    padding-bottom: 10px;
    position: relative;
  }

  .news-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-6px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .img-box {
      width: 100%;
      aspect-ratio: 4/3;
      border-radius: 12px;
      overflow: hidden;
      background: #d9d9d9;
      margin-bottom: 15px;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
      }

      &:hover img {
        transform: scale(1.05);
      }
    }

    .meta {
      display: flex;
      align-items: center;
      gap: 20px;
      color: #666;
      font-size: 1.1rem;
      margin-bottom: 10px;

      i {
        margin-right: 5px;
        color: #999;
      }
    }

    h3 {
      font-size: 1.25rem;
      font-weight: 700;
      color: #003366;
      margin-bottom: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

      a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;

        &:hover {
          color: #00aaff;
        }
      }
    }

    p {
      font-size: 14px;
      color: #555;
      line-height: 1.6;
      margin-bottom: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    }
  }
}

  /* Swiper navigation */
  .swiper-button-prev,
  .swiper-button-next {
    color: #888;
    width: 40px;
    height: 40px;
    background: #f3f3f3;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;

    &:after {
      font-size: 16px;
      font-weight: bold;
    }

    &:hover {
      background: #00aaff;
      color: #fff;
    }
  }

  .swiper-button-prev {
    left: -30px;
  }

  .swiper-button-next {
    right: -30px;
  }

  @media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
      display: none;
    }
  }


.for_mb {
    display: none !important;
}

@media (max-width: 768px) {
    .for_pc {
        display:none !important;
    }

    .for_mb {
        display: block !important;
    }
}

.footer {
    background: #002f12;
    color: #f7f7f7;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 40px 20px;
    border-top: 1px solid #eee;
    .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-column {
        width: 48%;
        @media (max-width: 480px) {
            width: 100%;
        }

        h3 {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 5px;
			color: #f7f7f7;
            margin-bottom: 20px;
        }

        p {
            line-height: 1.6;
            margin-bottom: 8px;
            i {
                color: #f26b1d;
                margin-right: 6px;
            }
        }

        a {
            color: #000;
            text-decoration: none;
        }

        a: hover {
            color: #f26b1d;
        }

        .qr {
            width: 120px;
            height: 120px;
            margin-bottom: 10px;
        }

        .social-icons {
            display: flex;
            gap: 10px;
            font-size: 22px;
            a {
                color: #000;
                transition: transform 0.2s ease, color 0.2s ease;
            }

            a: hover {
                color: #f26b1d;
                transform: scale(1.15);
            }
        }
    }
}

#top_video {
    padding-bottom: 40px;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.video-item {
  cursor: pointer;

  .video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    overflow: hidden;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.3);
    }

    .play-badge {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 26px;
      color: #fff;
      background: rgba(255,0,0,0.8);
      border-radius: 50%;
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;

      i {
        margin-left: 2px;
      }
    }
  }

  .video-title {
	margin-top: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #cd7508;
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
  }
}


.video-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;

  .video-popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;

    iframe {
      width: 100%;
      height: 450px;
      border-radius: 8px;
    }

    .close {
      position: absolute;
      top: -30px;
      right: 0;
      font-size: 30px;
      color: #fff;
      cursor: pointer;
    }
  }
}
