@import url("https://fonts.googleapis.com/css2?family=Inria+Sans:wght@400;700&display=swap");

/* =========================
   HEADER – My_Web_Ver2 (DÙNG CHUNG)
   ========================= */
/* #region Side Gallery */
:root {
  --header-height: 70px;
  --header-bg: rgba(3, 32, 10, 0.5);
  --header-blur: 10px;

  --text-main: #ffffff;
  --text-sub: #c4c4c4;
  --text-accent: #ffffff;

  --font-family-main: "Inria Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --transition-fast: 0.2s ease;
}

/* Reset cơ bản + font dùng chung */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-main);
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
  font-size: 16px;
}

/* #endregion */

/* ===== Header (overlay trên banner) ===== */
/* #region Side Gallery */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--header-bg);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
}

.header-container {
  width: 100%;
  max-width: 2560px;
  height: 100%;
  margin: 0 auto;
  padding: 0 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

/* Brand */

.brand {
  font-size: 25px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav */

.primary-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  font-size: 16px;
}

.nav-item {
  position: relative;
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-item.active,
.nav-item:hover,
.nav-item:focus-visible {
  color: var(--text-accent);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background-color: rgba(213, 133, 72, 0.8);
}

/* Language switch */

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-family-main);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  padding: 4px 0;
}

.lang-btn .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--text-main);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 80px;

  background-color: rgba(3, 32, 10, 0.9);
  border-radius: 4px;

  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.lang-menu li a {
  display: block;
  padding: 6px 14px;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
}

.lang-menu li a:hover,
.lang-menu li a:focus-visible {
  color: var(--text-accent);
  background-color: rgba(255, 255, 255, 0.06);
}

.lang-switch.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive */

@media (max-width: 1024px) {
  .header-container {
    padding: 0 24px;
  }

  .primary-nav {
    gap: 24px;
    font-size: 15px;
  }

  .brand {
    font-size: 16px;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }

  .brand {
    font-size: 15px;
  }
}
#header_short-film {
  color: #ffffff;
}
/* #endregion */

/* ===== FOOTER divider ===== */
/* #region Side Gallery */
.footer__divider {
  margin: 60px 0 24px; /* cách phần nội dung phía trên */
  border: none;
  border-top: 1px solid #cfcfcf;
}

/* ===== Footer ===== */

.site-footer {
  width: 100%;
  padding-bottom: 32px;
  background: #ffffff;
  color: #000000;
  font-family: "Inria Sans", system-ui, sans-serif;
}

/* KHÔNG căn giữa – text nằm trái */
.footer__inner {
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start; /* Lệch trái */
  text-align: left; /* Lệch trái */
}

/* Dòng 1 – italic */
.footer__credit {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
}

/* Dòng 2 – light italic */
.footer__language {
  margin: 0;
  font-size: 13px;
  font-weight: 300; /* Light */
  font-style: italic;
}

.footer__lang-link {
  color: #626262;
  text-decoration: none;
  margin-left: 4px;
}

.footer__lang-link:hover {
  text-decoration: underline;
}
/* #endregion */

/* =========================
   PAGE – 1_Blog_EN
   ========================= */

/* Banner dưới header, full width */
/* #region Side Gallery */
.hero-banner {
  width: 100%;
}

/* Wrapper giữ tối thiểu 430px chiều cao */
.hero-banner__image-wrapper {
  margin: 0;
  min-height: 430px;
}

/* Ảnh phủ đầy wrapper, luôn ≥ 430px */
.hero-banner__image {
  width: 100%;
  height: 100%; /* cao theo wrapper */
  min-height: 430px; /* đảm bảo tối thiểu 430px nếu wrapper chưa set height */
  display: block;
  object-fit: cover;
}

/* #endregion */

/* // NỘI DUNG CHÍNH // */

/* #region Side Gallery */
/* #endregion */

/* Thông tin chung */
/* #region Side Gallery */
body {
  margin: 0;
}

/* Khối container nội dung chính */
.main-content {
  max-width: 1140px; /* linh hoạt hơn width cố định */
  width: 100%;
  margin: 0 auto; /* 👈 Căn giữa theo chiều ngang */
  overflow: hidden;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: stretch; /* cho con full width, nếu cần thì để center */
  gap: 50px;
}

/* Ảnh bên trong main-content */
.main-content img {
  border-radius: 20px;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* Khối text */
.film_text-content {
  font-style: normal;
  font-size: 16px;
  text-align: justify;
  text-align-last: left;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 0px;
  margin-right: 15px;
}
.film_text-h2 {
  margin: 0;
  color: #00360e;
  font-size: 23px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 0px;
  margin-right: 15px;
}
/* #endregion */

/* Intro film  */
/* #region Side Gallery */
.intro-film__video {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden; /* bắt buộc để bo góc iframe */
  width: 1140px;
  height: 600px;
}

.intro-film__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* #endregion */

/* I Ý tưởng film  */
/* #region Side Gallery */
#film-idea {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
#film-idea > .film_text-block {
  max-width: 510px;
}
.film-idea_main-image {
  margin: 0;
  width: 620px;
}
/* #endregion */

/* II Bối cảnh film  */
/* #region Side Gallery */
#film-background {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.film-background_image {
  margin: 0;
}

/* #endregion */

/* III Thành viên */
/* #region Side Gallery */
#film-members {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.film-members_list {
  margin-left: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.role {
  font-style: italic;
  font-size: 12px;
}
/* #endregion */

/* IV Tổng quan thiết bị */
/* #region Side Gallery */
#film-device {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.film-device_list {
  margin-left: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

/* #endregion */

/* V Tuyền thông */
/* #region Side Gallery */
#film-marketing {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
#film-marketing > .film_text-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
#film-marketing > .film_text-block > .film_text-h2 {
  width: 430px;
}
.film-marketing_header-image {
  max-width: 700px;
  margin: 0;
}
.film-marketing_main-image {
  margin: 0;
  width: 1140px;
  height: 400px;
  overflow: hidden;
  position: relative;
}
.film-marketing_main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.film-marketing_side-images {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.film-marketing_image {
  margin: 0;
}
/* #endregion */

/* VI Hậu trường */
/* #region Side Gallery */
#film-backstage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.film-backstage_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.film-backstage_header > .film_text-block {
  width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.film-backstage_header > .film_text-block > .film_text-h2 {
  margin-top: 0;
}
.film-backstage_header-image {
  margin: 0;
  width: 350px;
  height: 467px;
  overflow: hidden;
  position: relative;
}
.film-backstage_header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.film-backstage_main-image {
  margin: 0;
  width: 780px;
  height: 524px;
  overflow: hidden;
  position: relative;
}
.film-backstage_main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.film-backstage_image--full {
  margin: 0;
}
/* #endregion */

/* =========================
   IMAGE LIGHTBOX – FIT TO VIEWPORT
   ========================= */
/* #region Side Gallery */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.85);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__inner {
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__image {
  border-radius: 20px;
  display: block;
  width: auto;
  height: auto;
  max-width: 75vw;
  max-height: 75vh;
  object-fit: contain; /* đảm bảo ảnh không bao giờ bị crop */
}

img {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* #endregion */
