@import url("root.css");
@import url("fonts.css");
@import url("types.css");
@import url("text-color.css");
@import url("bg-color.css");
@import url("button.css");

@import url("header.css");
@import url("footer.css");
@import url("page/home.css");
@import url("page/blog.css");
@import url("page/career.css");

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

/* Flex Layout */
.flex-layout {
  display: flex;
  justify-content: space-start;
  gap: 32px;
  padding: 40px 0;
}

.title-sticky {
  position: sticky;
  top: 20px;
}

.flex-col-second {
  flex: 1;
  width: 100%;
}

/* Color Background */
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flex-row {
  display: flex;
  justify-content: space-center;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.bg-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.container {
  width: 100% !important;
  max-width: none !important;
}

/* Container */
@media (min-width: 1440px) {
  .container {
    margin: 0 auto !important;
    padding: 0 7.5rem !important;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .container {
    margin: 0 auto !important;
    padding: 0 2.5rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    margin: 0 auto !important;
    padding: 0 2.5rem !important;
  }
}

@media (max-width: 767px) {
  .container {
    margin: 0 auto !important;
    padding: 0 1rem !important;
  }
}

.section-hero {
  height: 100vh;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hidden-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hidden-scrollbar {
}

/* Resume Upload Styles */
.hidden-file-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.upload-success {
  color: #27ae60;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  background-color: rgba(39, 174, 96, 0.1);
}

/* Nút "Nộp hồ sơ" sau khi tải lên thành công */
.btn-submit-application {
  width: 100%;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .file-upload-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-name {
    margin-top: 8px;
    margin-left: 0;
  }
}

/* Screen reader only utility class */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Footer accessibility enhancements */
.footer[role="contentinfo"] {
  /* Ensure footer has proper focus management */
}

.subscription-form[aria-label] select:focus,
.subscription-form[aria-label] input:focus {
  outline: none;
}

/* Improved social media link accessibility */
.social-media a:focus {
  outline: none;
  border-radius: 4px;
}

a:-webkit-any-link {
  outline: none;
  text-decoration: none;
}

a {
  outline: none;
  text-decoration: none;
}

/* Message styling for better visibility */
.subscription-success,
.subscription-error {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.subscription-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.subscription-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* Language-specific typography adjustments */
[lang="en"] .footer .body-5,
[lang="en"] .footer .body-6,
[lang="en"] .footer .body-7 {
  font-family: inherit;
  line-height: 1.5;
}

[lang="vi"] .footer .body-5,
[lang="vi"] .footer .body-6,
[lang="vi"] .footer .body-7 {
  font-family: inherit;
  line-height: 1.6;
}

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  align-items: center;
  justify-content: center;
}
.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}
.video-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  width: 1200px;
  background: #000;
  overflow: hidden;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}
.video-modal.active .video-modal-content {
  transform: scale(1);
}
.video-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  z-index: 10;
  padding: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  transition: background 0.2s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-container video {
  background: #000;
}
@media (max-width: 768px) {
  .video-modal-content {
    width: 95vw;
    max-width: 95vw;
  }
  .video-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
}
