/* OPTIMIZED CSS FOR PRIVACY PAGE - LAG-FREE SCROLLING */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --primary-color: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #f8bbd0;
  --secondary-color: #ff69b4;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --background-light: #fafafa;
  --white: #ffffff;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --transition: all 0.2s ease; /* Reduced from 0.3s */
}

/* REMOVE LAGGY ANIMATIONS ON SCROLL */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* OPTIMIZED SCROLL PERFORMANCE */
html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #fff5f8; /* Solid background instead of gradient */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Chỉ header (không có breadcrumb fixed) */
    /* CRITICAL: Enable hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* OPTIMIZED HEADER - REMOVED BACKDROP FILTER */
.site-navigation-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98); /* Increased opacity instead of blur */
  border-bottom: 1px solid rgba(233, 30, 99, 0.1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06); /* Simplified shadow */
  height: 80px;
  transition: var(--transition);
  /* CRITICAL: Hardware acceleration */
  will-change: transform;
  transform: translateZ(0);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  z-index: 10001;
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-image:hover {
  transform: scale(1.02); /* Reduced from 1.05 */
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--primary-color);
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10001;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.02); /* Reduced hover effect */
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  width: 20px;
  height: 14px;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* OPTIMIZED NAVIGATION */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  gap: 8px; /* Add gap between icon and text */
}

/* Icon specific styles */
.nav-links a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px); /* Reduced from -2px */
  box-shadow: var(--shadow-light);
}

.nav-links a.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3); /* Simplified shadow */
  transform: translateY(-2px); /* Reduced from -3px */
  font-weight: 700;
}

/* OPTIMIZED CTA BUTTON - REMOVED CONTINUOUS ANIMATION */
.nav-links a.cta-button {
  background: linear-gradient(135deg, #d4a574, #e0b88a);
  color: var(--white);
  border-color: #d4a574;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
  /* REMOVED: animation: pulse 2s infinite; */
}

.nav-links a.cta-button:hover {
  background: linear-gradient(135deg, #c99a5c, #d4a574);
  transform: translateY(-3px); /* Reduced from -4px */
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4); /* Simplified */
}

/* BREADCRUMB - STATIC POSITION (NO STICKY) */
.breadcrumb-container {
  position: static;
  background: transparent; /* No background */
  border-bottom: none; /* Remove border */
  padding: 10px 0;
  margin: 0;
  box-shadow: none; /* Remove shadow */
  transition: var(--transition);
}

.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px; /* Space between icon and text */
}

.breadcrumb a i {
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 12px;
  color: var(--text-light);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--primary-color);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(233, 30, 99, 0.08);
  border: 1px solid rgba(233, 30, 99, 0.15);
}

/* MAIN CONTENT - REMOVED BACKDROP FILTERS */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 20px;
    flex: 1;
    /* REMOVED: animation: fadeInUp 0.8s ease-out; */
}

.main-container .header {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 30px;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.98); /* Solid background */
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.08); /* Simplified shadow */
    border: 1px solid rgba(233, 30, 99, 0.1);
    position: relative;
    transition: var(--transition);
}

/* REMOVED SHIMMER ANIMATION */
.main-container .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e91e63, #f8bbd0, #e91e63);
    border-radius: 20px 20px 0 0;
    /* REMOVED: animation and background-size */
}

.main-container .header:hover {
    transform: translateY(-2px); /* Reduced from -5px */
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.12); /* Simplified */
}

.main-container .header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #e91e63;
    margin-bottom: 16px;
    line-height: 1.1;
    background: linear-gradient(135deg, #e91e63, #ad1457);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-container .header p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* OPTIMIZED MAIN CARD - REMOVED BACKDROP FILTER */
.main-card {
    background: rgba(255, 255, 255, 0.98); /* Solid background */
    border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06); /* Simplified shadow */
    overflow: hidden;
    /* REMOVED: animation: slideUp 0.6s ease-out 0.2s both; */
    padding: 50px;
    margin-top: 40px;
    position: relative;
    border: 1px solid rgba(233, 30, 99, 0.08);
    transition: var(--transition);
    /* CRITICAL: Hardware acceleration */
    will-change: transform;
    transform: translateZ(0);
}

.main-card:hover {
    transform: translateY(-2px); /* Reduced from -3px */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Simplified */
}

/* SECTION STYLES */
.section {
    margin-bottom: 40px;
    position: relative;
}

.section h2 {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 700;
    border-bottom: 2px solid #f8bbd0;
    padding-bottom: 12px;
    position: relative;
}

.section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #e91e63 0%, #f8bbd0 100%);
    border-radius: 1px;
}

.section h3 {
    color: #ad1457;
    margin: 25px 0 15px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.section h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

.section p {
    margin-bottom: 18px;
    line-height: 1.7;
    color: var(--text-dark);
}

.section ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.section ul li {
    margin-bottom: 12px;
    line-height: 1.6;
    position: relative;
}

.section ul li::marker {
    color: var(--primary-color);
}

/* OPTIMIZED HIGHLIGHT BOX - REMOVED MOVING PATTERN */
.highlight-box {
    background: linear-gradient(135deg, #e91e63, #f8bbd0);
    color: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.25); /* Simplified */
}

/* REMOVED MOVING PATTERN ANIMATION */
.highlight-box h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: none;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.highlight-box p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* OPTIMIZED BACK HOME */
.back-home {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9); /* Solid background */
    border-radius: 15px;
    /* REMOVED: backdrop-filter */
}

.back-home a {
    color: #AD1457;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    transition: var(--transition);
    background: rgba(233, 30, 99, 0.1);
}

.back-home a i {
    font-size: 16px;
}

.back-home a:hover {
    background: rgba(233, 30, 99, 0.2);
    transform: translateY(-1px); /* Reduced from -2px */
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.2); /* Simplified */
}

/* FOOTER STYLES - OPTIMIZED */
.footer {
    background-color: #fff;
    padding: 50px 0 0;
    margin-top: 40px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.06);
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e91e63 0%, #f8bbd0 25%, #e91e63 50%, #f8bbd0 75%, #e91e63 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #e91e63, #f8bbd0);
    border-radius: 2px;
}

.footer-section p {
    color: #64748b;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
    position: relative;
    outline: none;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    margin-right: 8px;
    color: #e91e63;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links a:hover {
    color: #e91e63;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.25);
}

.social-links a[href*="facebook"]:hover {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    color: white;
}

.social-links a[href*="tiktok"]:hover {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
}

.social-links a[href*="zalo"]:hover {
    background: linear-gradient(135deg, #0068ff 0%, #0084ff 100%);
    color: white;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding: 25px 0;
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.footer-bottom p {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: #c2185b;
    text-decoration: underline;
}

.contact-info {
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background-color: rgba(233, 30, 99, 0.05);
}

.contact-item i {
    width: 20px;
    color: #e91e63;
    margin-right: 12px;
    font-size: 1.1rem;
}

.contact-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #e91e63;
}

.footer-logo {
    max-width: 160px !important;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(233, 30, 99, 0.2));
    object-fit: contain;
    object-position: left;
}

.footer-logo:hover {
    transform: scale(1.02);
}

/* Enhanced Focus States for Accessibility */
.footer-links a:focus,
.social-links a:focus,
.contact-link:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Lazy loading animation */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  body {
    padding-top: 60px; /* Chỉ header mobile (không có breadcrumb fixed) */
  }
  
  .site-navigation-header {
    height: 60px;
    padding: 6px 0;
  }
  
  .breadcrumb-container {
    position: static;
    padding: 8px 0;
  }
  
  .header-content {
    padding: 0 20px;
  }
  
  .logo-image {
    height: 40px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--white) 0%, #fce4ec 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 20px 20px;
    box-shadow: -8px 0 20px rgba(0,0,0,0.15); /* Simplified */
    z-index: 10000;
    overflow-y: auto;
    gap: 0;
    transition: right 0.3s ease; /* Simplified transition */
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    justify-content: flex-start;
  }
  
  .nav-links a:not(.active):not(.cta-button) {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: var(--shadow-light);
  }
  
  .nav-links a:not(.active):not(.cta-button):hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(4px); /* Reduced from 8px */
  }
  
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Simplified */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease; /* Simplified */
    z-index: 999;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .main-container {
    padding: 80px 20px 20px;
  }
  
  .main-container .header {
    margin-bottom: 50px;
    margin-top: 25px;
    padding: 40px 25px;
    border-radius: 18px;
  }
  
  .main-container .header h1 {
    font-size: 2.5rem;
  }
  
  .main-container .header p {
    font-size: 1.1rem;
  }
  
  .main-card {
    padding: 30px;
    margin-top: 40px;
  }
  
  /* Footer responsive */
  .footer {
    padding: 25px 0 15px;
    margin-top: 30px;
  }
  
  .footer-content {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .social-links a {
    width: 44px;
    height: 44px;
  }
  
  .footer-logo {
    max-width: 110px !important;
  }
  
  .footer .footer-content {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }
  
  .footer .footer-section {
    text-align: left !important;
  }
  
  .footer .social-links {
    justify-content: flex-start !important;
  }
  
  .footer .footer-logo {
    margin: 0 0 15px !important;
  }
  
  .footer .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: calc(100vw - 30px);
    right: -100vw;
  }
  
  .nav-links.active {
    right: 15px;
  }
  
  .main-container {
    padding: 70px 15px 20px;
  }
  
  .main-container .header h1 {
    font-size: 2.2rem;
  }
  
  .main-card {
    padding: 20px;
  }
  
  /* Footer responsive for small mobile */
  .footer {
    padding: 20px 0 10px;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .footer-section {
    flex: 1 0 50%;
    padding: 0 5px;
    margin-bottom: 15px;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
  }
  
  .footer-logo {
    max-width: 100px !important;
  }
}

/* ADDITIONAL PERFORMANCE OPTIMIZATIONS */
.footer-section,
.footer-content,
.social-links a,
.footer-links a {
    will-change: auto; /* Reset will-change when not needed */
}

/* Optimize frequent repaints */
.logo-image,
.nav-links a,
.main-card {
    contain: layout style;
}

/* GPU acceleration for critical elements */
.site-navigation-header,
.nav-links,
.main-card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
