/**
 * VietnamPedia 2026 Theme Stylesheet (y2026_vnpedia)
 * Brand Identity Colors: Exact Match to VietnamPedia Crystal Logo
 * - Electric Cyan: #00aeef / #00b4f0
 * - Royal Blue: #0072bc
 * - Deep Blue: #004b87
 * - Deep Navy: #011936 / #010f22
 */

:root {
  --vnp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vnp-font-display: 'Outfit', 'Inter', sans-serif;
  
  --vnp-cyan: #00aeef;
  --vnp-cyan-hover: #0096dc;
  --vnp-cyan-light: #e6f7fd;
  --vnp-blue: #0072bc;
  --vnp-blue-dark: #004b87;
  --vnp-navy: #011936;
  --vnp-navy-dark: #010f22;
  
  --vnp-border: #e2e8f0;
}

body {
  font-family: var(--vnp-font-sans);
  background-color: #ffffff;
  color: #334155;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--vnp-font-display);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.vnp-section-title {
  line-height: 1.3 !important;
}

.vnp-section-desc {
  line-height: 1.65 !important;
}

/* Glassmorphism & Floating Header */
.vnp-header-floating {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .vnp-header-floating {
    top: 16px;
  }
}

.vnp-navbar-glass {
  background: rgba(1, 25, 54, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 174, 239, 0.3);
  box-shadow: 0 10px 35px -5px rgba(1, 25, 54, 0.5);
  border-radius: 9999px;
  padding: 6px 14px;
}

@media (min-width: 640px) {
  .vnp-navbar-glass {
    padding: 8px 20px;
  }
}

.vnp-header-scrolled .vnp-navbar-glass {
  background: rgba(1, 15, 34, 0.96);
  border-color: rgba(0, 174, 239, 0.45);
  box-shadow: 0 12px 40px -5px rgba(0, 0, 0, 0.6);
}

/* Header Navigation Responsive Display Rules */
.vnp-nav-desktop {
  display: none !important;
}
@media (min-width: 1024px) {
  .vnp-nav-desktop {
    display: flex !important;
  }
}

.vnp-nav-toggle {
  display: inline-flex !important;
}
@media (min-width: 1024px) {
  .vnp-nav-toggle {
    display: none !important;
  }
}

.vnp-header-cta {
  display: none !important;
}
@media (min-width: 1280px) {
  .vnp-header-cta {
    display: inline-flex !important;
  }
}

/* Crystal Hero Section matching logo facet gradient & tech background */
.vnp-hero-section {
  position: relative;
  background-color: #010f22;
  background-image: 
    linear-gradient(180deg, rgba(1, 15, 34, 0.78) 0%, rgba(1, 25, 54, 0.65) 45%, rgba(1, 15, 34, 0.94) 100%),
    url('../images/hero-tech-bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 85px;
  padding-bottom: 0 !important;
  overflow: hidden;
}

@media (min-width: 640px) {
  .vnp-hero-section {
    padding-top: 120px;
  }
}

.vnp-hero-section h1 {
  line-height: 1.22 !important;
}

.vnp-hero-trust-bar {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(1, 15, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vnp-hero-glow-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.3) 0%, rgba(0, 174, 239, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.vnp-hero-glow-2 {
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 114, 188, 0.35) 0%, rgba(0, 114, 188, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.vnp-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 174, 239, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

/* Sub-Page Header Hero Banner with Tech Background */
.vnp-page-header {
  position: relative;
  background-color: #011936;
  background-image: 
    linear-gradient(135deg, rgba(1, 25, 54, 0.94) 0%, rgba(1, 15, 34, 0.82) 50%, rgba(1, 25, 54, 0.65) 100%),
    url('../images/page-header-bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 174, 239, 0.2);
}

.vnp-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(0, 174, 239, 0.15), transparent 60%);
  pointer-events: none;
}

/* Badges & Pills */
.vnp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 174, 239, 0.35);
  background: rgba(0, 174, 239, 0.12);
  backdrop-filter: blur(6px);
  color: #00aeef !important;
  line-height: 1.5;
}

/* Primary Button in Brand Cyan Gradient */
.vnp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00b4f0 0%, #0072bc 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px 0 rgba(0, 174, 239, 0.45), inset 0 2px 4px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.vnp-btn-primary:hover {
  background: linear-gradient(135deg, #0096dc 0%, #005a96 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(0, 174, 239, 0.6), inset 0 2px 4px 0 rgba(255, 255, 255, 0.45);
}

/* Secondary Button (For Light Sections - Clean Dark Blue Pill with Great Contrast) */
.vnp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #0072bc !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1.5px solid #0072bc;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 114, 188, 0.08);
}

.vnp-btn-secondary:hover {
  background: #0072bc;
  color: #ffffff !important;
  border-color: #0072bc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 114, 188, 0.25);
}

/* Outline Button (For Dark Deep Navy Sections) */
.vnp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 174, 239, 0.1);
  backdrop-filter: blur(6px);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 174, 239, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.vnp-btn-outline:hover {
  background: rgba(0, 174, 239, 0.25);
  border-color: #00aeef;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Card & Bento Grid */
.vnp-card-bento {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.03);
}

.vnp-card-bento:not(.vnp-pricing-popular) {
  background: #ffffff;
}

.vnp-pricing-popular {
  background: #011936 !important;
  border-color: #00aeef !important;
  color: #ffffff !important;
  overflow: visible !important;
}

.vnp-pricing-popular .vnp-pricing-title,
.vnp-pricing-popular .vnp-pricing-rate-val {
  color: #ffffff !important;
}

.vnp-pricing-popular .vnp-pricing-desc,
.vnp-pricing-popular .vnp-pricing-features {
  color: #cbd5e1 !important;
}

.vnp-card-bento:hover {
  border-color: #00aeef;
  box-shadow: 0 16px 32px -8px rgba(0, 114, 188, 0.12);
  transform: translateY(-3px);
}

.vnp-card-dark {
  background: rgba(1, 25, 54, 0.75);
  border: 1px solid rgba(0, 174, 239, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.vnp-card-dark:hover {
  border-color: #00aeef;
  background: rgba(1, 25, 54, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(0, 174, 239, 0.25);
}

/* Modal System (Bootstrap 5 & Custom Fullscreen Mobile Drawer) */
.modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1055 !important;
  display: none;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  outline: 0 !important;
  background: transparent !important;
}

.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1050 !important;
  background-color: rgba(1, 15, 34, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.modal-backdrop.fade {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.modal-backdrop.show {
  opacity: 1;
}

/* Standard Dialog */
.modal-dialog {
  position: relative !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 1.5rem auto !important;
  pointer-events: auto !important;
}

/* Fullscreen Mobile Drawer */
.modal-dialog.modal-fullscreen,
.modal-fullscreen .modal-dialog,
.vnp-mobile-drawer-modal .modal-dialog {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.vnp-mobile-drawer-modal .modal-content {
  width: 100vw !important;
  min-height: 100vh !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.modal-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  outline: 0 !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.btn-close {
  box-sizing: content-box;
  width: 1.25em;
  height: 1.25em;
  padding: 0.25em;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300aeef'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-close:hover {
  opacity: 1;
}

/* Rich Text & Entry Body Typography System */
.vnp-entry-body,
.vnp-service-body-content,
.vnp-article-body-content,
.vnp-project-body-content {
  text-align: left !important;
  color: #334155;
}

.vnp-entry-body header,
.vnp-entry-body .entry-header,
.vnp-entry-body .entry-header-text {
  display: block;
  text-align: left !important;
}

.vnp-entry-body h2,
.vnp-entry-body h3,
.vnp-entry-body h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: #0f172a !important;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  text-align: left !important;
}

.vnp-entry-body h2 { font-size: 1.5rem; }
.vnp-entry-body h3 { font-size: 1.25rem; }
.vnp-entry-body h4 { font-size: 1.125rem; }

.vnp-entry-body p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #334155;
  text-align: left !important;
}

.vnp-entry-body ul,
.vnp-entry-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.vnp-entry-body ul { list-style-type: disc; }
.vnp-entry-body ol { list-style-type: decimal; }

.vnp-entry-body li {
  margin-bottom: 0.5rem;
  color: #334155;
  line-height: 1.65;
}

.vnp-entry-body blockquote {
  border-left: 4px solid #00aeef;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: #0072bc;
  font-style: italic;
  border-radius: 0 12px 12px 0;
}

.vnp-entry-body img {
  border-radius: 16px;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dropdown Menu System */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  z-index: 1000 !important;
  display: none;
  min-width: 160px !important;
  padding: 6px !important;
  margin-top: 8px !important;
  list-style: none !important;
  background: #011936 !important;
  border: 1px solid rgba(0, 174, 239, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-menu.show {
  display: block !important;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #00aeef !important;
  opacity: 0.3 !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  width: 28px !important;
  border-radius: 6px !important;
  opacity: 1 !important;
  background: #00aeef !important;
}

/* Footer in Deep Navy */
.vnp-footer-dark {
  background-color: #010f22;
  color: #94a3b8;
  border-top: 1px solid rgba(0, 174, 239, 0.15);
  padding-top: 56px;
  padding-bottom: 32px;
  position: relative;
}

.vnp-footer-dark h4 {
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.vnp-footer-dark a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vnp-footer-dark a:hover {
  color: #00aeef;
}

/* Floating Quick Chat / Hotline Button */
.vnp-floating-support {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vnp-floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.vnp-floating-btn:hover {
  transform: scale(1.1);
}

.vnp-floating-phone {
  background: #10b981;
}

.vnp-floating-zalo {
  background: #00aeef;
}

/* Partner Logo Card */
.vnp-partner-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  transition: all 0.25s ease;
}

.vnp-partner-card:hover {
  border-color: #00aeef;
  box-shadow: 0 10px 25px -5px rgba(0, 174, 239, 0.2);
  transform: translateY(-2px);
}

.vnp-partner-card img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.25s ease;
}

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