/* ══════════════════════════════════════════════════════════════════════════
   FokaSoft – Main Stylesheet
   Theme: Gradient Blue / Cyan
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────────── */
:root {
  --primary:      #0056b3;
  --primary-dark: #003d80;
  --cyan:         #00c6ff;
  --cyan-dark:    #0092cc;
  --gradient:     linear-gradient(135deg, #0056b3 0%, #00c6ff 100%);
  --gradient-rev: linear-gradient(135deg, #00c6ff 0%, #0056b3 100%);
  --text-dark:    #1a1a2e;
  --text-body:    #4a4a6a;
  --text-muted:   #6c757d;
  --bg-light:     #f0f8ff;
  --card-shadow:  0 4px 24px rgba(0, 86, 179, 0.10);
  --card-hover:   0 8px 40px rgba(0, 86, 179, 0.18);
  --radius:       12px;
  --radius-lg:    20px;
  --font:         'Be Vietnam Pro', sans-serif;
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-body);
  background: #fff;
  padding-top: 76px;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-weight: 700; }
a { text-decoration: none; transition: all .25s; }
img { max-width: 100%; height: auto; }
.navbar-brand img { height: 40px; width: auto; max-width: none; }

/* ── Utilities ───────────────────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-cyan { color: var(--cyan-dark) !important; }
.bg-light-blue { background: var(--bg-light); }
.section-padding { padding: 80px 0; }
.badge.bg-primary-soft { background: #e3f0ff !important; }
.badge.bg-success-soft { background: #e6f9f0 !important; }
.badge.bg-info-soft    { background: #e3f8ff !important; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-gradient {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(0, 86, 179, .30);
}
.btn-gradient:hover {
  background: var(--gradient-rev);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, .40);
}
.btn-gradient-sm {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .85rem;
  font-weight: 600;
  transition: all .3s;
}
.btn-gradient-sm:hover {
  background: var(--gradient-rev);
  color: #fff;
  transform: translateY(-1px);
}
.btn-facebook { background: #1877f2; color: #fff; }
.btn-facebook:hover { background: #0d6efd; color: #fff; }

/* ── NAVBAR ─────────────────────────────────────────────────────────── */
#mainNav {
  background: linear-gradient(90deg, #0056b3 0%, #0092cc 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  padding: 12px 0;
  transition: all .3s;
}
#mainNav.scrolled {
  padding: 8px 0;
  background: linear-gradient(90deg, #003d80 0%, #006d99 100%);
}
.brand-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
}
.brand-text { color: #fff; letter-spacing: .5px; }
.navbar-nav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  border-radius: 8px;
  transition: all .25s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.15);
}

/* ── HERO SLIDER ────────────────────────────────────────────────────── */
.hero-section { position: relative; height: 100vh; min-height: 600px; margin-top: -76px; }
.heroSwiper { height: 100%; }
.hero-slide {
  height: 100%;
  background: var(--gradient);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide-default {
  background: linear-gradient(135deg, #003d80 0%, #0056b3 40%, #00c6ff 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,30,80,.75) 0%, rgba(0,100,160,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  color: #fff;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.25);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin: 0 auto;
}
.swiper-button-prev,
.swiper-button-next {
  color: #fff !important;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  width: 48px; height: 48px;
  border-radius: 50%;
  transition: all .25s;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255,255,255,.30);
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 1.1rem !important; font-weight: 700; }
.swiper-pagination-bullet { background: rgba(255,255,255,.6) !important; }
.swiper-pagination-bullet-active { background: #fff !important; width: 24px; border-radius: 4px; }
.scroll-down-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.scroll-down-indicator a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── STATS BAR ──────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--gradient);
  border-bottom: 3px solid rgba(255,255,255,.2);
}
.stat-item .stat-num {
  font-size: 2rem; font-weight: 800; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.stat-item .stat-label {
  font-size: .85rem; color: rgba(255,255,255,.85); font-weight: 500;
}

/* ── SECTION HEADER ─────────────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e3f0ff, #d0f0ff);
  color: var(--primary);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 10px 0 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-header .section-title,
.section-header .section-subtitle { margin: 10px auto; }

/* ── SERVICE CARDS ───────────────────────────────────────────────────── */
.category-header { margin-bottom: 24px; }
.category-icon-wrap {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,86,179,.25);
}
.category-title { font-size: 1.5rem; }

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(0,86,179,.07);
  will-change: transform;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover);
}
.service-card-img { height: 200px; overflow: hidden; position: relative; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,30,80,.6));
}
.service-card-body { padding: 20px; }
.service-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service-card-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 12px; }
.service-features { list-style: none; padding: 0; margin-bottom: 16px; }
.service-features li {
  font-size: .88rem; color: var(--text-body);
  padding: 4px 0; display: flex; align-items: flex-start; gap: 4px;
}
.service-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding-top: 12px; border-top: 1px solid #f0f0f0;
}
.service-price .price-label { font-size: .75rem; color: var(--text-muted); display: block; }
.service-price .price-value {
  font-size: 1.1rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── WHY CHOOSE US ───────────────────────────────────────────────────── */
.why-section { background: #fff; }
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,86,179,.06);
  transition: all .3s;
  height: 100%;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover); }
.why-icon {
  width: 70px; height: 70px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  margin: 0 auto 18px;
  box-shadow: 0 4px 15px rgba(0,86,179,.3);
}
.why-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: .9rem; }

/* ── CTA SECTION ─────────────────────────────────────────────────────── */
.cta-section { background: var(--bg-light); }
.cta-box {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  box-shadow: 0 8px 40px rgba(0,86,179,.3);
}
.text-white-75 { color: rgba(255,255,255,.78); }

/* ── PAGE HERO ───────────────────────────────────────────────────────── */
.page-hero {
  background: var(--gradient);
  padding: 136px 0 50px;
  margin-top: -76px;
}
.page-hero-title {
  color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; margin-bottom: 16px;
}
.page-hero .breadcrumb { background: transparent; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── ABOUT PAGE ─────────────────────────────────────────────────────── */
.about-img-wrap { position: relative; border-radius: var(--radius-lg); }
.about-badge-card {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gradient);
  color: #fff; padding: 20px;
  border-radius: var(--radius); text-align: center;
  box-shadow: 0 8px 30px rgba(0,86,179,.35);
  min-width: 120px;
}
.badge-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.badge-text { font-size: .78rem; opacity: .9; }
.about-stat-box { background: var(--bg-light); border-radius: var(--radius); padding: 16px; }
.about-stat-num { font-size: 1.8rem; font-weight: 800; }
.about-stat-label { font-size: .82rem; color: var(--text-muted); }

/* Rich text output from CKEditor on About page */
.about-rich-content p  { margin-bottom: .85rem; line-height: 1.75; }
.about-rich-content h2,
.about-rich-content h3 { font-weight: 700; margin: 1.25rem 0 .5rem; color: var(--text-dark); }
.about-rich-content ul,
.about-rich-content ol { padding-left: 1.4rem; margin-bottom: .85rem; }
.about-rich-content li { margin-bottom: .3rem; }
.about-rich-content blockquote {
  border-left: 4px solid var(--primary);
  padding: .5rem 1rem;
  margin: 1rem 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.mission-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  height: 100%;
}
.mission-icon {
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  margin: 0 auto 16px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  box-shadow: var(--card-shadow);
  transition: all .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover); }
.team-avatar {
  width: 72px; height: 72px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.team-name { font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: .88rem; }

/* ── PROJECT CARDS ───────────────────────────────────────────────────── */
.project-tabs .nav-link {
  border-radius: 50px; color: var(--primary); font-weight: 600;
  padding: 8px 24px; border: 2px solid rgba(0,86,179,.2);
  margin: 0 4px;
}
.project-tabs .nav-link.active {
  background: var(--gradient); color: #fff; border-color: transparent;
}
.project-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  will-change: transform;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover); }
.project-card-img { height: 220px; position: relative; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-card-img img { transform: scale(1.06); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,30,80,.65);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .3s;
}
.project-card:hover .project-card-overlay { opacity: 1; }
/* Touch devices: show a persistent view button below image instead of hover overlay */
@media (hover: none) {
  .project-card-overlay { display: none; }
  .project-card-body { padding-bottom: 14px; }
}
.project-card-body { padding: 18px; }
.project-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }

/* ── BLOG CARDS ─────────────────────────────────────────────────────── */
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  will-change: transform;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 20px; }
.blog-card-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-title a { color: var(--text-dark); }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-summary { font-size: .88rem; color: var(--text-muted); }
.blog-read-more { font-size: .88rem; font-weight: 600; color: var(--primary); }
.blog-read-more:hover { color: var(--cyan-dark); }

/* Blog detail */
.blog-detail-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; }
.blog-meta { font-size: .9rem; }
.alert-info-custom {
  background: #e3f0ff; border: 1px solid #b3d4ff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius); color: var(--text-dark);
}
.blog-content { font-size: 1rem; line-height: 1.8; color: var(--text-body); }
.blog-content h2, .blog-content h3 { font-weight: 700; margin: 24px 0 12px; color: var(--text-dark); }
.blog-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.blog-sidebar { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--card-shadow); }
.sidebar-title { font-weight: 700; color: var(--text-dark); padding-bottom: 12px; border-bottom: 2px solid #f0f0f0; }
.recent-post-title { font-size: .88rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; display: block; }
.recent-post-title:hover { color: var(--primary); }
.sidebar-cta { background: var(--gradient); border-radius: var(--radius); padding: 20px; color: #fff; }
.sidebar-cta h6, .sidebar-cta p { color: #fff; }

/* Pagination */
.pagination-custom .page-link {
  border-radius: 8px; margin: 0 2px;
  border: 2px solid rgba(0,86,179,.2);
  color: var(--primary); font-weight: 600;
}
.pagination-custom .page-item.active .page-link {
  background: var(--gradient); border-color: transparent; color: #fff;
}

/* ── CONTACT PAGE ────────────────────────────────────────────────────── */
.contact-icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.contact-form-card { background: #fff; box-shadow: var(--card-shadow); }

/* ── SERVICE DETAIL ──────────────────────────────────────────────────── */
.price-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--card-shadow); overflow: hidden; }
.price-card-header { background: var(--gradient); color: #fff; padding: 18px 24px; }
.price-card-header h5 { color: #fff; }
.price-card-body { padding: 24px; }
.price-display { padding: 16px; background: var(--bg-light); border-radius: var(--radius); }
.price-label-sm { font-size: .78rem; color: var(--text-muted); }
.price-large { font-size: 2rem; font-weight: 800; }
.price-meta { margin: 0; }
.price-meta li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
.feature-item {
  background: var(--bg-light); border-radius: 8px;
  padding: 8px 12px; font-size: .88rem;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.footer-main { background: #0a1628; }
.brand-icon-lg {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}
.text-footer-muted { color: rgba(255,255,255,.55); font-size: .9rem; }
.footer-contact-list { list-style: none; padding: 0; font-size: .88rem; }
.footer-contact-list li { padding: 4px 0; color: rgba(255,255,255,.65); }
.footer-contact-list a { color: rgba(255,255,255,.65); }
.footer-contact-list a:hover { color: var(--cyan); }
.footer-heading { color: rgba(255,255,255,.9); font-weight: 700; font-size: .95rem; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .88rem; transition: all .25s; }
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; font-weight: 700;
  transition: transform .25s;
}
.social-icon:hover { transform: translateY(-3px); color: #fff; }
.social-icon.facebook { background: #1877f2; }
.social-icon.zalo     { background: #0068ff; width: auto; padding: 0 12px; border-radius: 10px; }
.social-icon.tiktok   { background: #000; }
.footer-company-info { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.footer-bct-notice { margin-top: 12px; }
.footer-bct-notice img {
  max-width: 220px;
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: #fff;
}
.footer-divider { border-color: rgba(255,255,255,.1); }

/* ── FLOATING BUTTONS ──────────────────────────────────────────────── */
.floating-buttons {
  position: fixed; bottom: 24px; right: 20px;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 10px; z-index: 1050;
}
.float-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: all .3s; position: relative;
  font-size: 1.1rem;
}
.float-btn:hover { transform: scale(1.12); animation-play-state: paused; }
.float-btn .float-label {
  position: absolute; right: 58px; white-space: nowrap;
  background: rgba(0,0,0,.75); color: #fff;
  font-size: .72rem; padding: 3px 10px;
  border-radius: 50px; opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.float-btn:hover .float-label { opacity: 1; }
.float-zalo     { background: linear-gradient(135deg, #00f, #0068ff); }
.float-facebook { background: #1877f2; }
.float-call     { background: linear-gradient(135deg, #ff6b35, #f7931e); animation: callPulse 1.4s ease-in-out infinite; }
.float-top      { background: linear-gradient(135deg, #667eea, #764ba2); }

@keyframes callPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 0 rgba(255,107,53,.7); transform: scale(1); }
  50%       { box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 12px rgba(255,107,53,0); transform: scale(1.1); }
}

/* ── ZALO POPUP CARD ─────────────────────────────────────────────── */
.float-zalo-wrap { position: relative; }
.zalo-popup {
  position: absolute; bottom: 0; right: 60px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  min-width: 210px; overflow: hidden;
  opacity: 0; transform: scale(.92) translateX(8px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  transform-origin: right bottom;
  z-index: 10;
}
.zalo-popup.show { opacity: 1; transform: scale(1) translateX(0); pointer-events: auto; }
.zalo-popup-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; text-decoration: none; color: #111;
  border-bottom: 1px solid #f0f0f0;
  transition: background .18s;
}
.zalo-popup-row:hover { background: #f5f8ff; color: #0068ff; }
.zalo-popup-icon { font-size: 1.3rem; color: #0068ff; flex-shrink: 0; }
.zalo-popup-text { font-size: .85rem; line-height: 1.3; }
.zalo-popup-qr {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 14px 10px; text-decoration: none; color: #555;
  transition: background .18s;
}
.zalo-popup-qr:hover { background: #f5f8ff; }
.zalo-qr-img { width: 140px; height: 140px; object-fit: contain; border-radius: 8px; border: 1px solid #e8e8e8; }
.zalo-qr-hint { font-size: .72rem; margin-top: 6px; color: #888; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section { height: 85vh; min-height: 500px; }
  .page-hero { padding: 44px 0 36px; }
  .section-padding { padding: 56px 0; }
  .about-badge-card { right: 0; bottom: 0; }
}
@media (max-width: 767.98px) {
  .hero-section { height: 75vh; min-height: 420px; }
  body { padding-top: 68px; }
  .stats-bar .stat-item .stat-num { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS (max-width: 575.98px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {

  /* ── Body / spacing ── */
  body { padding-top: 64px; }
  .section-padding { padding: 40px 0; }

  /* ── Navbar ── */
  #mainNav { padding: 8px 0; }
  .brand-text { font-size: 1rem; }
  .navbar-nav .nav-link { padding: 10px 16px !important; border-radius: 0; }
  .navbar-collapse { background: linear-gradient(180deg,#003d80,#005fad); padding: 8px 0 12px; }
  #navbarMain .btn-gradient { margin: 8px 16px 4px; width: calc(100% - 32px); text-align: center; border-radius: 8px; }

  /* ── Page hero ── */
  .page-hero { padding: 104px 0 32px; }
  .page-hero-title { font-size: 1.5rem; }

  /* ── Hero slider ── */
  .hero-section { height: 68vh; min-height: 380px; margin-top: -64px; }
  .hero-title { font-size: 1.5rem; }
  .hero-badge { font-size: .75rem; padding: 4px 14px; }
  .hero-buttons .btn { padding: 10px 18px; font-size: .88rem; }
  .swiper-button-prev, .swiper-button-next { display: none; }
  .scroll-down-indicator { display: none; }

  /* ── Stats bar ── */
  .stats-bar { padding: 20px 0; }
  .stat-item .stat-num { font-size: 1.4rem; }
  .stat-item .stat-label { font-size: .75rem; }

  /* ── Section header ── */
  .section-badge { font-size: .75rem; }
  .section-title { font-size: 1.4rem; margin-bottom: 8px; }
  .section-subtitle { font-size: .88rem; }

  /* ── Service cards ── */
  .category-icon-wrap { width: 44px; height: 44px; font-size: 1rem; }
  .category-title { font-size: 1.2rem; }
  .service-card-body { padding: 14px; }
  .service-card-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .service-card-footer .d-flex { width: 100%; }
  .service-card-footer .d-flex .btn,
  .service-card-footer .d-flex button { flex: 1; text-align: center; justify-content: center; }

  /* ── Why cards ── */
  .why-card { padding: 24px 16px; }
  .why-icon { width: 56px; height: 56px; font-size: 1.2rem; }

  /* ── CTA ── */
  .cta-box { padding: 36px 16px; }
  .cta-box h2 { font-size: 1.4rem; }
  .cta-box .btn { width: 100%; margin-bottom: 8px; }

  /* ── About page ── */
  .about-img-wrap { margin-bottom: 48px; }
  .about-badge-card { right: 8px; bottom: -16px; padding: 12px; min-width: 100px; }
  .badge-num { font-size: 1.5rem; }
  .about-stat-num { font-size: 1.4rem; }
  .about-stat-box { padding: 12px; }

  /* ── Projects ── */
  .project-tabs { flex-wrap: wrap; gap: 6px; }
  .project-tabs .nav-link { padding: 6px 16px; font-size: .85rem; margin: 0; }
  .project-card-img { height: 180px; }

  /* ── Blog ── */
  .blog-card-img { height: 180px; }
  .blog-card-body { padding: 14px; }
  .blog-card-title { font-size: .95rem; }

  /* ── Contact ── */
  .contact-form-card { padding: 20px !important; }

  /* ── Service detail ── */
  .price-card-body { padding: 16px; }
  .price-large { font-size: 1.6rem; }

  /* ── Footer ── */
  .footer-main { padding-top: 36px !important; }
  .footer-heading { margin-top: 8px; }
  .footer-social { gap: 8px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   User Dashboard – Layout & Components
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.ud-wrapper {
  min-height: calc(100vh - 76px);
  background: #f0f4f9;
  padding: 30px 0 60px;
}

/* ── Two-column layout ── */
.ud-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* ══ SIDEBAR ══ */
.ud-sidebar {
  width: 272px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Profile Card */
.ud-profile-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 28px 20px 22px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,86,179,.28);
}
.ud-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 3px solid rgba(255,255,255,.55);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  letter-spacing: .02em;
}
.ud-name  { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.ud-email { font-size: .76rem; color: rgba(255,255,255,.82); margin-bottom: 3px; word-break: break-all; }
.ud-phone { font-size: .76rem; color: rgba(255,255,255,.82); margin-bottom: 0; }

/* Stats */
.ud-stats {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--card-shadow);
}
.ud-stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ud-stat-num  { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.ud-stat-label{ font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.ud-stat-divider { width: 1px; height: 32px; background: #e8edf5; }

/* Sidebar Nav */
.ud-nav {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.ud-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background .18s, color .18s;
  border-left: 3px solid transparent;
}
.ud-nav-item i { width: 18px; text-align: center; flex-shrink: 0; font-size: .9rem; }
.ud-nav-text   { flex: 1; }
.ud-nav-item:hover { background: var(--bg-light); color: var(--primary); }
.ud-nav-item.active {
  background: linear-gradient(90deg,#deeeff 0%,#f0f8ff 100%);
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}

/* Nav badge */
.ud-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
}
.ud-badge-danger { background: #dc3545; }

/* Logout */
.ud-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  color: #dc3545;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  transition: background .2s, color .2s;
}
.ud-logout-btn:hover { background: #dc3545; color: #fff; }

/* ══ MAIN CONTENT ══ */
.ud-main { flex: 1; min-width: 0; }

/* Panel */
.ud-panel       { display: none; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--card-shadow); overflow: hidden; }
.ud-panel.active{ display: block; }

.ud-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eef1f7;
  gap: 12px;
  flex-wrap: wrap;
}
.ud-panel-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ud-count-badge {
  font-size: .7rem;
  font-weight: 700;
  background: #e3f0ff;
  color: var(--primary);
  border-radius: 20px;
  padding: 2px 8px;
}
.ud-count-danger { background: #ffe3e3; color: #dc3545; }
.ud-panel-body  { padding: 20px 24px 24px; }

/* Status Badges */
.ud-status-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.ud-status-new       { background: #fff3cd; color: #856404; }
.ud-status-contacted { background: #cff4fc; color: #0c607c; }
.ud-status-completed { background: #d1e7dd; color: #0a5c36; }
.ud-status-open      { background: #fff3cd; color: #856404; }
.ud-status-in_progress{ background: #cfe2ff; color: #084298; }
.ud-status-closed    { background: #e2e3e5; color: #41464b; }

/* Action Button */
.ud-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  transition: background .18s, color .18s;
}
.ud-action-btn:hover { background: var(--primary); color: #fff; }

/* ── Reg Table (desktop) ── */
.ud-table-wrap { overflow-x: auto; border-radius: 8px; }
.ud-table      { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.ud-table thead th {
  background: #f8fafc;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 11px 14px;
  border-bottom: 1px solid #eef1f7;
}
.ud-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f5f7fb;
  vertical-align: middle;
}
.ud-table tbody tr:last-child td { border-bottom: none; }
.ud-table tbody tr:hover td { background: #fafbff; }

/* ── Reg Cards (mobile, hidden on desktop) ── */
.ud-card-list  { display: none; }
.ud-reg-card   {
  border: 1px solid #eef1f7;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: box-shadow .18s;
}
.ud-reg-card:hover     { box-shadow: var(--card-hover); }
.ud-reg-card-top       { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ud-reg-service        { font-weight: 700; font-size: .9rem; color: var(--text-dark); }
.ud-reg-date           { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.ud-reg-msg            { font-size: .82rem; color: var(--text-muted); margin: 0 0 8px; }
.ud-reg-card-foot      { border-top: 1px solid #f0f0f0; padding-top: 8px; margin-top: 4px; }

/* ── Project Cards ── */
.ud-proj-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #eef1f7;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ud-proj-card:hover { box-shadow: var(--card-hover); transform: translateY(-3px); }
.ud-proj-thumb { position: relative; height: 155px; overflow: hidden; }
.ud-proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ud-proj-card:hover .ud-proj-thumb img { transform: scale(1.05); }
.ud-proj-thumb-placeholder {
  height: 155px;
  background: linear-gradient(135deg,#eef2ff,#f0f8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ud-proj-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.ud-type-success { background: #d1e7dd; color: #0a5c36; }
.ud-type-warning { background: #fff3cd; color: #856404; }
.ud-type-info    { background: #cff4fc; color: #0c607c; }
.ud-proj-body    { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.ud-proj-title   { font-size: .9rem; font-weight: 700; color: var(--text-dark); display: block; margin-bottom: 4px; transition: color .18s; }
.ud-proj-title:hover { color: var(--primary); }
.ud-proj-client  { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }
.ud-proj-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.ud-proj-btn {
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  transition: background .18s, color .18s;
}
.ud-proj-btn:hover { background: var(--primary); color: #fff; }
.ud-proj-btn-pdf  { border-color: #dc3545; color: #dc3545; }
.ud-proj-btn-pdf:hover { background: #dc3545; color: #fff; }
.ud-proj-btn-contract  { border-color: #6c757d; color: #6c757d; }
.ud-proj-btn-contract:hover { background: #6c757d; color: #fff; }

/* ── Ticket List ── */
.ud-ticket-list { display: flex; flex-direction: column; }
.ud-ticket-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f4f9;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.ud-ticket-item:last-child { border-bottom: none; }
.ud-ticket-item:hover      { background: #fafbff; }
.ud-ticket-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg,#e3f0ff,#c8e6ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}
.ud-ticket-icon-muted { background: #f0f0f0; color: var(--text-muted); }
.ud-ticket-body   { flex: 1; min-width: 0; }
.ud-ticket-subject{ font-weight: 600; font-size: .88rem; color: var(--text-dark); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-ticket-meta   { font-size: .76rem; color: var(--text-muted); }
.ud-view-all      { font-size: .85rem; font-weight: 600; color: var(--primary); }
.ud-view-all:hover{ text-decoration: underline; }

/* ── Empty State ── */
.ud-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 20px;
  text-align: center;
}
.ud-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-light);
  color: #b0c4de;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.ud-empty-text { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }

/* ── Page Header (support.php) ── */
.ud-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #eef1f7;
}
.ud-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  color: var(--text-body);
  border: 1.5px solid #dde4ef;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.ud-back-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ud-page-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 2px; color: var(--text-dark); }
.ud-page-sub   { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* ── Mobile: hidden on desktop ── */
.ud-mobile-header,
.ud-mobile-stats,
.ud-mobile-tabs,
.ud-avatar-sm { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   Responsive – User Dashboard
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .ud-wrapper  { padding: 0 0 60px; }
  .ud-container{ flex-direction: column; gap: 0; }
  .ud-sidebar  { display: none; }
  .ud-main     { width: 100%; }

  /* Mobile gradient strip */
  .ud-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient);
    padding: 16px 18px;
    border-radius: 0 0 0 0;
  }
  .ud-mh-name  { font-size: .9rem; font-weight: 700; color: #fff; }
  .ud-mh-email { font-size: .74rem; color: rgba(255,255,255,.78); word-break: break-all; }
  .ud-mh-logout{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: .95rem;
    flex-shrink: 0;
    transition: background .18s;
  }
  .ud-mh-logout:hover { background: rgba(255,255,255,.35); }

  /* Avatar initials (small) */
  .ud-avatar-sm {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    border: 2px solid rgba(255,255,255,.55);
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Mobile stats bar */
  .ud-mobile-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f7;
  }
  .ud-mstat        { display: flex; flex-direction: column; align-items: center; gap: 1px; }
  .ud-mstat-num    { font-size: 1.25rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
  .ud-mstat-label  { font-size: .7rem; color: var(--text-muted); }
  .ud-mstat-divider{ width: 1px; height: 28px; background: #e8edf5; }

  /* Mobile tab pills */
  .ud-mobile-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #eef1f7;
    padding: 0 8px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ud-mobile-tabs::-webkit-scrollbar { display: none; }

  .ud-tab-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    border: none;
    background: transparent;
    font-size: .82rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: color .18s, border-color .18s;
    position: relative;
    white-space: nowrap;
  }
  .ud-tab-pill.active { color: var(--primary); border-bottom-color: var(--primary); }
  .ud-pill-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc3545;
  }

  /* Panels on mobile */
  .ud-panel { border-radius: 0; box-shadow: none; }
  .ud-panel-head { padding: 14px 16px; }
  .ud-panel-body { padding: 14px 16px 20px; }

  /* Switch to cards on mobile */
  .ud-table-wrap  { display: none; }
  .ud-card-list   { display: block; }

  /* Ticket items */
  .ud-ticket-item { padding: 12px 16px; }

  /* Page header */
  .ud-page-header { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 575.98px) {
  /* ── Floating buttons ── */
  .floating-buttons { bottom: 16px; right: 12px; gap: 8px; }
  .float-btn { width: 44px; height: 44px; font-size: 1rem; }
  .float-btn .float-label { display: none; }

  /* ── Modal ── */
  .modal-body { padding: 16px !important; }
  .modal-footer { padding: 12px 16px 16px !important; }
  .modal-footer .btn { flex: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   TABLET (576px – 767px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title { font-size: 1.9rem; }
  .cta-box { padding: 44px 24px; }
  .service-card-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .service-card-footer .d-flex { width: 100%; }
  .service-card-footer .d-flex .btn,
  .service-card-footer .d-flex button { flex: 1; text-align: center; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   TOUCH DEVICE — hover not available
   ══════════════════════════════════════════════════════════════════════════ */
.project-card-touch-btn { display: none; }
@media (hover: none) {
  .project-card-touch-btn {
    display: block;
    text-align: center;
    padding: 0 18px 14px;
  }
  .service-card:hover,
  .project-card:hover,
  .blog-card:hover,
  .why-card:hover {
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRINT — minimal ink
   ══════════════════════════════════════════════════════════════════════════ */
@media print {
  #mainNav, .floating-buttons, footer { display: none !important; }
  body { padding-top: 0; color: #000; }
}
