/* ============================================================
   VoyageCore — Footer CSS v1.0.0
   4 layouts + photo strip + social icons + bottombar
   ============================================================ */

:root {
  --vc-ftr-bg:       #ffffff;
  --vc-ftr-text:     #555555;
  --vc-ftr-heading:  #111111;
  --vc-ftr-border:   rgba(0,0,0,.08);
  --vc-ftr-pad:      64px 0 48px;
  --vc-ftr-gap:      40px;
  --vc-ftr-radius:   8px;
  --vc-ftr-transition: 0.2s ease;
}

/* ══════════════════════════════════════════════════
   BASE FOOTER
   ══════════════════════════════════════════════════ */
.vc-footer {
  position: relative;
  color: var(--vc-ftr-text);
}
.vc-footer-content { position: relative; z-index: 1; }

/* BG overlay (khi có bg image) */
.vc-footer-bg-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
  pointer-events: none;
}

.vc-footer-inner {
  padding: var(--vc-ftr-pad);
}

/* ── Grid 3 cột chuẩn ── */
.vc-footer-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--vc-ftr-gap);
  align-items: start;
}

/* ── Heading section ── */
.vc-footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vc-ftr-heading);
  margin: 0 0 16px;
}

/* ── Divider line under heading ── */
.vc-footer-divider {
  width: 36px;
  height: 2px;
  background: var(--vc-primary, #00b4cc);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ── About text ── */
.vc-footer-about-text {
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0 0 16px;
  color: var(--vc-ftr-text);
}

.vc-footer-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--vc-primary, #00b4cc);
  margin: 6px 0 14px;
}

/* ── Contact link ── */
.vc-footer-contact { font-size: 13px; margin: 8px 0 0; }
.vc-footer-contact a { color: var(--vc-primary, #00b4cc); transition: opacity var(--vc-ftr-transition); }
.vc-footer-contact a:hover { opacity: .8; }

/* ══════════════════════════════════════════════════
   FOOTER LOGO
   ══════════════════════════════════════════════════ */
.vc-footer-logo { margin-bottom: 12px; display: inline-block; }
.vc-footer-logo img { max-width: 160px; height: auto; display: block; }
.vc-footer-logo-text a { text-decoration: none; }
.vc-footer-logo-text strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--vc-primary, #00b4cc);
  line-height: 1.2;
}
.vc-footer-logo-text span {
  display: block;
  font-size: 11px;
  color: #aaa;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ══════════════════════════════════════════════════
   SOCIAL ICONS
   ══════════════════════════════════════════════════ */
.vc-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.vc-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--vc-ftr-text);
  transition: color var(--vc-ftr-transition), transform var(--vc-ftr-transition);
  text-decoration: none;
}
.vc-footer-social-link:hover {
  color: var(--vc-primary, #00b4cc);
  transform: translateY(-2px);
}

/* Circle variant */
.vc-footer-socials--circle .vc-footer-social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--vc-ftr-border);
  border-radius: 50%;
  font-size: 14px;
}
.vc-footer-socials--circle .vc-footer-social-link:hover {
  background: var(--vc-primary, #00b4cc);
  border-color: var(--vc-primary, #00b4cc);
  color: #fff;
}

/* Circle-solid variant (icon màu mạng xã hội) */
.vc-footer-socials--circle-solid .vc-footer-social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 15px;
  color: #fff;
  transition: transform var(--vc-ftr-transition), box-shadow var(--vc-ftr-transition);
}
.vc-footer-socials--circle-solid .vc-footer-social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  color: #fff;
}
.vc-footer-socials--circle-solid .vc-social-facebook  { background: #1877f2; }
.vc-footer-socials--circle-solid .vc-social-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.vc-footer-socials--circle-solid .vc-social-youtube   { background: #ff0000; }
.vc-footer-socials--circle-solid .vc-social-twitter   { background: #000; }
.vc-footer-socials--circle-solid .vc-social-tiktok    { background: #010101; }
.vc-footer-socials--circle-solid .vc-social-pinterest { background: #e60023; }

/* ══════════════════════════════════════════════════
   FOOTER NAV (Quick Access)
   ══════════════════════════════════════════════════ */
.vc-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vc-footer-nav li a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vc-ftr-text);
  padding: 5px 0;
  text-decoration: none;
  transition: color var(--vc-ftr-transition), padding-left var(--vc-ftr-transition);
}
.vc-footer-nav li a:hover {
  color: var(--vc-primary, #00b4cc);
  padding-left: 4px;
}
/* Current/active link */
.vc-footer-nav li.current-menu-item > a,
.vc-footer-nav li.current-cat > a {
  color: var(--vc-primary, #00b4cc);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   SUBSCRIBE BOX
   ══════════════════════════════════════════════════ */
.vc-footer-subscribe-box {
  border: 1px solid var(--vc-ftr-border);
  border-radius: var(--vc-ftr-radius);
  padding: 28px 24px;
  background: rgba(255,255,255,.05);
}
.vc-footer-subscribe-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--vc-ftr-heading);
  margin: 0 0 10px;
}
.vc-footer-subscribe-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--vc-ftr-text);
  margin: 0 0 18px;
}
.vc-footer-subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.vc-footer-subscribe-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--vc-ftr-border);
  border-radius: var(--vc-ftr-radius);
  font-size: 13px;
  outline: none;
  background: #fff;
  color: #333;
  transition: border-color var(--vc-ftr-transition);
  box-sizing: border-box;
}
.vc-footer-subscribe-input:focus { border-color: var(--vc-primary, #00b4cc); }
.vc-footer-subscribe-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--vc-primary, #00b4cc);
  color: #fff;
  border: 2px solid var(--vc-primary, #00b4cc);
  border-radius: var(--vc-ftr-radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--vc-ftr-transition), opacity var(--vc-ftr-transition);
}
.vc-footer-subscribe-btn:hover { opacity: .85; }

/* ══════════════════════════════════════════════════
   POST LIST (dùng chung footer 2 & 3)
   ══════════════════════════════════════════════════ */
.vc-footer-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vc-footer-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vc-ftr-border);
}
.vc-footer-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.vc-footer-post-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 5px;
  overflow: hidden;
  display: block;
}
.vc-footer-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.vc-footer-post-item:hover .vc-footer-post-thumb img { transform: scale(1.05); }

.vc-footer-post-info { flex: 1; min-width: 0; }
.vc-footer-post-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 5px;
  color: var(--vc-ftr-heading);
}
.vc-footer-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--vc-ftr-transition);
}
.vc-footer-post-title a:hover { color: var(--vc-primary, #00b4cc); }
.vc-footer-post-date {
  font-size: 11px;
  color: #aaa;
  display: block;
}

/* Post item — row layout (footer-3: title+badge kèm thumb bên phải) */
.vc-footer-post-item--row {
  flex-direction: row;
  align-items: flex-start;
}
.vc-footer-post-thumb--right {
  order: 2;
  width: 80px;
  height: 64px;
  flex-shrink: 0;
}
.vc-footer-post-item--row .vc-footer-post-info { order: 1; }

/* Category badge (footer-3) */
.vc-footer-post-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════
   CATEGORY LIST
   ══════════════════════════════════════════════════ */
.vc-footer-cat-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vc-footer-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--vc-ftr-border);
}
.vc-footer-cat-item:last-child { border-bottom: none; }
.vc-footer-cat-item a {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vc-ftr-text);
  text-decoration: none;
  transition: color var(--vc-ftr-transition);
}
.vc-footer-cat-item a:hover { color: var(--vc-primary, #00b4cc); }
.vc-footer-cat-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--vc-ftr-text);
  min-width: 24px;
  text-align: right;
}

/* Badge count variant (footer-3) */
.vc-footer-cat-count--badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.vc-footer-cat-arrow {
  color: var(--vc-primary, #00b4cc);
  font-size: 16px;
  line-height: 1;
  margin-right: 2px;
}

/* ══════════════════════════════════════════════════
   LAYOUT 1 — Logo + Quick Access + Subscribe
   ══════════════════════════════════════════════════ */
.vc-footer-1 {
  background: var(--vc-ftr-bg);
}
.vc-footer-1 .vc-footer-about {
  text-align: center;
}
.vc-footer-1 .vc-footer-logo { margin: 0 auto 8px; }
.vc-footer-1 .vc-footer-socials {
  justify-content: center;
}
.vc-footer-1 .vc-footer-nav-col .vc-footer-heading {
  text-align: center;
}
.vc-footer-1 .vc-footer-nav {
  align-items: center;
  text-align: center;
}

/* ══════════════════════════════════════════════════
   LAYOUT 2 — Editor Picks + Popular + Categories (dark teal)
   ══════════════════════════════════════════════════ */
.vc-footer-2 {
  --vc-ftr-border: rgba(255,255,255,.1);
}
.vc-footer-2 .vc-footer-heading {
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-style: italic;
}
.vc-footer-2 .vc-footer-post-title { font-size: 14px; }

/* Sub-footer row bên dưới grid */
.vc-footer-2-bottom {
  border-top: 1px solid var(--vc-ftr-border, rgba(255,255,255,.1));
  padding: 40px 0;
  margin-top: 8px;
}
.vc-footer-2-bottom-inner { align-items: center; }
.vc-footer-2-logo-col img { max-width: 140px; height: auto; }

/* ══════════════════════════════════════════════════
   LAYOUT 3 — About + Recent + Categories (dark black)
   ══════════════════════════════════════════════════ */
.vc-footer-3 {
  --vc-ftr-border: rgba(255,255,255,.08);
}
.vc-footer-3 .vc-footer-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* ══════════════════════════════════════════════════
   LAYOUT 4 — Widgetized
   ══════════════════════════════════════════════════ */
.vc-footer-widget-placeholder {
  border: 1px dashed var(--vc-ftr-border);
  border-radius: var(--vc-ftr-radius);
  padding: 30px;
  text-align: center;
}

/* ══════════════════════════════════════════════════
   PHOTO STRIP
   ══════════════════════════════════════════════════ */
.vc-footer-photo-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 120px;
  gap: 0;
  overflow: hidden;
  width: 100%;
}
.vc-footer-photo-strip-item {
  display: block;
  overflow: hidden;
  position: relative;
}
.vc-footer-photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.vc-footer-photo-strip-item:hover img { transform: scale(1.08); }
.vc-footer-photo-strip-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s;
}
.vc-footer-photo-strip-item:hover::after { background: rgba(0,0,0,.2); }

/* ══════════════════════════════════════════════════
   BOTTOM BAR
   ══════════════════════════════════════════════════ */
.vc-footer-bottom {
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}
.vc-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.vc-footer-bottom-copy {
  opacity: .8;
  line-height: 1.5;
}
.vc-footer-bottom-copy a { color: inherit; text-decoration: underline; }

.vc-footer-bottom-nav { flex-shrink: 0; }
.vc-footer-bottom-menu {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 20px;
  flex-wrap: wrap;
}
.vc-footer-bottom-menu li a {
  font-size: 12.5px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  opacity: .75;
  transition: opacity var(--vc-ftr-transition);
}
.vc-footer-bottom-menu li a:hover { opacity: 1; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .vc-footer-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .vc-footer-1 .vc-footer-subscribe-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .vc-footer-grid-3 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .vc-footer-inner {
    padding: 40px 0 32px;
  }
  .vc-footer-photo-strip {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 90px;
  }
  .vc-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .vc-footer-1 .vc-footer-about { text-align: left; }
  .vc-footer-1 .vc-footer-socials { justify-content: flex-start; }
  .vc-footer-1 .vc-footer-nav-col .vc-footer-heading { text-align: left; }
  .vc-footer-1 .vc-footer-nav { align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
  .vc-footer-photo-strip {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 72px;
  }
}
