/* ================================================
   IR Sections
   ================================================ */

.ir-section { width: 100%; background: #fff; }
.ir-section.ir-policy { background: #fff; }
.ir-section-inner {
  width: 100%;
  max-width: 1440px;
}

.ir-section-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.ir-section-subtitle:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.ir-section-text,
.p-ir-section__text {
  font-size: 0.9375rem;
  line-height: 2.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.ir-section-text:last-child,
.p-ir-section__text:last-child { margin-bottom: 0; }

/* Contact */
.ir-section.ir-contact { background: #fff; }
.ir-contact {
  display: flex;
  gap: 2rem;
}
.ir-contact-box {
  flex: 1;
  padding: 2rem 1.75rem;
}
.ir-contact-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.ir-content-card {
  margin-top: 0;
  border-radius: 12px;
  padding: 2rem;
}

/* ================================================
   XJ Document Widget
   ================================================ */

.xj-section {
  margin-bottom: 2rem;
  border-radius: 12px;
  padding: 2rem;
}
.xj-section:last-of-type { margin-bottom: 0; }
.xj-select-year {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.xj-select-year select {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--primary-color);
  padding: 0.45rem 2.5rem 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d2f4e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.xj-select-year select:hover {
  background-color: var(--primary-color);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.xj-select-year select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 47, 78, 0.2);
}
.xj-category {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-left: 0;
}
/* Category button base */
.xj-category-item {
  list-style: none;
}
.xj-category-item a {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid currentColor;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Per-category colors */
.xj-category-item-all        a,
.xj-category-item-results     a,
.xj-category-item-timely      a,
.xj-category-item-report      a,
.xj-category-item-ir          a,
.xj-category-item-info        a { color: var(--primary-color); border-color: var(--primary-color); }

/* Active / hover — fill with var(--text-dark), text turns white */
.xj-category-item-all.active       a,
.xj-category-item-all              a:hover,
.xj-category-item-results.active   a,
.xj-category-item-results          a:hover,
.xj-category-item-timely.active    a,
.xj-category-item-timely           a:hover,
.xj-category-item-report.active    a,
.xj-category-item-report           a:hover,
.xj-category-item-ir.active        a,
.xj-category-item-ir               a:hover,
.xj-category-item-info.active      a,
.xj-category-item-info             a:hover { background: var(--primary-color); color: #fff; }

/* Document list */
.xj-list {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-left: 0;
}
.xj-list li,
.xj-list-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.xj-list-inner { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-dark); cursor: pointer; }
.xj-list-inner:hover { color: var(--secondary-color); opacity: 1; }

/* PDF icon before the (KB) file size text rendered by the XJ widget */
.xj-icon-pdf {
  display: inline;
  margin-left: 0.6em;
}
.xj-icon-pdf::before {
  content: '';
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  margin-right: 0.15em;
  background: url('/assets/investment/PDF-Icon.png') no-repeat center / contain;
}

/* Category label badges on each file row */
.xj-list-label {
  display: inline-block;
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid currentColor;
  white-space: nowrap;
}
.xj-list-label-results,
.xj-list-label-timely,
.xj-list-label-report,
.xj-list-label-ir,
.xj-list-label-info { color: var(--text-dark); }
.xj-adobe {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--light-bg);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.xj-adobe-link { text-decoration: none; flex-shrink: 0; }
.xj-adobe-link img { height: 1.5rem; display: block; }
.xj-adobe-text {
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.6;
  flex: 1;
}

/* ================================================
   Movie Section
   ================================================ */

.movie {
  width: 100%;
  background: #fff;
}
.movie-inner {
  width: 100%;
  max-width: 1440px;
  border-bottom: none;
}

.movie-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.movie-area video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Pointer cursor for PDF and email links */
a[href^="mailto"] { cursor: pointer; }

/* 13-inch (≤ 1280px) */
@media screen and (max-width: 1280px) {
  .ir-section-inner { padding: 4rem 1.5rem; }
  .xj-section { padding: 1.75rem; }
}

/* iPad (≤ 1024px) */
@media screen and (max-width: 1024px) {
  .ir-section-inner { padding: 3.5rem 1.25rem; }
  .xj-section { padding: 1.5rem; }
  .ir-contact { gap: 1.5rem; }
}

/* Mobile (≤ 767px) */
@media screen and (max-width: 767px) {
  .ir-section-inner { padding: 2.5rem 1.25rem; }
  .ir-contact { flex-direction: column; }
  .ir-section-text,
  .p-ir-section__text { font-size: 1rem; line-height: 2; }
  .ir-section-subtitle { font-size: 1.1rem; }
  .xj-section { padding: 1.25rem; }
  .xj-adobe { flex-direction: column; gap: 0.75rem; }
  .xj-adobe-text { font-size: 1rem; }
}
