html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  padding-left: 12px;
  padding-right: 12px;
  background: #ffffff !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* BabyCare theme overrides: set primary to #2D904F */
:root {
	--bs-primary: #2D904F;
	--bs-primary-rgb: 45, 144, 79;
	--bs-light: #E9F6EE;
	
	/* Army English Green Palette */
	--army-green-light: #E9F6EE;
	--army-green-medium: #D4F1E0;
	--army-green-dark: #C8E6D1;
	--army-green-primary: #2D904F;
	--army-green-darkest: #1E6B3A;
}

/* Set Roboto as default font for entire website, but exclude icons */
*:not(.fas):not(.far):not(.fab):not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(i) {
  font-family: "Roboto", sans-serif !important;
}

/* Ensure FontAwesome icons use their proper font */
.fas, .far, .fab, .fa, .fa-solid, .fa-regular, .fa-brands, i[class*="fa-"] {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Additional icon font fixes */
i {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Bungee font class - keep for specific elements that need it */
.bungee-regular {
  font-family: "Bungee", sans-serif !important;
  font-weight: 400;
  font-style: normal;
}

/* Apply Bungee font to main headings when specifically requested */
h1.bungee-regular,
h2.bungee-regular,
h3.bungee-regular,
h4.bungee-regular,
h5.bungee-regular,
h6.bungee-regular,
.display-1.bungee-regular,
.display-2.bungee-regular,
.display-3.bungee-regular,
.display-4.bungee-regular,
.display-5.bungee-regular,
.display-6.bungee-regular {
  font-family: "Bungee", sans-serif !important;
  font-weight: 400;
  font-style: normal;
}

/* Header styling - Full width with light green background */
.container-fluid.border-bottom {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.topbar {
	background: var(--army-green-primary) !important;
	position: relative;
	overflow: hidden;
	width: 100% !important;
	margin: 0 !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* Navbar background - Light green solid color */
.navbar {
    background: #ffffff !important;
	position: relative;
	width: 100% !important;
	margin: 0 !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* Ensure navbar content is above the gradient overlay */
.navbar > * {
	position: relative;
	z-index: 1;
}

/* Full width container adjustments */
/* .container-fluid .container {
	max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
} */

/* Topbar full width adjustments */
.topbar .container {
	max-width: 100% !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* Navbar full width adjustments */
.navbar .container {
	max-width: 100% !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* Clean topbar styling */
.topbar {
	box-shadow: none;
	border: none;
}

.navbar {
	box-shadow: none;
	border: none;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
	.navbar .navbar-collapse {
	  background: #fff !important;
	  border-radius: 12px;
	  padding: 12px;
	  box-shadow: 0 8px 24px rgba(0,0,0,.06);
	}
  
	.navbar .nav-link { color: #1f2937 !important; }
	.navbar .nav-link:hover,
	.navbar .nav-link.active {
	  color: var(--bs-primary) !important;
	  background: rgba(var(--bs-primary-rgb), .08);
	  border-radius: 8px;
	}
  
	.navbar .navbar-toggler,
	.navbar .navbar-toggler .fa-bars {
	  color: var(--bs-primary) !important;
	  border-color: transparent !important;
	}
}
  

@media (max-width: 575.98px) {
	.navbar {
		padding-left: 5px !important;
		padding-right: 5px !important;
	}
	
	.topbar {
		padding-left: 5px !important;
		padding-right: 5px !important;
	}
	
	.container-fluid .container {
		padding-left: 5px !important;
		padding-right: 5px !important;
	}
}

/* Hover effects for navigation links */
.navbar-nav .nav-link {
	position: relative;
	display: inline-block;   /* chỉ dài bằng chữ */
	transition: all 0.3s ease;
	padding: 0 8px;          /* thêm padding ngang cho đẹp */
}

.navbar-nav .nav-link:hover {
	color: var(--bs-primary) !important;
	transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--bs-primary), #1E6B3A);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
	width: 100%;   /* underline ngắn hơn chữ, căn giữa */
}

/* Active nav link state */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
    color: var(--bs-primary) !important;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link[aria-current="page"]::after {
    width: 80%;   /* gạch chân cho active cũng chỉ bằng 60% chữ */
}

/* Dropdown menu gradient */
.dropdown-menu {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
	border: 1px solid rgba(45, 144, 79, 0.2);
	box-shadow: 0 4px 15px rgba(45, 144, 79, 0.15);
}

.dropdown-item {
	transition: all 0.3s ease;
}

.dropdown-item:hover {
	background: linear-gradient(90deg, rgba(45, 144, 79, 0.1), rgba(45, 144, 79, 0.05));
	color: var(--bs-primary);
	transform: translateX(5px);
}

/* Secondary remains as theme's blue, but adjust derived accents if needed */
.btn.btn-primary:hover {
	background: var(--bs-secondary);
	color: var(--bs-primary);
}

/* Components using hard-coded rgba of secondary overlays – keep as-is */
/* Update gradient sections that used pink tints to greenish tints */
/* .BabyCare-override .service {
    background: #ffffff !important;
}
.BabyCare-override .program {
    background: #ffffff !important;
} */

/* Body sections - Unified light green background */
.about {
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/home/background_about.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;	
}

/* Ensure About section respects 12px side padding */
.about .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
}
.about .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Add background image to video section */
.about .video {
    background-image: url('../img/home/about.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Equal height for program cards */
.program .row .col-lg-4 {
    display: flex;
}

.program .program-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Limit program description to 2 lines with ellipsis */
.program .program-text p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em; /* 2 lines * 1.5 line-height */
}

.service:not(.facilities-page) {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
    position: relative;
}

/* Force service background gradient - exclude facilities page */
.container-fluid.service:not(.facilities-page) {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

/* Events section gradient background */
.events {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

.container-fluid.events {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

/* Team section gradient background */
.team {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

.container-fluid.team {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

/* Team item cards with white background */
.team-item {
    background: #ffffff !important;
}

/* Program section gradient background */
.program {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

.container-fluid.program {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

/* Blog section gradient background */
.blog {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

.container-fluid.blog {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

/* Testimonial section gradient background */
.testimonial {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

.container-fluid.testimonial {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

/* Testimonial item cards with white background */
.testimonial-item {
    background: #ffffff !important;
}



/* Force blog gradient with higher specificity */
div.container-fluid.blog.py-5 {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 50%, #c3e6cb 100%) !important;
}

/* Moving Animation */
.hero-banner-container {
    position: relative; /* Ensure banner container is positioned */
}

.moving-animation-container {
    position: absolute;
    bottom: 0px; /* Bottom of banner */
    left: -150px; /* Start from left edge (50% of original size) */
    z-index: 10;
    pointer-events: none;
    transition: left 8s linear;
    transform: scale(0.5); /* 50% of original size */
}

.moving-animation-container.moving-right {
    left: calc(100% - 150px); /* Move to right edge of banner (50% of original size) */
    transform: scale(0.5) scaleX(1); /* 50% size + normal direction */
}

.moving-animation-container.moving-left {
    left: -150px; /* Move to left edge (50% of original size) */
    transform: scale(0.5) scaleX(-1); /* 50% size + flip horizontally */
}

@media (max-width: 768px) {
    .moving-animation-container {
        bottom: 15px;
        left: -100px; /* 50% of mobile size */
    }
    
    .moving-animation-container.moving-right {
        left: calc(100% - 100px);
    }
    
    .moving-animation-container.moving-left {
        left: -100px;
    }
}

.program {
    position: relative;
}

.events {
    background: #ffffff !important;
    position: relative;
}

.blog {
    position: relative;
}
/* Force white card backgrounds inside Blog section (bg-light overrides) */
.container-fluid.blog .bg-light,
.blog .bg-light {
    background-color: #ffffff !important;
}

.team {
    background: #ffffff !important;
    position: relative;
}

.testimonial {
    background: #ffffff !important;
    position: relative;
}

.footer {
	background: var(--army-green-primary) !important;
	position: relative;
}

.copyright {
	background: var(--army-green-darkest) !important;
	position: relative;
}

/* Ensure content is above gradient overlays */
.about > *,
.service > *,
.program > *,
.events > *,
.blog > *,
.team > *,
.testimonial > *,
.footer > *,
.copyright > * {
	position: relative;
	z-index: 1;
}

/* Enhanced section styling */
.about,
.service,
.program,
.events,
.blog,
.team,
.testimonial {
	box-shadow: none;
	border: none;
	transition: none;
}

/* Clean footer styling */
.footer {
	box-shadow: none;
	border: none;
}

.copyright {
	box-shadow: none;
	border: none;
}

/* Section transitions */
.about,
.service,
.program,
.events,
.blog,
.team,
.testimonial,
.footer,
.copyright {
	transition: all 0.5s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
	.about,
	.service,
	.program,
	.events,
	.blog,
	.team,
	.testimonial {
		box-shadow: 0 1px 10px rgba(45, 144, 79, 0.1);
	}
	
    /* All sections use white background on mobile */
	.about,
	.service,
	.program,
	.events,
	.team,
	.testimonial {
        background: #ffffff !important;
	}
	
	/* Facilities page background on mobile - keep white background like other sections */
	body[data-page="facilities"] .container-fluid.service,
	.facilities-page .container-fluid.service {
		background: #ffffff !important;
	}
}

/* Smooth scrolling for better UX */
html {
	scroll-behavior: smooth;
}

/* Section separators removed - Clean design */

/* Logo sizing */
.navbar .navbar-brand img {
	height: 48px;
	width: auto;
	display: block;
}

/* Dotted borders that reference var(--bs-primary) will auto-update. */

/* Uniform aspect ratio for team images */
.team-item img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* Hero Banner Carousel Styles */
.hero-banner-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
}

.hero-banner-carousel {
	position: relative;
	width: 100%;
	height: 0;
	/* Desktop aspect ratio: 1920x720 = 2.67:1 */
	padding-bottom: 37.5%; /* 720/1920 * 100% */
}

.banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
}

.banner-slide.active {
	opacity: 1;
}

.banner-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Mobile responsive - 1080x1920 aspect ratio */
@media (max-width: 991.98px) {
	.hero-banner-carousel {
		/* Mobile aspect ratio: 1080x1920 = 9:16 */
		padding-bottom: 177.78%; /* 1920/1080 * 100% */
	}
	
	/* Hide desktop banners on mobile */
	.banner-slide[data-device="desktop"] {
		display: none;
	}
}

/* Show only desktop banners on desktop */
@media (min-width: 992px) {
	.banner-slide[data-device="mobile"] {
		display: none;
	}
}

/* Navigation Controls */
.banner-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.banner-nav-btn:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: translateY(-50%) scale(1.1);
}

.banner-prev {
	left: 20px;
}

.banner-next {
	right: 20px;
}

/* Hide navigation on mobile for cleaner look */
@media (max-width: 767.98px) {
	.banner-nav-btn {
		display: none;
	}
}

/* Dots Indicator */
.banner-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

.dot.active {
	background: white;
	transform: scale(1.2);
}

.dot:hover {
	background: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments for dots */
@media (max-width: 767.98px) {
	.banner-dots {
		bottom: 15px;
	}
	
	.dot {
		width: 10px;
		height: 10px;
	}
}

/* Login/Register buttons styling */
.navbar .d-flex .btn {
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.navbar .d-flex .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.navbar .d-flex .btn-outline-primary:hover {
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
	color: white;
}

/* Mobile responsive for login/register buttons */
@media (max-width: 991.98px) {
	.navbar .d-flex {
		flex-direction: column;
		gap: 0.5rem !important;
		width: 100%;
		margin-top: 1rem;
	}
	
	.navbar .d-flex .btn {
		width: 100%;
		justify-content: center;
	}
	
	.navbar .d-flex .btn-search {
		width: auto;
		align-self: center;
		margin-top: 0.5rem;
	}
}

@media (max-width: 575.98px) {
	.navbar .d-flex .btn {
		font-size: 0.8rem;
		padding: 0.5rem 1rem;
	}
}

/* Modal backdrop fix */
.modal-backdrop {
	z-index: 1040;
}

.modal {
	z-index: 1050;
}

/* Ensure proper modal cleanup */
body.modal-open {
	overflow: hidden;
}

/* Fix for multiple backdrops */
.modal-backdrop.show {
	opacity: 0.5;
}

/* Ensure modal content is properly positioned */
.modal-dialog {
	margin: 1.75rem auto;
}

@media (max-width: 575.98px) {
	.modal-dialog {
		margin: 0.5rem;
	}
}

/* Modal title styling */
.modal-header .modal-title {
	color: white !important;
	font-weight: 600;
	font-size: 1.25rem;
}

.modal-header .modal-title i {
	color: white !important;
}

/* Ensure modal header text is always white */
.modal-header.bg-primary .modal-title,
.modal-header.bg-primary .modal-title * {
	color: white !important;
}

/* Remove all animation rules (no-op) */

/* Fix hover effect for service buttons after layout change */
.service-item:hover .service-content .btn-primary {
    background: var(--bs-white) !important;
    color: var(--bs-primary) !important;
}

.service-item .service-content .btn-primary:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

/* Ensure button is above overlay layer */
.service-item .service-content .btn-primary {
    position: relative;
    z-index: 3;
}

/* Facilities (Cơ sở) list: remove rounded corners ONLY inside the branch list */
#branchList .service-item {
  border-radius: 0 !important;
}

#branchList .service-item a,
#branchList .service-item .btn {
  border-radius: 0 !important;
}

/* Address list container rounding and item spacing cleanup */
#branchList {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
}

#branchList .service-item {
  border: 0 !important; /* remove individual card borders */
  border-bottom: 1px solid rgba(0,0,0,0.06) !important; /* divider between items */
  margin: 0 !important; /* remove any margins */
}

/* Wrapper for filters + list stacked vertically */
#branchPanel {
  border-radius: 8px;
  overflow: hidden;
}

.branch-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 12px;
}

.branch-filters .form-label { margin-bottom: .25rem !important; }
.branch-filters .form-select,
.branch-filters .form-control { margin: 0 !important; }

#branchList .row > [class^="col-"]:last-child .service-item {
  border-bottom: 0 !important; /* no divider after last item */
}

/* Map panel rounded corners to match list */
#mapPanel {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
}

/* Facilities page specific background image - following About section pattern */
/* Only apply on desktop screens with higher specificity */
@media (min-width: 992px) {
	.facilities-page.container-fluid.service,
	body[data-page="facilities"] .facilities-page.container-fluid.service {
		background: url('../img/background_position.png') !important;
		background-size: cover !important;
		background-position: center !important;
		background-repeat: no-repeat !important;
		position: relative;
	}
	
	/* Additional rule with even higher specificity to override any conflicting styles */
	.container-fluid.service.facilities-page {
		background: url('../img/background_position.png') !important;
		background-size: cover !important;
		background-position: center !important;
		background-repeat: no-repeat !important;
		position: relative;
	}
}

/* Ensure content is above background image - only on desktop */
@media (min-width: 992px) {
	.facilities-page.container-fluid.service > *,
	body[data-page="facilities"] .facilities-page.container-fluid.service > * {
		position: relative;
		z-index: 1;
	}
}
/* =========================
   BLOG – Equal height cards
   ========================= */
.blog .row > [class*="col-"] {
  display: flex;                   /* cột kéo cao theo card cao nhất trong hàng */
}
.blog .blog-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;                    /* bảo đảm full chiều cao */
}

/* Ảnh đầu bài đồng nhất tỉ lệ (tránh card cao/thấp do ảnh) */
.blog .blog-item .blog-img {
  aspect-ratio: 16 / 9;
}
.blog .blog-item .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* thumbnail list gọn đẹp */
  object-position: center;
}

/* Đẩy phần nội dung cuối (chứa nút) xuống đáy card */
.blog .blog-item > .px-4.pb-4 {
  margin-top: auto;
}

/* =========================
   PROGRAMS – Equal height cards (củng cố)
   ========================= */
/* Bạn đã có: .program .row .col-lg-4 { display:flex } – thêm tổng quát cho mọi breakpoint */
.program .row > [class*="col-"] {
  display: flex;
}
.program .program-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* (Tuỳ chọn) Đồng nhất tỉ lệ ảnh đầu card */
.program .program-item .program-img .img-border-radius {
  aspect-ratio: 16 / 9;
  display: block;

}
.program .program-item .program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ghim thanh thông tin cuối card xuống đáy (hàng có 3 badge nhỏ) */
.program .program-item > .d-flex.justify-content-between {
  margin-top: auto;
}

  


/* ===== Facilities polish (không đụng HTML) ===== */

/* 1) Kéo section "Cơ sở" áp sát banner + giảm khoảng trắng đầu */
.container-fluid.service.facilities-page {
	position: relative;
	margin-top: -40px;                 /* kéo lên đè khoảng trắng sau banner */
	padding-top: 60px !important;      /* vẫn chừa thở */
  }
  
  /* 2) Tạo lớp phủ dịu nền để quá trình chuyển từ banner → section mượt hơn */
  .container-fluid.service.facilities-page::before {
	content: "";
	position: absolute; inset: 0;
	pointer-events: none;
	/* lớp mờ nhẹ ở viền trên, giữ nền ảnh phía sau */
	background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 20%);
	z-index: 0;
  }
  /* bảo đảm nội dung nằm trên overlay */
  .container-fluid.service.facilities-page > * { position: relative; z-index: 1; }
  
  /* 3) Glassmorphism cho 2 panel (list + map) để “ăn” với nền */
  #branchPanel,
  #mapPanel {
	background: rgba(255,255,255,0.9);
	border: 1px solid rgba(255,255,255,0.6);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(0,0,0,0.12);
	backdrop-filter: blur(6px);
  }
  
  /* 4) Header bộ lọc dính trên cùng list khi cuộn, tạo cảm giác liên kết */
  .branch-filters {
	position: sticky;
	top: 0;
	z-index: 2;
	background: rgba(255,255,255,0.96);
	border-bottom: 1px solid rgba(0,0,0,0.06);
	border-radius: 16px 16px 0 0;
  }
  
  /* 5) List scroll mượt + scrollbar tinh tế */
  #branchList {
	max-height: 70vh;
	overflow-y: auto;
  }
  #branchList::-webkit-scrollbar { width: 8px; }
  #branchList::-webkit-scrollbar-thumb {
	background: rgba(var(--bs-primary-rgb), .35);
	border-radius: 8px;
  }
  #branchList::-webkit-scrollbar-track { background: transparent; }
  
  /* 6) Card trong list hover/selected gọn gàng */
  #branchList .service-item {
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  }
  #branchList .service-item:hover {
	transform: translateY(-2px);
	background: #f8fff9;
	border-color: rgba(var(--bs-primary-rgb), .35) !important;
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
  }
  #branchList .service-item.selected {
	border-color: var(--bs-primary) !important;
	box-shadow: 0 10px 24px rgba(var(--bs-primary-rgb), .18);
  }
  
  /* 7) Map panel bo góc và ẩn viền iframe cho đồng bộ */
  #mapPanel { border-radius: 16px; overflow: hidden; }
  #mapPanel iframe { display: block; border: 0; }
  
  /* 8) Khoảng cách dọc tổng thể gọn hơn để sát banner & liền mạch */
  .facilities-page .container.py-5 { padding-top: 2.5rem !important; }
  
  /* 9) Mobile: bỏ kéo âm để tránh đè notch, giữ bố cục sạch */
  @media (max-width: 767.98px) {
	.container-fluid.service.facilities-page {
	  margin-top: 0;
	  padding-top: 40px !important;
	}
  }
/* Our Team dots */
.team .owl-theme .owl-dots{
	display:flex; justify-content:center; gap:10px; margin-top:16px;
  }
  .team .owl-theme .owl-dots .owl-dot span{
	width:14px; height:14px; display:block;
	border-radius:999px; background:#2F7D32; /* xanh lá cho dot chưa chọn */
	opacity:1; transition:width .25s ease, background-color .25s ease;
  }
  .team .owl-theme .owl-dots .owl-dot.active span{
	height: 14px;
	width:36px;                      /* “viên ngang” khi active */
	background:#3B82F6;              /* xanh dương khi active */
  }
  /* (tuỳ chọn) khi hover cũng chuyển xanh dương */
  .team .owl-theme .owl-dots .owl-dot:hover span{
	background:#3B82F6;
  }
  
  .testimonial-text {
	display: -webkit-box;
	-webkit-line-clamp: 3;   /* số dòng muốn giới hạn */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
  }

/* BLOG: title 2 dòng */
.blog .blog-item .blog-text-inner .h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.35;              /* chỉnh cho đẹp */
  min-height: calc(1.35em * 2);   /* giữ khung đều */
  margin: 12px 0 8px;
  color: #393d72;                  /* tím */
  font-weight: 600;
}

/* BLOG: Đảm bảo các card tin tức có chiều cao bằng nhau và sắp xếp đúng */
.blog .row > [class*="col-"] {
  display: flex;
  margin-bottom: 2rem;
}

.blog .blog-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog .blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Đảm bảo nội dung card được phân bố đều */
.blog .blog-item .px-4.pb-4 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog .blog-item .blog-text-inner {
  flex-grow: 1;
}

.blog .blog-item .text-center {
  margin-top: auto;
}

/* Trang chi tiết tin tức - Title */
.news-detail-title {
    font-size: 2rem !important;               /* chữ lớn */
    font-weight: 700;              /* đậm */
    color: #393d72;      /* dùng màu chủ đạo Army English */
    /*text-align: center;   */         /* căn giữa */
    line-height: 1.4;
    margin: 1.5rem 0; 
	margin-bottom: 1rem;             /* khoảng cách trên dưới */
    position: relative;
}
  
.news-detail-img {
	margin-top: 1rem;      /* tạo khoảng cách trên ảnh */
	display: block;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hiệu ứng mượt */
	cursor: pointer; /* Con trỏ tay khi hover */
}

/* Hiệu ứng hover cho ảnh chi tiết tin tức */
.news-detail-img:hover {
    /* Không phóng to ảnh bìa để tránh che nội dung/tiêu đề */
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Đổ bóng khi hover */
}

.news-gallery, .event-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 24px;
  }
  
  .gallery-item {
	margin: 0;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
  }
  
  .gallery-item img {
 	width: 100%;
 	height: auto;                 /* hiển thị đủ nội dung ảnh */
 	object-fit: contain;          /* không cắt ảnh */
 	display: block;
 	background: #ffffff;          /* nền trắng nếu ảnh không phủ kín */
   }
  
  .gallery-item figcaption {
	padding: 8px 10px;
	font-size: 14px;
	font-weight: 700;            /* in đậm chú thích */
	text-align: center;
	color: #333;
	background: #f8f8f8;
	border-top: 1px solid #eee;
  }
  
  /* Responsive */
  @media (max-width: 992px) {
	.news-gallery { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
	.news-gallery { grid-template-columns: 1fr; }
  }


/* Đảm bảo ảnh không chạm vào title khi hover */
.news-detail-title {
	margin-bottom: 1.5rem !important; /* Tăng khoảng cách với ảnh */
}

.news-gallery-banner {
    display: block;           /* bỏ grid */
    margin-top: 24px;
}

.news-gallery-banner .gallery-item {
    border: none;             /* tuỳ chọn: bỏ viền */
    border-radius: 0;         /* tuỳ chọn: bỏ bo góc */
    background: transparent;  /* tuỳ chọn: bỏ nền trắng */
}

.news-gallery-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;        /* ảnh full chiều ngang, giống banner */
    display: block;
}
.news-gallery-banner figcaption {
    text-align: center;
    margin-top: 8px;
    background: none;         /* nếu muốn bỏ nền xám */
    border-top: none;
}



  /* =========================
   EVENTS – fix avatar circle sizing
   ========================= */
/* Make all event thumbnails perfectly square so the rounded-circle clipping is uniform */
.events .events-item .events-img {
    aspect-ratio: 1 / 1;            /* always a square wrapper */
    width: 100%;
    display: block;
}

/* Ensure the image fully covers the circular frame without leaving green gaps */
.events .events-item .events-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;              /* fill frame */
    object-position: center;        /* center crop */
    display: block;                 /* remove descender gaps */
}

  
/* Moon detail page headings */
.moon-card h4,
.moon-card h5 {
    color: #393D72 !important;
}

.program-text {
    /*border-radius: 0 0 10px 10px;*/ /* chỉ bo góc dưới */
		border-radius:0;
}

/* Container nút play */
.btn-play {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2D904F; /* xanh Army */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Tam giác play */
.btn-play::before {
    content: "";
    position: relative;
    left: 3px;
    border-left: 20px solid #fff; /* màu trắng mặc định */
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    transition: border-left-color 0.3s ease;
}

/* Sóng lan */
.btn-play::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(45, 144, 79, 0.4);
    animation: pulse 1.5s infinite;
    z-index: -1;
}

/* Hover: đổi màu */
.btn-play:hover {
    background: #fff;
    transform: scale(1.1);
}
.btn-play:hover::before {
    border-left-color: #2D904F; /* tam giác thành xanh */
}

/* Keyframes sóng lan */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Đảm bảo dùng chung biến thương hiệu */
:root { --btn-bg: var(--bs-primary); --btn-contrast: #fff; }

/* Cho toàn bộ cây con kế thừa màu (không chỉ con trực tiếp) */
.btn-dir, .btn-dir * { color: inherit !important; }

/* Trạng thái hover/active – ép màu chữ xanh, nền trắng */
.btn-dir:hover,
.btn-dir:active {
  color: var(--btn-bg, #198754) !important;
  background: var(--btn-contrast, #fff) !important;
  border-color: var(--btn-bg, #198754) !important;
}
.btn-dir:hover *, .btn-dir:active * { color: inherit !important; }

/* Nếu lỡ gắn text-white, vẫn đổi màu khi hover */
.btn-dir.text-white:hover,
.btn-dir.text-white:active { color: var(--btn-bg, #198754) !important; }
.btn-dir.text-white:hover *, 
.btn-dir.text-white:active * { color: inherit !important; }

/* Trang chi tiết sự kiện - Title */
.event-detail-title {
    font-size: 2rem !important;               /* chữ lớn */
    font-weight: 700;              /* đậm */
    color: #393d72;      /* dùng màu chủ đạo Army English */
    /*text-align: center;   */         /* căn giữa */
    line-height: 1.4;
    margin: 1.5rem 0; 
	margin-bottom: 1rem;             /* khoảng cách trên dưới */
    position: relative;
}
  
.event-detail-img {
	margin-top: 1rem;      /* tạo khoảng cách trên ảnh */
	display: block;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hiệu ứng mượt */
	cursor: pointer; /* Con trỏ tay khi hover */
}

/* Hiệu ứng hover cho ảnh chi tiết tin tức */
.event-detail-img:hover {
    /* Không phóng to ảnh bìa để tránh che nội dung/tiêu đề */
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Đổ bóng khi hover */
}

/* EVENTS: title tối đa 2 dòng */
.events-text .h4 {
	display: -webkit-box;
	-webkit-line-clamp: 2;          /* giới hạn 2 dòng */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
  
	line-height: 1.35;
	min-height: calc(1.35em * 2);   /* giữ chiều cao đều */
	margin: 12px 0 8px;
	color: #393d72;
	font-weight: 600;
}
  
  /* EVENTS: excerpt tối đa 3 dòng */
.events-text p {
	display: -webkit-box;
	-webkit-line-clamp: 3;          /* giới hạn 3 dòng */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
  
	line-height: 1.5;
	min-height: calc(1.5em * 3);    /* giữ khung đều */
	margin: 0;
	color: #555;
}

/* CARD + sweep overlay */
.service-items{
	position: relative;
	overflow: hidden;
	background: #fff !important;                 /* giữ bg-white của Bootstrap */
	border: 1px solid #198754 !important;
	border-radius: 30% / 15%;
	padding: 20px;
	text-align: center;
	transition: border-color .3s ease, color .3s ease;
	z-index: 0;                                  /* tạo stacking context */
  }
  
  /* Lớp phủ màu xanh – bắt đầu từ 0% chiều rộng, nằm TRÊN background nhưng DƯỚI nội dung */
  .service-items::before{
	content: "";
	position: absolute;
	inset: 0 auto 0 0;                           /* bám phải */
	width: 0;                                    /* ban đầu chưa phủ */
	height: 100%;
	background: #198754;
	border-radius: 30% / 15%;                    /* cùng border-radius với card */
	transition: width 0.8s ease;
	z-index: 0;                                  /* quan trọng: >=0 để phủ lên background */
  }
  
  /* Đảm bảo nội dung nổi trên overlay */
  .service-items > *{
	position: relative;
	z-index: 1;
  }
  
  /* Hover: lớp phủ chạy từ trái sang phải */
  .service-items:hover::before{
	width: 100%;
  }
  
  /* Màu chữ/icon */
  .service-items h5{ color:#198754; font-weight:600; }
  .service-items p{ color:#666; font-size:14px; }
  
  /* Icon đang có .text-primary (Bootstrap) → cần !important khi hover */
  .service-items:hover h5,
  .service-items:hover p,
  .service-items:hover i{
	color:#fff !important;
  }
  
  /* Tuỳ chọn: nét viền đậm hơn khi hover */
  .service-items:hover{
	border-color:#198754 !important;
  }
  
.footer-galary-img {
    width: 100px;          /* kích thước khung tròn */
    height: 100px;
    border-radius: 50%;    /* bo tròn */
    overflow: hidden;      /* cắt ảnh thừa ra ngoài */
    margin: 0 auto;        /* căn giữa */
}

.footer-galary-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* ảnh lấp đầy khung tròn */
    display: block;
}


  
  
  
  
/* Keep program bottom badges white on hover (override theme icon hover) */
.program .program-item:hover > .d-flex.justify-content-between i,
.program .program-item:hover > .d-flex.justify-content-between span,
.program .program-item:hover > .d-flex.justify-content-between small,
.program .program-item:hover > .d-flex.justify-content-between .text-white,
.program .program-item > .d-flex.justify-content-between i:hover,
.program .program-item > .d-flex.justify-content-between span:hover,
.program .program-item > .d-flex.justify-content-between small:hover {
    color: #fff !important;
    transform: none;
}

/* Pagination styling for News and Events pages - Army Green Theme */
.events .pagination .page-link,
.blog .pagination .page-link {
    color: var(--army-green-primary) !important;
    border-color: rgba(45, 144, 79, 0.3);
    background-color: #fff;
    transition: all 0.3s ease;
}

.events .pagination .page-link:hover,
.blog .pagination .page-link:hover {
    color: #fff !important;
    background-color: var(--army-green-primary) !important;
    border-color: var(--army-green-primary) !important;
}

.events .pagination .page-item.active .page-link,
.blog .pagination .page-item.active .page-link {
    background-color: var(--army-green-primary) !important;
    border-color: var(--army-green-primary) !important;
    color: #fff !important;
}

.events .pagination .page-item.disabled .page-link,
.blog .pagination .page-item.disabled .page-link {
    color: rgba(45, 144, 79, 0.4) !important;
    background-color: #fff;
    border-color: rgba(45, 144, 79, 0.2);
}

