/* =========================================
   Additional Custom Styles
   ========================================= */

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #0a1e3c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #ffcc00;
  color: #0a1e3c;
  transform: translateY(-5px);
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #0a1e3c;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0a1e3c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffcc00;
}

/* Fix logo display */
.logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 15px;
}

.logo span {
  color: #fff;
  transition: color 0.3s;
}

.logo:hover span {
  color: #ffcc00;
}

/* Fix menu items */
.main-menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu li {
  margin-left: 30px;
  position: relative;
}

.main-menu a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding-bottom: 5px;
  transition: color 0.3s;
  text-decoration: none;
  display: inline-block;
}

.main-menu a:hover,
.main-menu a.active,
.main-menu .current-menu-item a {
  color: #ffcc00;
}

.main-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffcc00;
  transition: width 0.3s;
}

.main-menu a:hover::after,
.main-menu .current-menu-item a::after {
  width: 100%;
}

/* Mobile menu */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0a1e3c;
    flex-direction: column;
    padding: 20px;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .main-menu.active {
    display: flex;
  }

  .main-menu li {
    margin: 10px 0;
    margin-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
  }

  .main-menu li:last-child {
    border-bottom: none;
  }

  .main-menu a {
    display: block;
  }

  .logo {
    font-size: 16px;
  }

  .logo img {
    height: 35px;
    margin-right: 8px;
  }
}

/* Recruitment pages */
.subpage-hero {
  position: relative;
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.subpage-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 3px solid #ffcc00;
  padding-bottom: 10px;
}

.recruitment-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.breadcrumb-area {
  background-color: #f5f5f5;
  padding: 95px 0 20px;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  color: #9ca3af;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb li.active {
  color: #0a1e3c;
  font-weight: 700;
}

.rec-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  background: #fff;
  padding: 25px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rec-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.rec-title-small {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  color: #0a1e3c;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.rec-title-small i {
  margin-right: 10px;
  color: #ffcc00;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.filter-item {
  display: flex;
  flex-direction: column;
}

.filter-item label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.custom-select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  font-family: "Roboto", sans-serif;
  color: #333;
  cursor: pointer;
  width: 100%;
  background-color: #fff;
}

.custom-select:focus {
  border-color: #0a1e3c;
}

.rec-table-container {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.rec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.rec-table thead {
  background-color: #0a1e3c;
  color: #fff;
}

.rec-table th,
.rec-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.rec-table th {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.rec-table tbody tr:hover {
  background-color: #f0f7ff;
}

.rec-job-title {
  font-weight: 700;
  color: #0a1e3c;
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
}

.rec-job-title:hover {
  color: #ffcc00;
}

.rec-job-code {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.rec-salary {
  font-weight: 700;
  color: #d0021b;
  white-space: nowrap;
}

.col-nowrap {
  white-space: nowrap;
}

.rec-badge {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 5px;
  vertical-align: middle;
}

.badge-hot {
  background-color: #ffebee;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.badge-new {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.btn-detail {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #0a1e3c;
  color: #0a1e3c;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.btn-detail:hover {
  background: #0a1e3c;
  color: #fff;
}

.pagination-container ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 8px;
  padding-left: 0;
}

.pagination-container .page-numbers {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 4px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.pagination-container .page-numbers:hover,
.pagination-container .page-numbers.current {
  background: #0a1e3c;
  color: #fff;
  border-color: #0a1e3c;
}

/* Single job */
.job-detail-section {
  background: #f7f9fc;
  padding: 40px 0 70px;
}

.job-header-card,
.content-block,
.sidebar-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(10, 30, 60, 0.08);
}

.job-header-card {
  padding: 28px;
  margin-bottom: 24px;
  border-left: 5px solid #0a1e3c;
}

.job-title {
  font-family: "Oswald", sans-serif;
  font-size: 34px;
  color: #0a1e3c;
  margin-bottom: 18px;
}

.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.meta-item {
  background: #f3f6fa;
  border-radius: 8px;
  padding: 14px;
}

.meta-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #5b6675;
  font-weight: 700;
  margin-bottom: 5px;
}

.meta-value {
  color: #0a1e3c;
  font-weight: 700;
}

.meta-value.salary {
  color: #d0021b;
}

.job-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.content-block {
  padding: 26px;
}

.content-title {
  font-family: "Oswald", sans-serif;
  color: #0a1e3c;
  margin-bottom: 12px;
}

.content-body {
  line-height: 1.8;
  color: #374151;
}

.job-section {
  margin-bottom: 24px;
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section-title {
  font-family: "Oswald", sans-serif;
  color: #0a1e3c;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d8dde5;
}

.job-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.job-section-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.job-section-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4c000;
  position: absolute;
  left: 0;
  top: 0.95em;
  transform: translateY(-50%);
}

.job-section-list li:last-child {
  margin-bottom: 0;
}

.sidebar-card {
  padding: 22px;
}

.btn-apply,
.btn-submit {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #d0021b;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-apply:hover,
.btn-submit:hover {
  background: #112e56;
}

.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.contact-info {
  margin-top: 15px;
  color: #4a5568;
  line-height: 1.7;
}

.apply-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.apply-modal.open {
  display: flex;
}

.apply-modal-content {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a1e3c;
  color: #fff;
  padding: 14px 18px;
}

.modal-title {
  font-family: "Oswald", sans-serif;
  margin: 0;
}

.modal-close {
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-weight: 700;
  margin-bottom: 7px;
  display: block;
}

.form-control {
  width: 100%;
  border: 1px solid #d6dde7;
  border-radius: 6px;
  padding: 10px 12px;
}

.file-upload-wrapper {
  border: 2px dashed #b9c5d6;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  text-align: center;
}

.upload-icon {
  font-size: 28px;
  color: #0a1e3c;
  margin-bottom: 6px;
}

.upload-text {
  color: #4a5568;
  font-size: 14px;
}

.file-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 992px) {
  .filter-grid,
  .job-meta-grid,
  .job-layout {
    grid-template-columns: 1fr;
  }

  .subpage-title {
    font-size: 32px;
  }
}

/* Contact page */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-col h3 {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  color: #0a1e3c;
  text-transform: uppercase;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.contact-info-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ffcc00;
}

.contact-detail-list {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: #f0f4f8;
  color: #0a1e3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-item:hover .contact-icon {
  background: #0a1e3c;
  color: #fff;
}

.contact-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.contact-text p {
  font-size: 15px;
  color: #666;
  margin-bottom: 0;
}

.contact-map {
  width: 100%;
  height: 300px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form-wrapper {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-title {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  color: #0a1e3c;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.contact-form-desc {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 15px;
}

.contact-form-message {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* About page */
.toc-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 70px;
  z-index: 900;
  transition: top 0.3s;
}

.toc-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.toc-item {
  padding: 15px 25px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.toc-item:hover,
.toc-item.active {
  color: #0a1e3c;
  border-bottom-color: #0a1e3c;
  background: #eee;
}

.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}

.about-text-col {
  padding-right: 20px;
}

.slogan-box {
  background-color: #f9f9f9;
  border-left: 5px solid #ffcc00;
  padding: 25px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.slogan-box::before {
  content: "\f10d";
  font-family: "FontAwesome";
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 40px;
  color: #e0e0e0;
  z-index: 1;
}

.company-slogan {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  line-height: 1.4;
  color: #0a1e3c;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.slogan-highlight {
  color: #ffcc00;
}

.about-desc {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
  text-align: justify;
}

.about-desc strong {
  color: #333;
}

.positioning-block {
  background: #0a1e3c;
  color: #fff;
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
}

.positioning-title {
  font-family: "Oswald", sans-serif;
  color: #ffcc00;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.positioning-title i {
  margin-right: 10px;
}

.positioning-text {
  font-size: 15px;
  opacity: 0.9;
}

.director-img-col {
  position: relative;
}

.director-frame {
  position: relative;
  z-index: 2;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.director-frame img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}

.director-frame:hover img {
  transform: scale(1.03);
}

.director-img-col::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 50%;
  height: 50%;
  border-top: 5px solid #ffcc00;
  border-left: 5px solid #ffcc00;
  z-index: 1;
}

.director-img-col::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 50%;
  height: 50%;
  border-bottom: 5px solid #0a1e3c;
  border-right: 5px solid #0a1e3c;
  z-index: 1;
}

.director-caption {
  margin-top: 15px;
  text-align: center;
  font-family: "Oswald", sans-serif;
}

.director-name {
  font-size: 20px;
  font-weight: 700;
  color: #0a1e3c;
  text-transform: uppercase;
}

.director-title {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vision-section {
  padding: 80px 0;
  background-color: #f4f4f4;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading-center h2 {
  font-family: "Oswald", sans-serif;
  font-size: 36px;
  color: #0a1e3c;
  text-transform: uppercase;
}

.section-heading-center .divider {
  width: 60px;
  height: 3px;
  background: #ffcc00;
  margin: 15px auto 0;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.vm-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vm-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #0a1e3c;
  transition: height 0.3s;
  z-index: 1;
}

.vm-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.vm-card.vision-card::before {
  background: #0a1e3c;
}

.vm-card.mission-card::before {
  background: #ffcc00;
}

.vm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 32px;
  color: #0a1e3c;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.vm-card:hover .vm-icon {
  background: #0a1e3c;
  color: #fff;
}

.mission-card:hover .vm-icon {
  background: #ffcc00;
  color: #000;
}

.vm-title {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.vision-card .vm-title {
  color: #0a1e3c;
}

.mission-card .vm-title {
  color: #d4a000;
}

.vm-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.core-values-container {
  margin-top: 20px;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.core-value-item {
  background: #fff;
  padding: 25px;
  text-align: center;
  border-radius: 4px;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}

.core-value-item:hover {
  transform: translateY(-5px);
  border-bottom-color: #ffcc00;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cv-icon {
  font-size: 40px;
  color: #0a1e3c;
  margin-bottom: 15px;
}

.cv-title {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cv-desc {
  font-size: 14px;
  color: #666;
}

.history-section {
  padding: 80px 0;
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.history-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 30, 60, 0.9);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.history-section .container {
  position: relative;
  z-index: 2;
}

.history-section .section-heading-center h2 {
  color: #fff;
}

.history-display {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
  min-height: 350px;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.history-display.fade-out {
  opacity: 0;
}

.history-img-box {
  width: 100%;
  height: 350px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.history-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-info-box {
  padding-left: 20px;
  border-left: 4px solid #ffcc00;
}

.hist-year-big {
  font-family: "Oswald", sans-serif;
  font-size: 80px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  margin-bottom: -30px;
  position: relative;
  z-index: 1;
}

.hist-title {
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  color: #ffcc00;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.hist-desc {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.8;
}

.history-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px 0;
  position: relative;
}

.timeline-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  max-width: 900px;
  padding: 0 20px;
}

.timeline-container::-webkit-scrollbar {
  display: none;
}

.timeline-year-item {
  padding: 0 40px;
  position: relative;
  cursor: pointer;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.timeline-year-item::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-55%);
  color: rgba(255, 255, 255, 0.1);
  font-size: 24px;
  font-weight: 300;
}

.timeline-year-item:last-child::after {
  content: none;
}

.year-text {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 400;
  transition: all 0.3s;
}

.timeline-year-item.active {
  color: #ffcc00;
  transform: scale(1.3);
}

.timeline-year-item.active .year-text {
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}

.timeline-year-item:hover {
  color: #fff;
}

.nav-arrow {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-arrow:hover {
  background: #ffcc00;
  border-color: #ffcc00;
  color: #000;
  transform: scale(1.1);
}

.factories-section {
  padding: 80px 0;
  background-color: #fff;
}

.factory-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 10px;
}

.filter-btn {
  padding: 10px 25px;
  background: #f0f0f0;
  border: none;
  border-radius: 30px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  color: #555;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: #0a1e3c;
  color: #ffcc00;
  box-shadow: 0 5px 15px rgba(10, 30, 60, 0.2);
}

.factories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.factory-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    opacity 0.3s;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.factory-card.hidden {
  display: none;
}

.factory-card.show {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.factory-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-bottom-color: #ffcc00;
}

.factory-thumb {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.factory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.factory-card:hover .factory-thumb img {
  transform: scale(1.1);
}

.factory-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 30, 60, 0.9);
  padding: 10px 15px;
  z-index: 2;
  transition: background 0.3s;
}

.factory-card:hover .factory-title-overlay {
  background: #ffcc00;
}

.factory-name {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.3s;
}

.factory-card:hover .factory-name {
  color: #0a1e3c;
}

.factory-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.factory-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.factory-detail-list li {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.factory-detail-list li i {
  color: #ffcc00;
  margin-right: 10px;
  margin-top: 4px;
  width: 16px;
}

.factory-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.factory-modal.open {
  display: flex;
  opacity: 1;
}

.factory-modal-content {
  background: #fff;
  width: 80%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.factory-modal.open .factory-modal-content {
  transform: translateY(0);
}

.factory-modal .modal-header {
  padding: 20px 30px;
  background: #0a1e3c;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #ffcc00;
  flex-shrink: 0;
}

.factory-modal .modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.factory-modal .modal-close {
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  line-height: 1;
}

.factory-modal .modal-close:hover {
  color: #ffcc00;
  transform: rotate(90deg);
}

.factory-modal .modal-body {
  padding: 40px;
  overflow-y: auto;
  line-height: 1.8;
  color: #444;
  font-size: 16px;
}

.modal-hero-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.factory-modal .modal-body h3 {
  font-family: "Oswald", sans-serif;
  color: #0a1e3c;
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 5px solid #ffcc00;
  text-transform: uppercase;
}

.factory-modal .modal-body p {
  margin-bottom: 20px;
  text-align: justify;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  background: #f5f7fa;
  padding: 20px;
  border-radius: 8px;
}

.info-item h5 {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.info-item span {
  font-size: 18px;
  font-weight: 700;
  color: #0a1e3c;
}

.structure-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.org-chart-wrapper {
  overflow-x: auto;
  padding-bottom: 40px;
  text-align: center;
}

.tree,
.tree ul,
.tree li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.tree {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
}

.tree ul {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.tree li {
  float: left;
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 20px 5px 0;
  transition: all 0.5s;
}

.tree li::before,
.tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid #ccc;
  width: 50%;
  height: 20px;
}

.tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid #ccc;
}

.tree li:only-child::after,
.tree li:only-child::before {
  display: none;
}

.tree li:only-child {
  padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
  border: 0 none;
}

.tree li:last-child::before {
  border-right: 2px solid #ccc;
  border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
  border-radius: 5px 0 0 0;
}

.tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid #ccc;
  width: 0;
  height: 20px;
}

.org-node {
  display: inline-block;
  border: 2px solid #0a1e3c;
  background: #fff;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  min-width: 160px;
  white-space: normal;
  vertical-align: top;
}

.org-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid #ddd;
  display: block;
  background-color: #f0f0f0;
}

.org-node:hover {
  background: #0a1e3c;
  color: #fff;
  border-color: #0a1e3c;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.org-node:hover .org-avatar {
  border-color: #fff;
}

.level-1 .org-node {
  background: #0a1e3c;
  color: #fff;
  font-size: 18px;
  border: none;
}

.level-1 .org-node .org-avatar {
  border-color: #ffcc00;
}

.level-2 .org-node {
  background: #fff;
  border-color: #ffcc00;
  color: #0a1e3c;
}

.level-3 .org-node {
  border-color: #ddd;
  color: #555;
  font-size: 13px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

.level-3 .org-node:hover {
  background: #ffcc00;
  color: #000;
  border-color: #ffcc00;
}

.awards-section {
  padding: 80px 0;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.award-card {
  text-align: center;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: 0.3s;
}

.award-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #ffcc00;
  transform: translateY(-5px);
}

.award-img-box {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #fafafa;
  border-radius: 4px;
}

.award-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.award-info h4 {
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  color: #0a1e3c;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.award-info p {
  font-size: 13px;
  color: #777;
}

@media (max-width: 992px) {
  .about-grid,
  .vm-grid {
    grid-template-columns: 1fr;
  }

  .core-values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .factories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .awards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .director-img-col {
    margin-top: 40px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .toc-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .toc-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 10px 5px;
    width: max-content;
  }

  .toc-item {
    flex: 0 0 auto;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin: 0 5px;
    padding: 8px 15px;
    font-size: 13px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }

  .toc-item.active {
    background-color: #0a1e3c;
    color: #fff;
    border-color: #0a1e3c;
  }

  .history-display {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    min-height: auto;
  }

  .history-img-box {
    height: 250px;
  }

  .history-nav-wrapper {
    padding: 20px 0;
  }

  .timeline-year-item {
    padding: 0 20px;
  }

  .factory-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .factory-modal .modal-body {
    padding: 20px;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .modal-hero-img {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .core-values-grid,
  .factories-grid,
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .subpage-title {
    font-size: 36px;
  }

.toc-bar {
    top: 60px;
  }
}

/* =========================================
   IR SECTION (Shareholders)
   ========================================= */
.ir-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.ir-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 900;
}

.ir-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ir-tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.ir-tab-btn:hover,
.ir-tab-btn.active {
    color: #0a1e3c;
    border-bottom-color: #ffcc00;
    background: #f5f5f5;
}

.ir-year-filter {
    display: flex;
    align-items: center;
}

.ir-year-filter label {
    margin-right: 10px;
    font-weight: 500;
}

.year-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-container {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
}

.doc-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid transparent;
}

.doc-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #ffcc00;
}

.doc-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 24px;
}

.doc-icon.pdf { color: #d32f2f; background: #ffebee; }
.doc-icon.word { color: #1976d2; background: #e3f2fd; }

.doc-content { flex-grow: 1; }

.doc-title {
    font-size: 16px;
    font-weight: 500;
    color: #0a1e3c;
    margin-bottom: 8px;
    line-height: 1.3;
}

.doc-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.doc-badge {
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
}

.badge-bctc { background-color: #e3f2fd; color: #1976d2; }
.badge-nq   { background-color: #fce4ec; color: #c2185b; }
.badge-bctn { background-color: #e8f5e9; color: #388e3c; }
.badge-cbtt { background-color: #fff3e0; color: #f57c00; }

.doc-action { margin-left: 20px; display: flex; gap: 10px; }

.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-download { background: #0a1e3c; color: #fff; }
.btn-view { background: #fff; border-color: #ddd; color: #555; }

.no-docs {
    display: none;
    text-align: center;
    color: #888;
    padding: 24px 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn.active { background: #0a1e3c; color: #fff; border-color: #0a1e3c; }
.page-btn.disabled { opacity: 0.5; pointer-events: none; }

.doc-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.doc-modal.open { display: flex; }

.doc-modal-content {
    background: #fff;
    width: 80%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    background: #0a1e3c;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ffcc00;
}

.modal-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.modal-body { flex-grow: 1; background: #f0f0f0; }
.modal-body iframe { width: 100%; height: 100%; border: none; }

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

@media (max-width: 992px) {
    .ir-controls { flex-direction: column; align-items: flex-start; gap: 15px; }
    .ir-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
    .ir-tab-btn { flex: 0 0 auto; white-space: nowrap; border: 1px solid #ddd; border-radius: 20px; padding: 8px 15px; font-size: 13px; }
    .doc-modal-content { width: 95%; height: 90vh; }
}

@media (max-width: 600px) {
    .doc-item { flex-direction: column; text-align: center; }
    .doc-icon { margin-right: 0; margin-bottom: 15px; }
    .doc-action { margin-left: 0; margin-top: 15px; justify-content: center; flex-wrap: wrap; }
}
