/* ==============================
   ADCARE Việt Nam - Main CSS
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy:        #2e5c10;   /* xanh đậm (nền navbar, footer, header) */
  --navy-dark:   #1e3d0a;   /* xanh rất đậm */
  --navy-light:  #3d7a18;   /* xanh vừa */
  --accent:      #7db833;   /* xanh chuối chủ đạo */
  --accent-hover:#659a28;   /* xanh chuối đậm hơn (hover) */
  --blue:        #5a9020;   /* xanh lá liên kết */
  --blue-light:  #72b028;   /* xanh lá nhạt */
  --text:        #2d2d2d;
  --text-muted:  #666666;
  --light:       #f2f8ed;   /* nền section xanh nhạt */
  --white:       #ffffff;
  --border:      #ddeecf;   /* viền xanh nhạt */
  --shadow:      0 4px 20px rgba(46,92,16,0.10);
  --shadow-hover:0 8px 30px rgba(46,92,16,0.18);
  --radius:      8px;
  --radius-lg:   12px;
  --transition:  all 0.3s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary-custom:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-custom:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---- Section titles ---- */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
}
.section-title.text-center::after { margin: 10px auto 0; }

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

/* ---- Cards ---- */
.card-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.card-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}
.card-item:hover img { transform: scale(1.05); }
.card-item .card-img-wrap { overflow: hidden; }
.card-item .card-body { padding: 20px; }
.card-item .card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.card-item .card-text {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-item .card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.card-item .card-link:hover { color: var(--navy); }

/* ---- Breadcrumb ---- */
.breadcrumb-wrap {
  background: var(--light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--blue); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ---- Pagination ---- */
.pagination .page-link {
  color: var(--navy);
  border-color: var(--border);
  padding: 8px 14px;
}
.pagination .page-item.active .page-link {
  background: var(--navy);
  border-color: var(--navy);
}
.pagination .page-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---- Utility ---- */
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.text-navy { color: var(--navy) !important; }
.text-accent { color: var(--accent) !important; }

/* ---- About features ---- */
.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.about-feature-item:hover {
  background: #e6f4d7;
  transform: translateX(4px);
}
.about-feature-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent);
}
.about-feature-text {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}
