@charset "UTF-8";
/* CSS Document */
@font-face {
  font-family: 'Nebulica';
  src: url('../fonts/Nebulica-Thin.eot');
  src: url('../fonts/Nebulica-Thin.eot?#iefix') format('embedded-opentype'), url('../fonts/Nebulica-Thin.woff2') format('woff2'), url('../fonts/Nebulica-Thin.woff') format('woff'), url('../fonts/Nebulica-Thin.ttf') format('truetype'), url('../fonts/Nebulica-Thin.svg#Nebulica-Thin') format('svg');
  font-weight: 100;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  background-color: #fff;
  margin: 0px;
  padding: 0px;
  font-family: "Nebulica", Helvetica, Arial;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
.Container {
  width: 100%;
  background-color: #fff;
  overflow-x: hidden;
}
.HeaderContainer{
  width: 90%;
  max-width: 1200px;
  margin: 0px auto;
}
.Logo {
  position: relative;
  left: 0px;
  top: 20px;
  width: 250px;
  max-width: 60%;
  height: 80px;
  background-position: left center;
  background-image: url("../images/HKDI_logo_Horizontal_Black.png");
  background-repeat: no-repeat;
  background-size: contain;
}
.BannerContainer {
  position: relative;
  max-width: 1200px;
  width: 90%;
  aspect-ratio: 8 / 3;
  background-position: center center;
  background-image: url("../images/HKDIDesignShow2026KV_h.webp?v=2");
  background-repeat: no-repeat;
  background-size: contain;
  margin: 50px auto;
}
.EventInformation {
  width: 100%;
  max-width: 1280px;
  margin: 0px auto;
  padding: 50px;
  box-sizing: border-box;
  display: none;
}
.EventInformation .Session {
  margin-bottom: 100px;
}
.EventInformation p.SessionTitle {
  font-size: 25px;
  text-align: left;
  color: #333;
  margin: 0px auto 30px;
  line-height: 1.4;
  word-wrap: break-word;
}
.EventInformation p.SessionTitle span.SessionTitleEN {
  display: inline-block;
  width: fit-content;
  background-color: #ab6eff;
}
.EventInformation p.SessionTitle span.SessionTitleCHI {
  display: inline-block;
  width: fit-content;
  background-color: #60ff34;
  top: 10px;
  position: relative;
}
.EventInformation p.SessionContent {
  font-size: 16px;
  text-align: left;
  color: #333;
  line-height: 150%;
  word-wrap: break-word;
}
.EventInformation p.SessionContent sup {
  color: #555;
}
.EventInformation p.SessionContent.Annotation {
  font-size: 14px;
  color: #555;
  margin: 0px 0px 30px;
}
p.SessionSubtitle {
  font-size: 18px;
  text-align: left;
  color: #333;
}

/* ============ TABLES ============ */
.TableWrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  border: solid 0.5px #999;
  box-sizing: border-box;
  border-spacing: 0px;
  width: 100%;
  margin-bottom: 30px;
}
table th {
  font-size: 18px;
  color: #333;
  line-height: 150%;
  border: solid 0.5px #999;
  padding: 10px;
  box-sizing: border-box;
}
table th.DesignShowsTH {
  background-color: #60ff34;
  color: #333;
}
table th.ExhibitionsTH {
  background-color: #ab6eff;
  color: #333;
}
table th.ActivityTH {
  background-color: #60ff34;
  color: #333;
}
a {
  color: #333;
  text-decoration: underline;
  font-weight: bold;
  word-break: break-word;
}
a:hover {
  background-color: #60ff34;
  text-decoration: underline;
}
table td:first-child {
  width: 25%;
  max-width: 300px;
}
table td {
  font-size: 16px;
  text-align: left;
  color: #333;
  line-height: 150%;
  padding: 10px;
  box-sizing: border-box;
  vertical-align: text-top;
  border-top: solid 0.5px #999;
  border-bottom: solid 0.5px #999;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
table td span {
  display: block;
}
table td span.TableTitleEN {
  font-size: 18px;
  width: fit-content;
  max-width: 100%;
  color: #333;
  word-wrap: break-word;
}
table td span.TableTitleCHI {
  font-size: 18px;
  width: fit-content;
  max-width: 100%;
  color: #333;
  word-wrap: break-word;
}
table td span.ProgrammesParticipationType {
  font-size: 14px;
  color: #333;
}
table td span.TableDate {
  font-size: 18px;
  color: #333;
  word-wrap: break-word;
}
a.KwanKwaRegistration{
	position: relative;
	display: block;
	margin-top: 10px;
	width: fit-content;
}

/* ============ MAP ============ */
img.Map {
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin-bottom: 50px;
  display: block;
}

/* ============ FOOTER ============ */
.FooterContainer {
  display: block;
  width: 90%;
  max-width: 1280px;
  margin: 0px auto;
  padding: 30px 0px;
}
.FooterCopyRight {
  margin-top: 100px;
}
.FooterCopyRight p {
  text-align: center;
  font-size: 12px;
  color: #333;
}
.FooterDisclaimer p {
  text-align: center;
  font-size: 12px;
  color: #333;
}

/* ============ GALLERY ============ */
.gallery-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
}
.gallery-item {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #eaeaea;
}
.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
#lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
#lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
#lightbox .close-btn:hover {
  color: #ccc;
}
.message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* ============ SUPPORTING ORGS ============ */
.SupportingOrganisationsIconContainer{
  margin-top: 50px;
  display: flex;
  width: 100%;
  max-width: 1280px;
  justify-content: flex-start;
  align-items: center;
  align-content: space-between;
  flex-wrap: wrap;
  column-gap: 80px;
  row-gap: 20px;
}
.SupportingOrganisationsIcon{
  vertical-align: middle;
  margin-bottom: 50px;
  max-width: 100%;
}
.SupportingOrganisationsIcon img{
  max-width: 100%;
  height: auto;
  display: block;
}
/* Keep desktop widths using max-width so images don't overflow on mobile */
.SupportingOrganisationsIcon.DCHK img        { width: 170px; }
.SupportingOrganisationsIcon.FHKI img        { width: 98px;  }
.SupportingOrganisationsIcon.FHKIGroup31 img { width: 175px; }
.SupportingOrganisationsIcon.HKFDA img       { width: 60px;  }
.SupportingOrganisationsIcon.HKIUD img       { width: 168px; }
.SupportingOrganisationsIcon.HKIDA img       { width: 200px; }
.SupportingOrganisationsIcon.HKIA img        { width: 316px; }
.SupportingOrganisationsIcon.HKCMSA img      { width: 520px; }
.SupportingOrganisationsIcon.KRSHA img       { width: 92px;  }
.SupportingOrganisationsIcon.CUHKSHAA img    { width: 95px;  }


/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Tablet (<= 1024px) */
@media screen and (max-width: 1024px) {
  .EventInformation {
    padding: 30px;
  }
  .EventInformation .Session {
    margin-bottom: 70px;
  }
  .EventInformation p.SessionTitle {
    font-size: 22px;
  }
  .SupportingOrganisationsIconContainer {
    column-gap: 50px;
  }
}

/* Mobile (<= 768px) */
@media screen and (max-width: 768px) {
  .HeaderContainer {
    width: 92%;
  }
  .Logo {
    top: 15px;
    width: 180px;
    height: 60px;
  }
  .BannerContainer {
    width: 92%;
    margin: 30px auto;
  }
  .EventInformation {
    padding: 20px;
  }
  .EventInformation .Session {
    margin-bottom: 60px;
  }
  .EventInformation p.SessionTitle {
    font-size: 20px;
    margin-bottom: 25px;
  }
  .EventInformation p.SessionContent {
    font-size: 15px;
  }
  p.SessionSubtitle {
    font-size: 16px;
  }

  /* Stacked responsive tables - each row becomes a card */
  .ProgrammesTable{
    border: none;
  }
  .InfoTable {
    border: none;
    border-top: solid 0.5px #999;
  }
  .ProgrammesTable thead tr th {
    font-size: 16px;
    padding: 10px;
  }
  .ProgrammesTable tbody,
  .InfoTable tbody {
    display: block;
  }
  .ProgrammesTable tbody tr,
  .InfoTable tr {
    display: block;
    border: solid 0.5px #999;
    border-top: none;
    margin-bottom: 0;
    padding: 10px 0;
  }
  .ProgrammesTable tbody tr td,
  .InfoTable tr td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    border: none;
    padding: 6px 15px;
  }
  .ProgrammesTable tbody tr td:first-child,
  .InfoTable tr td:first-child {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 12px;
  }
  .ProgrammesTable tbody tr td:last-child,
  .InfoTable tr td:last-child {
    padding-bottom: 12px;
  }
  .ProgrammesTable tbody tr td:empty {
    display: none;
  }
  /* Small label above each cell on mobile */
  .ProgrammesTable tbody tr td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
  }
  table td span.TableTitleEN,
  table td span.TableTitleCHI {
    font-size: 16px;
  }
  table td span.TableDate {
    font-size: 16px;
  }

  /* Gallery */
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 5px;
  }
  .gallery-item {
    height: 180px;
    border-radius: 6px;
  }
  #lightbox .close-btn {
    top: 10px;
    right: 15px;
    font-size: 32px;
  }

  /* Supporting organisations - shrink all logos by half on mobile */
  .SupportingOrganisationsIconContainer {
    column-gap: 30px;
    row-gap: 10px;
    justify-content: center;
  }
  .SupportingOrganisationsIcon {
    margin-bottom: 30px;
    text-align: center;
  }
  .SupportingOrganisationsIcon img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
  .SupportingOrganisationsIcon.DCHK img        { width: 85px;  }  /* 170 / 2 */
  .SupportingOrganisationsIcon.FHKI img        { width: 49px;  }  /* 98 / 2 */
  .SupportingOrganisationsIcon.FHKIGroup31 img { width: 88px;  }  /* 175 / 2 */
  .SupportingOrganisationsIcon.HKFDA img       { width: 30px;  }  /* 60 / 2 */
  .SupportingOrganisationsIcon.HKIUD img       { width: 84px;  }  /* 168 / 2 */
  .SupportingOrganisationsIcon.HKIDA img       { width: 100px; }  /* 200 / 2 */
  .SupportingOrganisationsIcon.HKIA img        { width: 158px; }  /* 316 / 2 */
  .SupportingOrganisationsIcon.HKCMSA img      { width: 260px; }  /* 520 / 2 */
  .SupportingOrganisationsIcon.KRSHA img       { width: 46px;  }  /* 92 / 2 */
  .SupportingOrganisationsIcon.CUHKSHAA img    { width: 48px;  }  /* 95 / 2 */

  /* Footer */
  .FooterCopyRight {
    margin-top: 60px;
  }
  .FooterDisclaimer p,
  .FooterCopyRight p {
    font-size: 11px;
    padding: 0 10px;
  }
}

/* Small Mobile (<= 480px) */
@media screen and (max-width: 480px) {
  .Logo {
    width: 150px;
    height: 50px;
  }
  .EventInformation {
    padding: 15px;
  }
  .EventInformation .Session {
    margin-bottom: 50px;
  }
  .EventInformation p.SessionTitle {
    font-size: 18px;
  }
  .EventInformation p.SessionContent {
    font-size: 14px;
  }
  .EventInformation p.SessionContent.Annotation {
    font-size: 12px;
  }
  table td,
  table td span.TableTitleEN,
  table td span.TableTitleCHI,
  table td span.TableDate {
    font-size: 14px;
  }
  table td span.ProgrammesParticipationType {
    font-size: 12px;
  }
  .ProgrammesTable thead tr th {
    font-size: 15px;
  }
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gallery-item {
    height: 140px;
  }
  /* Ensure the largest halved logo (HKCMSA @ 260px) never overflows very small viewports */
  .SupportingOrganisationsIcon.HKCMSA img {
    width: 100%;
    max-width: 260px;
  }
}