/* ==========================================================================
   BROSS & PARTNERS - MAIN STYLESHEET
   Refactored for: Open Sans Consistency & Admin Bar Safety
   ========================================================================== */

/* 1. UTILITIES & SCROLLBAR */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 2. COMPONENT: PUBLICATION CARD */
.publication-card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.publication-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.07), 0 20px 25px -5px rgba(0, 0, 0, 0.07);
}

.publication-book {
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.publication-card:hover .publication-book {
  transform: scale(1.03) rotateZ(-1deg);
  box-shadow: -8px 8px 20px rgba(0, 0, 0, 0.2);
}

/* 3. COMPONENT: TABS */
.value-tab {
  color: #4A4A4A;
  opacity: 0.6;
  transform: scale(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-tab:hover {
  color: #6A6A6A;
  opacity: 0.8;
}

.value-tab-active {
  color: #8B0000;
  opacity: 1;
  transform: scale(1.1);
}

.value-panel {
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* 4. COMPONENT: MISSION SECTION (ANIMATIONS) */
.mission-section-light {
  position: relative;
  padding: 100px 0;
  background: #F5F5F5;
  overflow: hidden;
}

.bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(139, 0, 0, 0.2);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-30px) translateX(20px); }
  50% { transform: translateY(-60px) translateX(-20px); }
  75% { transform: translateY(-30px) translateX(30px); }
}

.mission-card-light {
  position: relative;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px) rotateX(-10deg);
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mission-card-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.05), transparent);
  transition: left 0.6s;
}

.mission-card-light:hover::before {
  left: 100%;
}

.mission-card-light:hover {
  transform: translateY(-10px) rotateX(3deg) scale(1.02);
  border-color: rgba(139, 0, 0, 0.4);
  box-shadow: 0 20px 25px -5px rgba(139, 0, 0, 0.1), 0 10px 10px -5px rgba(139, 0, 0, 0.04);
}

.card-number-light {
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-size: 120px;
  font-weight: 700 !important;
  color: rgba(139, 0, 0, 0.04);
  line-height: 1;
  z-index: 0;
  transition: all 0.5s;
}

.mission-card-light:hover .card-number-light {
  color: rgba(139, 0, 0, 0.08);
  transform: scale(1.1) rotate(-5deg);
}

.icon-bg-light {
  position: absolute;
  inset: 0;
  background: rgba(139, 0, 0, 0.05);
  border-radius: 12px;
  transform: rotate(0deg);
  transition: all 0.5s;
}

.mission-card-light:hover .icon-bg-light {
  transform: rotate(180deg);
  background: rgba(139, 0, 0, 0.1);
}

.icon-svg-light {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B0000;
  transition: all 0.5s;
}

.mission-card-light:hover .icon-svg-light {
  transform: scale(1.1) rotateY(360deg);
  filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.5));
}

.icon-svg-light svg {
  width: 40px;
  height: 40px;
  stroke-width: 2;
}

.card-text-light {
  flex: 1;
  color: #8B0000;
  /* UPDATED FONT */
  font-family: 'Open Sans', sans-serif !important;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  transition: all 0.3s;
}

.mission-card-light:hover .card-text-light {
  color: #1A1A1A;
}

.glow-line-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8B0000, transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.mission-card-light:hover .glow-line-light {
  transform: translateX(100%);
}

.floating-shapes-light {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.shape-light:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid #8B0000;
  opacity: 0.05;
  animation: rotateTriangle 20s linear infinite;
}

.shape-light:nth-child(2) {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  border: 2px solid #8B0000;
  transform: rotate(45deg);
  opacity: 0.05;
  animation: rotateSquare 25s linear infinite;
}

@keyframes rotateTriangle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateSquare {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(405deg); }
}

/* 5. COMPONENT: SECTION HEADERS */
.section-header-light {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
}

.section-title-light {
  font-size: 3rem;
  font-weight: 700 !important;
  color: #8B0000;
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;

  /* Gradient Effect */
  background: linear-gradient(90deg, #4A4A4A, #8B0000, #4A4A4A);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;

  /* Spacing Fixes */
  line-height: 1.5 !important;
  padding-top: 15px !important;
  padding-bottom: 10px;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.title-underline-light {
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, transparent, #8B0000, transparent);
  margin: 20px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.title-underline-light::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: slide 2s infinite;
}

@keyframes slide {
  to { left: 100%; }
}

.section-header-dark {
  text-align: center;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(30px);
}

.section-title-dark {
  font-size: 3rem;
  font-weight: 700 !important;
  color: #FFFFFF;
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;

  background: linear-gradient(90deg, #a0aec0, #FFFFFF, #a0aec0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;

  line-height: 1.5 !important;
  padding-top: 15px !important;
  padding-bottom: 10px;
}

.title-underline-dark {
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, transparent, #8B0000, transparent);
  margin: 20px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.title-underline-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: slide 2s infinite;
}

@media (max-width: 768px) {
  .section-title-light, .section-title-dark {
    font-size: 2rem;
  }
  .mission-card-light {
    padding: 30px;
  }
  .mission-card-light .relative.z-10 {
    align-items: center;
    text-align: center;
  }
}

/* 6. COMPONENT: TEAM SLIDER */
.team-slider-container {
  position: relative;
}

.teamSlider {
  padding-left: 10px;
  padding-right: 10px;
}

.team-slider-next,
.team-slider-prev {
  color: #8B0000;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.team-slider-next:hover,
.team-slider-prev:hover {
  background-color: #8B0000;
  color: #FFFFFF;
}

.team-slider-next:after,
.team-slider-prev:after {
  font-size: 20px;
  font-weight: 700 !important;
}

@media (max-width: 767px) {
  .team-slider-next,
  .team-slider-prev {
    display: none;
  }
}

@media (min-width: 768px) {
  .team-slider-prev { left: -15px; }
  .team-slider-next { right: -15px; }
}

.team-slider-pagination {
  position: relative;
  bottom: auto;
  margin-top: 2rem;
}

.team-slider-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #CCCCCC;
  opacity: 1;
  transition: all 0.3s ease;
}

.team-slider-pagination .swiper-pagination-bullet-active {
  background-color: #8B0000;
  transform: scale(1.2);
}

/* 7. NAVIGATION & HEADER FIXES */
#main-nav-links li:hover > .sub-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#main-header, .header-container, header {
  overflow: visible !important;
  z-index: 9999;
}

#top-bar {
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
  padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
  opacity 0.4s ease-out !important;
  transform-origin: top;
  overflow: hidden;
  max-height: 50px;
  opacity: 1;
  will-change: max-height, padding;
}

#top-bar.hidden-bar {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: none !important;
}

/* ==========================================================================
   9. GLOBAL TYPOGRAPHY & FONT OVERRIDES (OPEN SANS)
   ========================================================================== */

/* 9.1 Content Typography (Blocks) */
.prose {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 11pt !important;
  line-height: 17pt !important;
  text-align: justify !important;
  color: #333;
}

.prose p, .prose div, .prose li, .prose table td {
  margin-top: 0 !important;
  margin-bottom: 6pt !important;
  padding: 0 !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 11pt !important;
  line-height: 17pt !important;
  text-align: justify !important;
}

/* 9.2 Inline Text (Spans, Strong) */
.prose span {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 11pt !important;
  line-height: 17pt !important;
  color: inherit; /* Cho phép màu tùy chỉnh */
  background-color: transparent !important;
}

.prose strong, .prose b {
  font-weight: 700 !important;
  font-size: 11pt !important;
  color: inherit;
}

.prose em, .prose i {
  font-style: italic !important;
  font-size: 11pt !important;
  color: inherit;
}

/* 9.3 Headings inside Content */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'Open Sans', sans-serif !important;
  font-weight: 700 !important;
  text-align: left !important;
  margin-top: 18pt !important;
  margin-bottom: 12pt !important;
  line-height: 1.3 !important;
  color: #1A1A1A;
}
.prose h1 { font-size: 20pt !important; }
.prose h2 { font-size: 16pt !important; border-bottom: none !important; }
.prose h3 { font-size: 14pt !important; color: #8B0000 !important; }
.prose h4, .prose h5, .prose h6 { font-size: 12pt !important; }

/* 9.4 Lists & Images */
.prose ul, .prose ol { margin-bottom: 12pt !important; padding-left: 24pt !important; }
.prose li { margin-bottom: 4pt !important; }
.prose ul { list-style-type: disc !important; }
.prose ol { list-style-type: decimal !important; }

.prose img {
  display: block !important;
  margin: 12pt auto !important;
  height: auto !important;
  max-width: 100% !important;
}

.prose a {
  color: #0066cc !important;
  text-decoration: none !important;
  border-bottom: 1px dotted #0066cc !important;
}

/* 9.5 Video Centering */
.prose iframe, .prose video, .prose object, .prose embed {
  display: block !important;
  margin: 20px auto !important;
  max-width: 100% !important;
}
.prose p:has(iframe), .prose p:has(video) {
  text-align: center !important;
}

/* ==========================================================================
   10. UNIVERSAL FONT RESET & ADMIN PROTECTION
   ========================================================================== */

/* Áp dụng Open Sans cho toàn bộ các thành phần văn bản trên web */
body, h1, h2, h3, h4, h5, h6,
p, a, span, div, li,
td, th, blockquote, cite,
input, textarea, button, select, label,
.font-serif, .font-sans, .font-mono,
.font-serif-luxury,
.section-title-light, .section-title-dark,
.bross-info-title, .bross-item-title,
.card-text-light {
  font-family: 'Open Sans', sans-serif !important;
}

/* KHẮC PHỤC SỰ CỐ ADMIN BAR */
/* Bảo vệ các Icon của WordPress Admin Bar và Dashicons */
#wpadminbar *,
#wpadminbar:before,
#wpadminbar:after,
.dashicons,
.dashicons-before:before {
  /* Không ép font Open Sans lên các thành phần này */
  font-family: 'dashicons' !important;
}

/* Bảo vệ Font Awesome (Icon trên giao diện web) */
.fa, .fas, .far, .fab, .fal, .fad, [class*="icon-"], i {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", fontawesome !important;
  font-weight: 900 !important;
}

/* Tắt chế độ làm đậm giả */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   FIX BANNER 20 NĂM - ALL FONTS LORA (BẮT BUỘC ĐỒNG BỘ)
   ========================================================================== */

/* 1. CÀI ĐẶT KHUNG & ÉP FONT TOÀN DIỆN */
#hero-20th-anniv-final {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  /* Dòng này quan trọng: Ép font cho khung cha */
  font-family: 'Lora', serif !important;
}

/* KỸ THUẬT "NUCLEAR": Ép tất cả mọi phần tử con bên trong dùng Lora */
#hero-20th-anniv-final * {
  font-family: 'Lora', serif !important;
}

/* TRỪ CÁC ICON (Để không bị lỗi ô vuông) */
#hero-20th-anniv-final i,
#hero-20th-anniv-final .fas,
#hero-20th-anniv-final .fa {
  font-family: "Font Awesome 6 Free", fontawesome !important;
}

/* MOBILE */
#hero-20th-anniv-final {
  height: 300px !important;
  min-height: 0 !important;
}

/* PC */
@media (min-width: 768px) {
  #hero-20th-anniv-final {
    height: 70vh !important;
    min-height: 500px !important;
    max-height: 700px !important;
  }
}

/* 2. HIỆU ỨNG ZOOM ẢNH */
#hero-20th-anniv-final .slide-bg-image {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 10s ease;
  transform: scale(1);
}
#hero-20th-anniv-final .swiper-slide-active .slide-bg-image {
  transform: scale(1.1);
}

/* 3. LỚP PHỦ MÀU TỐI */
#hero-20th-anniv-final .hero-overlay-dark {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(60,30,10,0.6), rgba(0,0,0,0.9));
  z-index: 10;
}

/* 4. BADGE EST (ĐÃ ÉP LORA) */
#hero-20th-anniv-final .badge-est {
  background-color: #ffffff !important; color: #991b1b !important;
  padding: 8px 25px;
  border-radius: 50px; display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5); margin-bottom: 25px;
}
#hero-20th-anniv-final .badge-est span {
  font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  position: relative; top: 1px;
}
#hero-20th-anniv-final .badge-est i {
  font-size: 10px; position: relative; top: -1px;
}

/* 5. SỐ 20 (ĐÃ ÉP LORA) */
#hero-20th-anniv-final .big-number-wrap {
  position: relative; line-height: 0.8; margin-bottom: 15px; z-index: 20;
}
#hero-20th-anniv-final .number-20 {
  font-weight: 700 !important;
  background: linear-gradient(180deg, #e53935 0%, #b91c1c 40%, #500000 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
  margin: 0 !important; padding: 0 !important; display: block;
  font-size: 120px !important; /* Mobile */
}

/* 6. HỘP CHỮ YEARS (ĐÃ ÉP LORA) */
#hero-20th-anniv-final .years-box {
  position: absolute;
  top: 62%; left: 50%; transform: translate(-50%, -50%);
  background-color: rgba(0,0,0,0.65);
  padding: 5px 25px;
  border-radius: 4px;
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  white-space: nowrap;
}
#hero-20th-anniv-final .years-box span {
  color: #ffffff;
  font-weight: 400; text-transform: uppercase; line-height: 1;
  font-size: 14px; letter-spacing: 4px;
}

/* 7. SLOGAN (ĐÃ ÉP LORA) */
#hero-20th-anniv-final .slogan-container {
  padding: 0 20px; max-width: 800px; margin: 0 auto;
}
#hero-20th-anniv-final .text-slogan {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-style: italic;
  font-size: 18px !important;
  line-height: 1.4;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
/* Riêng chữ Celebrating */
#hero-20th-anniv-final .text-slogan .slogan-top {
  display: block; font-weight: 400; font-style: italic;
}
/* Riêng dòng chữ chính */
#hero-20th-anniv-final .text-slogan strong {
  font-weight: 700 !important;
  font-style: normal; text-transform: uppercase; display: block !important; width: 100%;
  font-size: 20px !important;
  color: #ffffff !important;
  border-bottom: 3px solid #C5A059; padding-bottom: 6px; margin-top: 4px;
}

/* --- PC OVERRIDE --- */
@media (min-width: 768px) {
  #hero-20th-anniv-final .number-20 { font-size: 190px !important; }

  #hero-20th-anniv-final .years-box { padding: 8px 40px; top: 62%; }
  #hero-20th-anniv-final .years-box span { font-size: 20px; letter-spacing: 6px; }

  #hero-20th-anniv-final .text-slogan .slogan-top { font-size: 30px !important; }
  #hero-20th-anniv-final .text-slogan strong {
    font-size: 36px !important;
    margin-top: 8px; border-bottom-width: 3px;
  }
}