/* === PNT THEME VARIABLES === */
:root {
  --primary-color: #e7150c; /* ĐỎ TƯƠI – màu chủ đạo */
  --hover-color: #c21205; /* ĐỎ ĐẬM – dùng cho hover */
  --accent-color: #ff4c3b; /* ĐỎ CAM NHẤN PHỤ */
  --text-color: #222222; /* Màu chữ chính */
  --bg-color: #ffffff; /* Nền trắng */
  --light-gray: #f9f9f9; /* Xám nhạt */
  --shadow-color: rgba(0, 0, 0, 0.1); /* Bóng đổ nhẹ */
  --footer-bg: #a31408; /* ĐỎ NÂU – nền footer */
}

/* === TYPOGRAPHY === */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--text-color);
  font-weight: 700;
}

/* === BUTTONS === */
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--hover-color);
  color: #fff;
}

/* === HEADER === */

/* Container giới hạn chiều rộng */
.custom-container {
  max-width: 1320px;
}

/* Slogan bên cạnh logo */
.navbar-name {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-family: "serif";
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Ẩn slogan khi ở mobile */
@media (max-width: 767.98px) {
  .navbar-name {
    display: none;
  }
}

/* Icon mạng xã hội */
.top-social-icon {
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 5px;
  transition: opacity 0.2s;
}

.top-social-icon:hover {
  opacity: 0.8;
}

/* Top header */
.header_top {
  font-size: 15px;
  background-color: #ececec;
}

/* Text kết nối */
.knvst_text {
  font-weight: 500;
}

/* Hotline */
.hotlinetop a {
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

/* Nút dropdown */
.top-nav-button {
  font-size: 17px;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

/* Sticky navbar */
.sticky-navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow 0.3s ease;
}

.sticky-navbar.stuck {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive chỉnh layout top right khi mobile */
@media (max-width: 767.98px) {
  .ent-top-right {
    width: 100% !important;
    flex-grow: 1;
    justify-content: space-between !important;
    gap: 8px;
  }
}

/* === FOOTER === */
.landing-footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding: 50px 0 30px;
  font-size: 17px;
}

.landing-footer a {
  color: #fff;
  text-decoration: none;
}

.landing-footer .footer-heading {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.landing-footer .footer-heading::after {
  content: "";
  display: block;
  height: 3px;
  width: 60px;
  margin-top: 5px;
  background: #fff;
}

.landing-footer ul {
  list-style: none;
  padding: 0;
  font-size: 17px;
}

.landing-footer li {
  margin-bottom: 10px;
}

.landing-footer .icon {
  margin-right: 8px;
}

.landing-footer .social-icons img {
  height: 30px;
  border-radius: 5px;
}

.landing-footer .logo-mpgroup {
  margin-top: 10px;
  max-width: 120px;
}

.landing-footer p {
  font-size: 17px;
  margin-bottom: 10px;
}

/* === SLIDER === */
@media (min-width: 768px) {
  #landingCarousel .carousel-item {
    overflow: hidden;
  }

  #landingCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 767.98px) {
  #landingCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

@media (max-width: 576px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    transform: scale(0.8);
  }
}

/* === SERVICES SECTION === */
.service-item {
  background-color: var(--bg-color);
  border-radius: 10px;
  transition: all 0.3s ease;
  color: var(--text-color);
  text-align: center;
}

.service-item:hover {
  background-color: var(--primary-color);
  color: #fff !important;
  cursor: pointer;
  transform: translateY(-5px);
  box-shadow: 0 6px 12px var(--shadow-color);
}

.service-item:hover h5,
.service-item:hover p {
  color: #fff;
}

.service-item img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service-item:hover img {
  transform: scale(1.1);
  filter: grayscale(1) brightness(400%);
}

.services-section h2 {
  color: var(--text-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* === JOB OPPORTUNITIES === */
.job-opportunity .section-title {
  font-size: 2rem;
  font-weight: 600;
}

.job-opportunity .job-description p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.job-opportunity .btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 20px;
  transition: 0.3s;
}

.job-opportunity .btn-success:hover {
  background-color: var(--hover-color);
  border-color: white;
}

@media (max-width: 767.98px) {
  .job-text {
    text-align: center;
  }

  .job-text .btn {
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
  }
}

/* === LEGALIZATION === */
.tiktok-embed section {
  display: none !important;
}

.legalization-video-wrapper {
  position: relative;
  height: 500px;
  /* bạn có thể chỉnh số này tùy theo mong muốn */
  width: calc(500px * 9 / 16);
  /* hoặc: width: 281.25px; */
  margin: 0 auto;
  /* căn giữa */
  overflow: hidden;
  border-radius: 12px;
}

.legalization-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 576px) {
  .legalization-video-wrapper {
    height: 360px;
    width: calc(360px * 9 / 16);
  }
}

/* === WHY CHOOSE SSHR === */
.why-pnt .section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
}

.why-pnt .why-item {
  padding: 20px;
  transition: all 0.3s ease-in-out;
  border-radius: 10px;
}

.why-pnt .why-item:hover {
  background-color: var(--primary-color);
  color: #fff;
  cursor: pointer;
}

.why-pnt .why-item:hover p {
  color: #fff;
}

.why-pnt .why-item:hover img {
  transform: scale(1.1);
  filter: grayscale(1) brightness(400%);
}

.why-pnt .why-icon img {
  height: 64px;
  width: 64px;
  transition: filter 0.3s ease-in-out;
}

.why-pnt .why-item p {
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 767.98px) {
  .why-pnt .why-item {
    padding: 10px;
  }

  .why-pnt .why-icon img {
    height: 48px;
    width: 48px;
  }

  .why-pnt .section-title {
    font-size: 1.5rem;
  }
}

/* === SUBSCRIPTIONS === */
.plan-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.plan-header {
  padding: 1.5rem 1rem 2.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}

.plan-header h5 {
  font-size: 1.25rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 0.25rem;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: normal;
  display: block;
  margin-top: -0.25rem;
}

.list-unstyled li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.small {
  font-size: 0.85rem;
}

.bg-basic {
  background: linear-gradient(to right, #f857a6, #ff5858);
}

.bg-plus {
  background: linear-gradient(to right, #f9d423, #ff4e50);
}

.bg-premium {
  background: linear-gradient(to right, #00c9ff, #92fe9d);
}

.featured {
  transform: scale(1.05);
  z-index: 10;
}

@media (min-width: 768px) {
  .featured {
    margin-top: -1rem;
  }
}

@media (max-width: 767.98px) {
  .plan-card {
    margin-bottom: 1.5rem;
  }
}

/* === NEWS SECTION === */
#news-section .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

#news-section .card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* === Thumbnail Zoom Hover === */
.news-thumb,
.video-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-thumb img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.news-card-wrapper:hover img,
.video-card-wrapper:hover img {
  transform: scale(1.05);
}

/* === Play Button (Video) === */
.play-btn {
  width: 56px;
  height: 56px;
  border: none;
  background-color: var(--primary-color, #f7931e);
  border-radius: 50%;
  font-size: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  pointer-events: none; /* để sự kiện click áp dụng cho toàn card */
}

/* === PARTNER SECTION === */
.partner-section .section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
}

.partner-logo {
  padding: 10px 15px;
  text-align: center;
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logo:hover img {
  transform: scale(1.1);
}

/* === SCROLL TO TOP === */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn i {
  width: 20px;
  height: 20px;
  stroke: white;
}

/* === VIDEO CARD && SECTIONS === */
.modal-dialog {
  margin: 0; /* Remove default margin */
  max-width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#videoFrame {
  border: none;
  display: block;
  max-width: 100%;
}

.video-landscape {
  width: 70vw;
  height: calc(70vw * 9 / 16); /* 16:9 */
}

.video-portrait {
  height: 90vh;
  width: calc(90vh * 9 / 16); /* 9:16 */
}

/* Responsive ratio 9:16 (video dọc) */
.ratio-9x16 {
  position: relative;
  width: 100%;
  padding-bottom: 177.77%; /* 16 / 9 * 100% = 177.77% */
  background-color: #000;
}

.ratio-9x16 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === ANIMATIONS === */
.btn-scale {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  padding: 0.6rem 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-scale:hover {
  background-color: var(--hover-color);
  border-color: var(--hover-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
  color: #fff;
}
