/*
Theme Name: Văn Lực Land Developer
Theme URI: https://vanlucland.com
Author: Văn Lực Land
Author URI: https://vanlucland.com
Description: Theme WordPress BĐS cao cấp phong cách BDS8 - Cổng thông tin bất động sản hiện đại
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vanlucland-developer
Tags: real-estate, one-column, custom-menu, featured-images, translation-ready
*/
/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-primary: #0F2C59;
  --color-accent: #8F6B0B;
  --color-red: #C41E3A;
  --color-success: #217619;
  --color-cyan: #176B82;
  --color-warning: #fd7e14;
  
  /* Additional UI Colors */
  --color-bg: #F8F9FA;
  --color-footer: #462917;
  --color-footer-border: #55b7cc;
  --color-card-border: #82b613;
  --color-text-main: #333333;
  --color-text-muted: #5F6368;
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Fonts */
  --font-heading: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --layout-content: 1200px;
  --layout-wide: 1440px;
  --layout-gutter: clamp(16px, 3vw, 32px);
  
  /* Shadows & Transitions */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: #0a1e3d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #6f4f05);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 3px 10px rgba(143,107,11,0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #7f5e08, var(--color-accent));
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(143,107,11,0.4);
  color: var(--color-white);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  display: flex;
}

.hide-mobile {
  display: inline-flex;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* ==========================================================================
   3. Top Bar
   ========================================================================== */
#top-bar {
  background-color: var(--color-primary);
  height: 36px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  font-size: 13px;
}

#top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.topbar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.topbar-left a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.topbar-left a:hover {
  color: var(--color-accent);
}

.topbar-left .sep {
  opacity: 0.3;
  font-size: 11px;
}

.topbar-link {
  opacity: 0.8;
  transition: var(--transition-fast);
}

.topbar-link:hover {
  opacity: 1;
  color: var(--color-accent);
}

.topbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.topbar-right a:hover {
  color: var(--color-accent);
}

.topbar-social {
  display: flex;
  gap: 10px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
}

.topbar-social a:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
#header {
  background-color: var(--color-white);
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: height var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

#header.scrolled {
  height: 60px;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #1a4282);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 18px;
  transition: var(--transition-normal);
}

#header.scrolled .logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-primary);
  text-transform: uppercase;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 16px;
  letter-spacing: 1px;
}

.logo-text small {
  font-size: 9px;
  color: var(--color-accent);
  letter-spacing: 3px;
  font-weight: 500;
}

#header.scrolled .logo-text {
  font-size: 20px;
}

#main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--color-primary);
  display: block;
  padding: 10px 0;
}

.nav-menu li a:hover,
.nav-menu li.active > a {
  color: var(--color-accent);
}

/* Dropdown */
.nav-menu li.has-sub:hover .sub-menu {
  visibility: visible;
  opacity: 1;
  top: 100%;
}

.sub-menu {
  position: absolute;
  top: 120%;
  left: 0;
  width: 220px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-accent);
  visibility: hidden;
  opacity: 0;
  transition: top var(--transition-fast), opacity var(--transition-fast);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.sub-menu li {
  width: 100%;
}

.sub-menu li a {
  padding: 12px 15px;
  text-transform: none;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  display: block;
}

.sub-menu li:last-child a {
  border-bottom: none;
}

.sub-menu li a:hover {
  background-color: #f9f9f9;
  padding-left: 20px;
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-search-toggle {
  color: var(--color-primary);
  font-size: 20px;
  width: 44px;
  height: 44px;
  padding: 5px;
}

.btn-search-toggle:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   5. Hamburger & Mobile Menu
   ========================================================================== */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2002;
}

#hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 10px;
  transition: transform 0.3s linear, opacity 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

#hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

#hamburger.active span:nth-child(2) {
  opacity: 0;
}

#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 2000;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 2001;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-header .logo-text {
  color: var(--color-white);
}

.mobile-nav-list {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list li {
  width: 100%;
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-list li a:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--color-accent);
}

.mobile-nav-list .has-sub > a {
  justify-content: space-between;
}

.mobile-contact {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--color-white);
  font-size: 14px;
}

.mobile-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   6. Hero Slider
   ========================================================================== */
#hero {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 500px;
  position: relative;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  width: 80%;
  max-width: 800px;
  z-index: 3;
}

.slide-content h1,
.slide-content h2 {
  font-size: 42px;
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 15px;
  animation: fadeInUp 0.4s ease-out forwards;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  animation: fadeInUp 0.4s ease-out 0.1s forwards;
  opacity: 0;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  color: var(--color-white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 2px solid var(--color-white);
  transition: var(--transition-fast);
}

.slide-arrow:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.slide-arrow.prev {
  left: 20px;
}

.slide-arrow.next {
  right: 20px;
}

.slide-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-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active, .dot:hover {
  background-color: var(--color-accent);
  transform: scale(1.2);
}

/* ==========================================================================
   7. Portal Layout & Sidebar
   ========================================================================== */
.portal-layout {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.main-col {
  flex: 0 0 calc(75% - 10px);
  width: calc(75% - 10px);
}

.sidebar {
  flex: 0 0 calc(25% - 10px);
  width: calc(25% - 10px);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  color: var(--color-success);
  font-size: 22px;
  text-transform: uppercase;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--color-success);
}

.heading-text {
  display: inline-block;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background-color: #f1f1f1;
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.filter-btn:hover {
  background-color: #e2e2e2;
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* Sidebar Specifics */
.sidebar-cta {
  display: block;
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 4px;
  color: var(--color-white);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-cta:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
  color: var(--color-white);
}

.cta-price {
  background-color: var(--color-success);
}

.cta-promo {
  background-color: var(--color-cyan);
}

.cta-call {
  background-color: #d11a59;
}

.sidebar-widget {
  background-color: #f5f5f5;
  border: 1px solid #ececec;
  padding: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.widget-title {
  color: var(--color-success);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
}

.widget-list li a:hover span {
  color: var(--color-accent);
}

.widget-list li a img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.widget-list li a span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-main);
  line-height: 1.3;
}

/* ==========================================================================
   8. Projects Section (Grid & Cards)
   ========================================================================== */
.section-projects {
  padding: 20px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.project-card {
  border: 1px solid var(--color-card-border);
  background-color: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card[hidden] {
  display: none !important;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  width: 100%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.05);
}

/* Shine Effect on Hover (BDS8 signature) */
.card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -125%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  z-index: 2;
}

.project-card:hover .card-image::before {
  animation: shine 0.8s forwards;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.badge-hot {
  background-color: var(--color-red);
}

.badge-selling {
  background-color: var(--color-success);
}

.badge-new {
  background-color: var(--color-cyan);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  color: #3ab812;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.card-title:hover {
  color: var(--color-accent);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 10px;
  border-top: 1px dashed #eee;
  padding-top: 8px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-price {
  color: #ed1c24;
  font-weight: 700;
  font-size: 16px;
  margin-top: auto;
}

/* ==========================================================================
   9. Advisor Section
   ========================================================================== */
.section-advisor {
  background-color: #f7f7f7;
  padding: 30px 0;
  margin: 30px 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.advisor-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.advisor-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 300px;
}

.advisor-avatar {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.advisor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-info {
  display: flex;
  flex-direction: column;
}

.advisor-info h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.advisor-info .role {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.advisor-desc {
  flex: 2;
  min-width: 300px;
  font-size: 15px;
  line-height: 1.6;
}

.advisor-desc .accent-text {
  color: #008000;
  font-weight: 700;
}

.advisor-stats {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white);
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  min-width: 100px;
}

.stat i {
  font-size: 24px;
  color: var(--color-accent);
  margin-bottom: 5px;
}

.stat strong {
  font-size: 18px;
  color: var(--color-primary);
}

.stat span {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   10. News Section
   ========================================================================== */
.section-news {
  padding: 30px 0;
  background-color: var(--color-white);
}

.news-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.col-heading {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 4px;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.post-item:hover {
  background-color: #f9f9f9;
  border-color: #eaeaea;
}

.post-item img {
  width: 25%;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.post-info {
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-info h4 {
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item:hover h4 {
  color: var(--color-accent);
}

.post-date {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.company-intro .intro-box {
  background-color: #f4fdff;
  border: 1px dashed #55b7cc;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-intro .intro-box img {
  max-width: 150px;
  margin: 0 auto 15px;
}

.intro-quote {
  color: var(--color-success);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 15px;
}

.intro-hotline {
  color: var(--color-red);
  font-weight: 700;
  font-size: 20px;
  margin-top: 10px;
  display: block;
}

/* ==========================================================================
   11. Partners Section
   ========================================================================== */
.section-partners {
  padding: 20px 0;
  background-color: #f9f9f9;
  border-top: 1px solid #eaeaea;
  overflow: hidden;
}

.partners-slider {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
}

.partners-slider.is-auto-scrolling {
  width: max-content;
  overflow: visible;
  animation: vldPartnerScroll 28s linear infinite;
  will-change: transform;
}

.partners-slider.is-auto-scrolling:hover,
.partners-slider.is-auto-scrolling.is-offscreen {
  animation-play-state: paused;
}

.partners-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.partner {
  display: inline-block;
  padding: 15px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.partner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.partner img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.partner:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-wordmark {
  display: grid;
  min-width: 170px;
  min-height: 70px;
  place-items: center;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ==========================================================================
   12. Contact Section
   ========================================================================== */
.section-contact {
  background: linear-gradient(135deg, #0F2C59, #1a4282);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
  z-index: 1;
}

.section-contact .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-info {
  color: var(--color-white);
}

.contact-info h2 {
  color: var(--color-white);
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-info > p {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.checklist {
  margin-bottom: 30px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
}

.checklist li i {
  color: var(--color-success);
  background-color: var(--color-white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.hotline-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.hotline-box i {
  font-size: 36px;
  color: var(--color-accent);
}

.hotline-box div span {
  display: block;
  font-size: 14px;
  opacity: 0.8;
}

.hotline-box div strong {
  display: block;
  font-size: 24px;
  color: var(--color-accent);
}

.contact-form-wrap {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrap h3 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.vld-inline-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.vld-inline-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.vld-inline-field {
  margin-bottom: 15px;
}

.vld-inline-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
}

.vld-inline-field input {
  width: 100%;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid #64748b;
  border-radius: 4px;
  background: var(--color-white);
  color: #1f2937;
  font-size: 16px;
}

.vld-inline-field input:focus-visible {
  outline: 3px solid #f0c75e;
  outline-offset: 2px;
}

.vld-inline-field .form-error {
  display: block;
  min-height: 20px;
  margin-top: 4px;
  color: #ffe08a;
  font-size: 13px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label,
.lightbox-content label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group input, .form-group select {
  min-height: 44px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.field-error {
  color: var(--color-red);
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.form-group.has-error input {
  border-color: var(--color-red);
}

.form-group.has-error .field-error {
  display: block;
}

.btn-submit {
  width: 100%;
  height: 45px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 10px;
  transition: background-color var(--transition-fast);
}

.btn-submit:hover {
  background-color: #bfa032;
  animation: none;
}

.form-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 15px;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
#footer {
  position: relative;
}

.footer-border-top {
  width: 100%;
  height: 5px;
  background-color: var(--color-footer-border);
}

.footer-main {
  background-color: var(--color-footer);
  padding: 40px 0;
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.footer-col p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: var(--color-white);
  opacity: 0.7;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-links li a::before {
  content: '›';
  margin-right: 8px;
  font-size: 16px;
  transition: transform var(--transition-fast);
}

.footer-links li a:hover {
  opacity: 1;
  color: var(--color-accent);
  transform: translateX(5px);
}

.footer-links li a:hover::before {
  transform: translateX(3px);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  opacity: 0.8;
}

.footer-contact li i {
  color: var(--color-accent);
  font-size: 16px;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-map {
  width: 100%;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px 0 0 4px;
  border: none;
  font-size: 13px;
}

.newsletter-form button {
  height: 36px;
  padding: 0 15px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 0 4px 4px 0;
  font-weight: bold;
}

.footer-bottom {
  background-color: #2b190f; /* Darkened #462917 */
  padding: 15px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   14. Floating Elements & Mobile Bar
   ========================================================================== */
.float-contact {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  padding: 8px 18px;
  margin-bottom: 6px;
  color: var(--color-white);
  font-weight: bold;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.float-btn:hover {
  transform: scale(1.05);
  color: var(--color-white);
}

.float-btn.zalo {
  background-color: #8eb22b;
  animation-delay: 0s;
}

.float-btn.fb {
  background-color: #125c9e;
  animation-delay: 0.5s;
}

.float-btn.hotline {
  background-color: #d11a59;
  animation-delay: 1s;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-cyan);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
  z-index: 9998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Mobile Bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  display: none; /* Shown via media query */
}

.bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-text-muted);
  gap: 4px;
  border-right: 1px solid #eee;
}

.bar-btn:last-child {
  border-right: none;
}

.bar-btn i {
  font-size: 20px;
}

.bar-btn.active, .bar-btn:hover {
  color: var(--color-primary);
}

.bar-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-right: none;
}

.bar-accent.active, .bar-accent:hover {
  color: var(--color-white);
  background-color: #bfa032;
}

/* ==========================================================================
   15. Modals / Lightbox / Toasts
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  background-color: var(--color-white);
  border-radius: 6px;
  width: 90%;
  max-width: 450px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.lightbox.active .lightbox-content {
  transform: translateY(0);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}

.lightbox-close:hover {
  color: var(--color-red);
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s forwards;
  position: relative;
  overflow: hidden;
}

.toast.success { background-color: var(--color-success); }
.toast.error { background-color: var(--color-red); }
.toast.warning { background-color: var(--color-warning); }

/* ==========================================================================
   16. Keyframes
   ========================================================================== */
@keyframes shine {
  0% { left: -125%; }
  100% { left: 125%; }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes vldPartnerScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 10px), 0, 0); }
}

.section-news,
.section-advisor,
.section-partners,
.section-contact,
#footer {
  content-visibility: auto;
}

.section-news,
.section-advisor {
  contain-intrinsic-size: auto 700px;
}

.section-partners {
  contain-intrinsic-size: auto 140px;
}

.section-contact {
  contain-intrinsic-size: auto 700px;
}

#footer {
  contain-intrinsic-size: auto 600px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   17. Media Queries (Responsive)
   ========================================================================== */

/* Large Desktop */
@media (min-width: 1201px) {
  /* Full layout is default */
}

/* Tablet / Small Desktop */
@media (max-width: 1200px) and (min-width: 769px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-3col {
    grid-template-columns: 1fr;
  }
  
  .post-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .post-item {
    width: calc(50% - 10px);
  }
  
  .portal-layout {
    flex-direction: column;
  }
  
  .main-col {
    width: 100%;
    flex: none;
  }
  
  .sidebar {
    width: 100%;
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .sidebar-widget {
    flex: 1;
    min-width: 250px;
    margin-top: 0;
  }
  
  .sidebar-cta-wrap {
    width: 100%;
    display: flex;
    gap: 10px;
  }
  
  .sidebar-cta {
    flex: 1;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & Tablet Portrait */
@media (max-width: 768px) {
  #top-bar {
    display: none;
  }
  
  #header {
    height: 70px;
  }
  
  #header.scrolled {
    height: 60px;
  }
  
  #main-nav {
    display: none;
  }
  
  #hamburger {
    display: flex;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .hero-slider {
    height: 400px;
  }
  
  .slide-content h1,
  .slide-content h2 {
    font-size: 30px;
  }
  
  .portal-layout {
    flex-direction: column;
    margin-top: 20px;
  }
  
  .main-col {
    width: 100%;
    flex: none;
  }
  
  .sidebar {
    width: 100%;
    flex: none;
  }
  
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-3col {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .float-contact {
    display: none; /* Hide on small screens as requested, replaced by mobile bar */
  }
  
  .mobile-bar {
    display: flex;
  }
  
  body {
    padding-bottom: 56px; /* Space for mobile bar */
  }
  
  .back-to-top {
    bottom: 76px; /* Above mobile bar */
  }
}

/* Small Mobile */
@media (max-width: 550px) {
  .vld-inline-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-slider {
    height: auto;
    min-height: 300px;
  }
  
  .slide-content {
    width: 90%;
  }
  
  .slide-content h1,
  .slide-content h2 {
    font-size: 24px;
  }
  
  .slide-content p {
    font-size: 14px;
  }
  
  .slide-arrow {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .card-image {
    height: 150px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .post-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .post-item {
    width: 100%;
  }
  
  .advisor-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .advisor-profile {
    flex-direction: column;
  }
  
  .advisor-stats {
    justify-content: center;
  }
  
  .company-intro .intro-box {
    margin-top: 20px;
  }
}

/* ==========================================================================
   18. Hybrid Gutenberg & Stable Responsive System (v1.4)
   ========================================================================== */

body {
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
}

.container {
  width: min(calc(100% - var(--layout-gutter) - var(--layout-gutter)), var(--layout-content));
  max-width: none;
  padding-inline: 0;
}

.site-main,
.site-main > *,
.portal-layout > *,
.project-grid > *,
.news-3col > *,
.contact-grid > *,
.footer-grid > *,
.advisor-wrapper > * {
  min-width: 0;
}

.vld-block-layout {
  width: 100%;
}

.vld-block-layout > :not(.alignfull):not(section) {
  width: min(calc(100% - var(--layout-gutter) - var(--layout-gutter)), var(--layout-content));
  margin-inline: auto;
}

.vld-block-layout > .alignwide {
  width: min(calc(100% - var(--layout-gutter) - var(--layout-gutter)), var(--layout-wide));
}

.vld-block-layout > .alignfull {
  width: 100%;
  max-width: none;
}

.project-grid,
.news-3col,
.contact-grid,
.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-image {
  height: auto;
  aspect-ratio: 20 / 13;
}

.post-thumb {
  width: 76px;
  max-width: 30%;
  flex: 0 0 76px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}

.post-item .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-info {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.card-title,
.post-info h4,
.footer-links a,
.footer-info,
.intro-text,
.advisor-desc,
.contact-info {
  overflow-wrap: anywhere;
}

.hero-slider {
  height: clamp(390px, 41.6667vw, 540px);
}

.slide-content {
  width: min(calc(100% - 96px), 800px);
}

.slide-content h1,
.slide-content h2 {
  font-size: clamp(30px, 4vw, 46px);
  text-wrap: balance;
}

.slide-content p {
  font-size: clamp(16px, 1.8vw, 19px);
}

.filter-btn,
.sidebar-cta,
.mobile-nav-list li a,
.newsletter-form button,
.mobile-bar a,
#mobile-close {
  min-height: 44px;
  touch-action: manipulation;
}

#mobile-close {
  min-width: 44px;
  color: var(--color-white);
}

input,
select,
textarea {
  max-width: 100%;
}

.form-group input,
.form-group select,
.newsletter-form input {
  min-height: 46px;
  font-size: 16px;
}

.advisor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  min-width: 0;
}

.dot,
.dot.active,
.dot:hover {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: transparent;
  transform: none;
}

.dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  content: "";
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.dot.active::before,
.dot:hover::before {
  background: var(--color-accent);
}

.slide-dots {
  gap: 0;
}

.mobile-overlay,
.mobile-menu {
  height: 100vh;
  height: 100dvh;
}

.mobile-menu {
  left: 0;
  width: min(88vw, 360px);
  transform: translate3d(-105%, 0, 0);
  transition: transform 0.28s ease;
  will-change: transform;
}

.mobile-menu.active {
  left: 0;
  transform: translate3d(0, 0, 0);
}

.partners-slider.is-offscreen,
.vld-page-hidden .partners-slider {
  animation-play-state: paused;
}

@media (hover: none) {
  .project-card:hover,
  .sidebar-cta:hover {
    transform: none;
  }

  .project-card:hover .card-image img {
    transform: none;
  }

  .project-card:hover .card-image::before {
    animation: none;
  }
}

/* Tablet landscape and smaller: switch navigation before it becomes crowded. */
@media (max-width: 1023px) {
  #main-nav {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  .hide-mobile {
    display: none !important;
  }

  .portal-layout {
    flex-direction: column;
  }

  .main-col,
  .sidebar {
    width: 100%;
    flex: 1 1 auto;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-intro {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone and portrait tablet. */
@media (max-width: 767px) {
  :root {
    --layout-gutter: clamp(14px, 4.3vw, 24px);
  }

  #header,
  #header.scrolled {
    height: 64px;
  }

  .logo-text strong {
    max-width: 46vw;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo-text small {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-slider {
    min-height: 340px;
    height: clamp(340px, 92vw, 430px);
  }

  .slide-content {
    width: calc(100% - 112px);
  }

  .slide-content h1,
  .slide-content h2 {
    font-size: clamp(25px, 7.2vw, 34px);
  }

  .slide-arrow {
    width: 44px;
    height: 44px;
    border-width: 1px;
    font-size: 18px;
  }

  .slide-arrow.prev {
    left: 8px;
  }

  .slide-arrow.next {
    right: 8px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-3col,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-intro {
    grid-column: auto;
  }

  .advisor-profile,
  .advisor-desc {
    min-width: 0;
  }

  .advisor-stats {
    width: 100%;
    gap: 8px;
  }

  .stat {
    padding: 10px 6px;
  }

  .section-news,
  .section-advisor,
  .section-partners,
  .section-contact,
  #footer {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  .mobile-bar {
    min-height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* Narrow phones, including 320–375px viewports. */
@media (max-width: 479px) {
  .project-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-grid {
    gap: 14px;
  }

  .card-image {
    aspect-ratio: 16 / 10;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 6px);
    padding-inline: 10px;
  }

  .advisor-wrapper,
  .advisor-profile {
    gap: 18px;
  }

  .advisor-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat strong {
    font-size: 16px;
  }

  .stat span {
    font-size: 11px;
  }

  .mobile-bar .bar-btn {
    min-width: 0;
    padding-inline: 4px;
  }

  .mobile-bar .bar-btn span {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 1440px) {
  .container {
    width: min(calc(100% - 64px), var(--layout-content));
  }
}

/* ==========================================================================
   22. Content SEO & secure lead forms
   ========================================================================== */
.vld-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.vld-content-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 40px);
  margin: clamp(24px, 5vw, 42px) 0;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  color: var(--color-white);
  background: linear-gradient(135deg, #0f2c59, #183f78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--color-accent);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.vld-content-cta__copy {
  min-width: 0;
}

.vld-content-cta h3 {
  margin: 0 0 8px;
  color: #fff1b8;
  font-size: clamp(20px, 3vw, 28px);
}

.vld-content-cta p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.vld-content-cta__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.vld-editor-note {
  padding: 12px 14px;
  color: #713f12;
  background: #fffbeb;
  border-left: 4px solid #d97706;
}

@media (max-width: 767px) {
  .vld-content-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .vld-content-cta__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .vld-content-cta__actions .btn {
    width: 100%;
    white-space: normal;
  }
}
