:root {
    --primary-color: #e0fe08;
    --secondary-color: #00804d;
    --text-color: #000000;
    --bg-color: #f8f9fa;
    --main-font: 'Poppins', sans-serif;
    --bg-main: #f6f8ed;
    --text-dark: #1b263f;
    --text-blue: #001f3f;
    --primary-lime: var(--primary-color);
    --accent-green: var(--secondary-color);
}

html {
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--main-font);
    overflow-x: hidden;
}

/* Ép sử dụng duy nhất Font "Poppins" cho toàn bộ Website */
* {
    font-family: var(--main-font) !important;
}

.header-navigation-container, .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 992px) {
    .navbar-custom {
        background-color: var(--text-blue) !important;
        border-radius: 24px !important;
        padding: 10px 20px;
    }

    /* ===== THÊM style cho Desktop ===== */
    .navbar-custom {
        flex-grow: 1;
        max-width: 1023px;
        height: 76px;
        margin-left: 20px;
    }
}

        /* --- HEADER & NAVBAR --- */
        .header-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1030;
            padding-top: 15px;
            padding-bottom: 15px;
            transition: all 0.3s ease;
        }
        .header-logo-container {
            padding-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .header-logo-container img {
            height: 40px;
            object-fit: contain;
        }
        .header-logo-container .logo-text {
            font-weight: 800;
            font-size: 1.8rem;
            color: white;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .navbar-custom {
            background-color: var(--text-blue) !important;
            border-radius: 24px !important; 
            padding: 10px 20px;
        }
        .nav-link {
            color: white !important;
            font-weight: 500;
            font-size: 0.95rem;
            transition: 0.3s;
            display: inline-flex;
            align-items: center;
        }
        .nav-link:hover {
            color: var(--primary-color) !important;
        }

        .header-register-btn {
            background-color: var(--primary-color);
            color: var(--text-color);
            font-weight: 700;
            border-radius: 24px;
            padding: 8px 24px;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        .header-register-btn:hover {
            background-color: #ffffff;
            color: var(--text-blue);
        }

        /* Ẩn mũi tên tam giác mặc định của Bootstrap */
        .no-caret::after {
            display: none !important;
        }

        /* Style cho ảnh mũi tên menu */
        .menu-item-arrow {
            width: 10px;
            height: 10px;
            margin-left: 6px;
            transition: transform 0.3s ease;
        }

/* --- XỬ LÝ NÚT 3 GẠCH MOBILE BẰNG CSS THUẦN (KHÔNG LO LỖI Ô VUÔNG) --- */
.custom-toggler {
    background: transparent !important; /* Xóa nền */
    border: none !important; /* Xóa viền */
    padding: 0 !important;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; /* Độ rộng của 3 gạch */
    height: 20px; /* Chiều cao tổng thể của cụm 3 gạch */
    cursor: pointer;
}

	/* Loại bỏ viền bóng mặc định của Bootstrap khi focus */
	.custom-toggler:focus {
		box-shadow: none !important;
		outline: none !important;
	}

	/* Định dạng cấu trúc cho từng đường gạch ngang */
	.custom-toggler span {
		display: block;
		width: 100%;
		height: 3px; /* Độ dày của mỗi gạch */
		background-color: var(--primary-color); /* Màu vàng chanh mặc định */
		border-radius: 2px; /* Bo tròn nhẹ 2 đầu gạch cho đẹp */
		transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease; /* Hiệu ứng mượt */
	}

	/* --- HIỆU ỨNG ĐẸP MẮT: Khi Menu mở ra (bấm kích hoạt), 3 gạch biến đổi thành dấu X màu trắng --- */
	.custom-toggler:not(.collapsed) span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
		background-color: #ffffff; /* Đổi sang màu trắng khi mở menu */
	}

	.custom-toggler:not(.collapsed) span:nth-child(2) {
		opacity: 0; /* Ẩn thanh ở giữa đi */
	}

	.custom-toggler:not(.collapsed) span:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
		background-color: #ffffff; /* Đổi sang màu trắng khi mở menu */
	}

        /* --- CSS HOVER DROPDOWN (Áp dụng cho Desktop) --- */
        @media (min-width: 992px) {
            .navbar-nav .dropdown:hover .dropdown-menu {
                display: block;
                margin-top: 0;
            }
            .navbar-nav .dropdown:hover .menu-item-arrow {
                transform: rotate(180deg);
            }
        }

        /* Cấu hình Giao diện Dropdown Menu con */
        .navbar-custom .dropdown-menu {
            background-color: #ffffff !important;
            border: none;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            padding: 8px 0;
            min-width: 180px;
        }
        .navbar-custom .dropdown-item {
            color: #000000 !important;
            font-weight: 500;
            font-size: 0.9rem;
            padding: 10px 20px;
            transition: 0.2s ease;
        }
        .navbar-custom .dropdown-item:hover {
            background-color: var(--primary-color) !important;
            color: #000000 !important;
        }


        
        /* --- FOOTER --- */
        footer.footer-custom {
            /* Background matches Rectangle 34 angular gradient exactly from Figma */
            background: conic-gradient(from 135deg at 28% 43%, #e0fe08 0%, #00804d 43.75%, #1e4890 79.3%, #001f3f 100%);
            color: white;
            padding: 70px 0 25px;
            position: relative;
            overflow: hidden;
        }

        .footer-custom .footer-heading {
            font-size: 24px;
        }

        .footer-custom .footer-desc {
            font-size: 11px;
            line-height: 1.6;
            opacity: 0.9;
            max-width: 90%;
        }

        .footer-custom h5 {
            font-size: 16px;
            line-height: 1.5;
        }

        .footer-icon {
            font-size: 18px;
            color: white;
        }

        .footer-contact-list li span, .footer-contact-list li a {
            font-size: 16px;
            font-weight: 400;
        }

        .footer-links a {
            font-size: 16px;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: var(--primary-color) !important;
        }

        .footer-decorator {
            position: absolute;
            right: 0;
            bottom: -20px;
            width: 86px;
            height: 89px;
            background-color: var(--primary-color);
            z-index: 0;
        }

        .footer-custom .container {
            z-index: 1;
        }

        .footer-copyright {
            font-size: 11px;
            opacity: 0.8;
        }

        /* --- ARROW BACK TO TOP --- */
        .back-to-top {
            background-color: var(--primary-lime);
            color: var(--text-blue);
            width: 48px;
            height: 48px;
            display: none;
            align-items: center;
            justify-content: center;
            position: fixed;
            bottom: 30px;
            right: 30px;
            border-radius: 50%;
            text-decoration: none;
            z-index: 1050;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: 0.3s ease;
        }
        .back-to-top:hover {
            background-color: white;
            color: var(--accent-green);
            transform: scale(1.1);
        }


.header-wrapper.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding-top: 8px;
    padding-bottom: 8px;
}
