/*
 * CS 2026 - International Workshop on Cyber Security
 * Desktop Styles — Modern Sci-Tech Theme
 * Color Palette: Deep Navy + Cyan/Teal Accent
 */

/* ========== CSS Variables ========== */
:root {
  --primary-dark: #060b1e;
  --primary: #0c1333;
  --primary-light: #131b45;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.15);
  --accent-glow: rgba(0, 212, 255, 0.35);
  --accent2: #6c5ce7;
  --surface: rgba(12, 19, 51, 0.92);
  --surface-light: rgba(19, 27, 69, 0.85);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(0, 212, 255, 0.12);
  --text-primary: #e8edf5;
  --text-secondary: #a0aec0;
  --text-heading: #ffffff;
  --danger: #ff6b6b;
  --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #6c5ce7 100%);
  --gradient-bg: linear-gradient(165deg, #060b1e 0%, #0c1333 40%, #131b45 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Base Structure ========== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background: var(--primary-dark);
}

/* ========== Background ========== */
.site-background {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: var(--gradient-bg);
  z-index: -2;
}

.site-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse 80% 60% at 20% 10%,
      rgba(0, 212, 255, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 80%,
      rgba(108, 92, 231, 0.06) 0%,
      transparent 70%
    );
  z-index: -1;
}

/* Subtle grid pattern */
.site-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
}

.site-wrapper {
  display: table;
  width: 100%;
  min-height: 100%;
}

.site-wrapper-inner {
  display: table-cell;
  vertical-align: top;
}

.site-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-section {
  width: 100%;
  padding: 8px 0;
}

.site-section + .site-section {
  padding-top: 0;
}

.site-section:first-child {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .site-section {
    padding: 8px 0;
  }
  .site-section:nth-child(2) {
    padding-bottom: 0;
  }
}

@media (min-width: 992px) {
  .site-section {
    padding: 12px 0;
  }
}

@media (min-width: 1200px) {
  .site-container {
    width: 100%;
    max-width: 1400px;
  }
}

/* ========== Jumbotron / Hero ========== */
.jumbotron {
  margin-bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 19, 51, 0.95) 0%,
    rgba(6, 11, 30, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-heading);
  text-align: center;
  padding: 40px 30px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.jumbotron::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.jumbotron::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 212, 255, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.jumbotron h1 {
  font-weight: 700;
  font-size: 28pt;
  margin-bottom: 10px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .jumbotron {
    padding: 50px 40px;
  }
  .jumbotron h1 {
    font-size: 32pt;
  }
}

@media (min-width: 992px) {
  .jumbotron h1 {
    font-size: 36pt;
  }
}

.jumbotron p {
  color: var(--text-secondary);
}

.jumbotron table {
  color: var(--text-secondary);
}

.jumbotron table th {
  font-weight: 400;
  padding: 2px 5px;
}

/* ========== Navigation ========== */
.mastnav {
  padding: 0;
  box-shadow: none;
  border-top: 0;
}

.mastnav-toggle,
.mastnav-nav {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mastnav-toggle > li,
.mastnav-nav > li {
  display: table-line;
  width: 100%;
  float: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .mastnav-toggle {
    display: none;
  }
  .mastnav-nav > li {
    display: table-cell;
    width: 1%;
  }
}

.mastnav-toggle > li > a,
.mastnav-nav > li > a {
  padding: 14px 0;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: none;
  position: relative;
}

.mastnav-nav > li > a {
  color: var(--text-secondary);
  background: var(--primary);
  border-bottom: 2px solid transparent;
}

.mastnav-nav > li > a:hover,
.mastnav-nav > li > a:focus {
  color: var(--accent);
  background: var(--primary-light);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.mastnav-nav > .active > a,
.mastnav-nav > .active > a:hover,
.mastnav-nav > .active > a:focus {
  color: var(--accent);
  background: var(--primary-light);
  border-bottom: 2px solid var(--accent);
  cursor: pointer;
  box-shadow: inset 0 -2px 8px rgba(0, 212, 255, 0.1);
}

.mastnav-toggle > li > a,
.mastnav-toggle > li > a:hover,
.mastnav-toggle > li > a:focus {
  color: var(--text-heading);
  background: var(--primary);
  padding: 15px 10px;
}

.mastnav-nav > li > .null-link,
.mastnav-nav > li > .null-link:hover,
.mastnav-nav > li > .null-link:focus {
  cursor: not-allowed;
  color: #555;
  background: var(--primary);
}

@media (min-width: 768px) {
  .mastnav-nav > li > p,
  .mastnav-nav > li > a {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  .mastnav-nav > li > p,
  .mastnav-nav > li > a {
    font-size: 17px;
  }
}

@media (min-width: 1200px) {
  .mastnav-nav > li > p,
  .mastnav-nav > li > a {
    font-size: 19px;
  }
}

@media (max-width: 767px) {
  .mastnav-nav > li > a {
    background: rgba(12, 19, 51, 0.95);
    border-bottom: 1px solid var(--glass-border);
  }
  .mastnav-nav > li > .null-link,
  .mastnav-nav > li > .null-link:hover,
  .mastnav-nav > li > .null-link:focus {
    background: rgba(12, 19, 51, 0.95);
  }
}

#site-menu {
  transition: box-shadow 0.3s ease;
}

.collapsing {
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Carousel ========== */
.carousel {
  background: var(--primary-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.carousel .item {
  width: 100%;
  height: 100%;
}

.carousel-inner > .item > img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.05);
  transition: filter 0.5s ease;
}

.carousel-inner > .item.active > img {
  filter: brightness(0.8) contrast(1.05);
}

.carousel-indicators li {
  border-color: var(--accent);
  background-color: transparent;
}

.carousel-indicators .active {
  background-color: var(--accent);
}

/* ========== Body Content ========== */
.mastbody {
  width: 78%;
  margin: 0 auto;
  padding: 30px 40px;
  color: var(--text-primary);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.mastbody + .mastbody {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .mastbody + .mastbody {
    margin-top: 12px;
  }
  .mastbody {
    padding: 30px 45px;
  }
}

.mastbody-white {
  background: var(--surface);
}

.mastbody-black {
  background: rgba(6, 11, 30, 0.95);
  color: var(--text-heading);
}

.mastbody-grey {
  background: var(--surface-light);
  color: var(--text-primary);
}

.mastbody-trans {
  background-color: transparent;
}

.mastbody-center {
  text-align: center;
}

.mastbody-text {
  padding: 1px 10px;
}

.mastbody a {
  color: var(--accent);
  transition: var(--transition);
}

.mastbody a:focus,
.mastbody a:hover {
  color: var(--text-heading);
  background: rgba(0, 212, 255, 0.1);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

@media (max-width: 767px) {
  .mastbody h1,
  .mastbody-white h1 {
    font-size: 22px;
  }
  .mastbody h2 {
    font-size: 18px;
  }
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-weight: 700;
}

.mastbody h1 {
  font-size: 26pt;
  margin-top: 35px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--glass-border);
  position: relative;
}

.mastbody h1::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gradient-accent);
}

.mastbody h1[style*="center"]::after {
  left: 50%;
  transform: translateX(-50%);
}

.lead {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
}

p.lead {
  margin-bottom: 15px;
}

strong {
  color: var(--text-heading);
}

/* ========== Labels / Badges ========== */
.label-danger {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(108, 92, 231, 0.15) 100%
  ) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  line-height: 1.6;
}

.badge {
  vertical-align: top;
  margin-top: 5px;
  background: var(--accent);
  color: var(--primary-dark);
}

/* ========== Buttons ========== */
.btn-custom {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.btn-custom:hover,
.btn-custom:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-glow);
}

.btn-custom2 {
  background: transparent;
  border-color: var(--text-heading);
  color: var(--text-heading);
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-custom2:hover,
.btn-custom2:focus {
  background: var(--text-heading);
  border-color: var(--text-heading);
  color: var(--primary-dark);
}

@media (max-width: 480px) {
  .btn-size {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
  }
}

@media (min-width: 481px) {
  .btn-size {
    margin-top: 30px;
  }
}

/* ========== Keynote / Speaker Cards ========== */
.keynote-row {
  padding: 20px 15px;
  margin-bottom: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.keynote-row:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.img-speaker {
  width: 66%;
  height: auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--glass-border);
  transition: var(--transition);
  object-fit: cover;
}

.keynote-row:hover .img-speaker {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

@media (max-width: 767px) {
  .keynote-lastrow {
    padding-bottom: 10px;
  }
  .vcenter {
    text-align: center;
  }
}

/* Collapse bio panels (Vue v-if driven) */
.bio-panel {
  background: rgba(0, 212, 255, 0.03);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -12px;
  margin-bottom: 12px;
  border: 1px solid var(--glass-border);
  border-top: none;
  animation: fadeInUp 0.3s ease-out;
}

.bio-panel .lead {
  padding: 15px 20px;
}

/* ========== Tables ========== */
.table-bordered {
  border-color: var(--glass-border);
}

.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tbody > tr > td {
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.table > thead > tr > th {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.table-sche {
  width: 100%;
  display: table;
  margin-bottom: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.table-sche > tbody {
  width: 100%;
}

.table-sche > tbody > tr > th,
.table-sche > tbody > tr > td {
  float: none;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  border-color: var(--glass-border);
  color: var(--text-primary);
  padding: 10px 8px;
}

.table-sche > tbody > tr > th {
  padding: 8px 5px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(108, 92, 231, 0.1) 100%
  );
  color: var(--accent);
  font-weight: 600;
}

.table-sche > tbody > tr > td {
  padding: 10px 8px;
}

.table-sche > tbody > tr:hover > td {
  background: rgba(0, 212, 255, 0.04);
}

.table-sche > tbody > tr > td a {
  display: block;
  text-decoration: none;
  color: var(--accent);
}

@media (max-width: 767px) {
  .div-sche .table-sche {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .table-sche > tbody > tr:first-child > th {
    padding: 15px 5px;
    background: linear-gradient(
      135deg,
      var(--primary-light) 0%,
      var(--primary) 100%
    );
    color: var(--accent);
    font-size: 18px;
  }
  .div-sche .lead {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  .div-sche .lead {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .div-sche .lead {
    font-size: 21px;
  }
}

.table-program > tbody > tr > th,
.table-program > tbody > tr > td {
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.table-program > tbody > tr:first-child > th {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
  color: var(--accent);
}

.table-program {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.table-program td {
  background: transparent;
  padding: 12px 15px;
}

.table-program tr:hover td {
  background: rgba(0, 212, 255, 0.04);
}

/* ========== Gallery ========== */
.gallery {
  margin: 0;
}

.gallery-left,
.gallery-right {
  padding: 0;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .gallery-left {
    padding-left: 0;
    padding-right: 5px;
  }
  .gallery-right {
    padding-left: 5px;
    padding-right: 0;
  }
}

.nopad {
  padding: 0;
}

/* ========== Speaker Row Layout ========== */
.srow {
  display: table;
  width: 100%;
  padding: 5px;
}

.scol {
  float: none;
  display: table-cell;
  text-align: center;
  width: 25%;
  color: var(--text-primary);
}

.btn-keynote,
.btn-keynote:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  width: 80%;
  border-radius: var(--radius-sm);
}

.scol > .lead {
  margin-bottom: 10px;
}

.scol > .img-speaker {
  opacity: 0.9;
  max-width: 100%;
  padding: 0 5px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.srow > a:hover {
  text-decoration: none;
  color: var(--accent);
  background: transparent;
}

.srow > .active > .img-speaker,
.srow > a:hover > .img-speaker {
  opacity: 1;
}

.srow > .active > .btn-keynote,
.srow > a:hover > .btn-keynote {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.srow > .active,
.srow > .active:hover,
.srow > .active:focus,
.srow > a:focus {
  text-decoration: none;
  color: var(--text-primary);
  background: transparent;
}

@media (min-width: 768px) {
  .scol h2 {
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 5px;
  }
  .scol .lead {
    font-size: 11px;
    margin-bottom: 5px;
  }
  .scol > a {
    font-size: 12px;
  }
  .tab-content > .active {
    padding-bottom: 10px;
  }
  .padbottom {
    padding-bottom: 0;
  }
  .padtop > .active {
    padding-top: 10px;
  }
}

@media (min-width: 992px) {
  .scol h2 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .scol .lead {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .scol > a {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .scol h2 {
    font-size: 20px;
  }
  .scol .lead {
    font-size: 16px;
  }
  .scol > a {
    font-size: 18px;
  }
}

/* ========== Keynote Detail Row ========== */
.krow {
  display: table;
  width: 100%;
}

.kcol {
  float: none;
  display: table-cell;
  text-align: center;
  color: var(--text-primary);
}

.kcol > .img-speaker {
  max-width: 100%;
}

.krow > .kcol-i {
  width: 30%;
}
.krow > .kcol-t {
  width: 70%;
}
.krow > .kcol {
  vertical-align: middle;
}

.kcol h2 {
  font-size: 16px;
  margin-top: 10px;
}
.kcol .lead {
  font-size: 14px;
  margin-bottom: 10px;
}
.kcol > p > a {
  font-size: 14px;
}
.kcol:first-child {
  padding: 0;
}
.kcol:nth-child(2) {
  padding-right: 0;
  padding-left: 5px;
}

/* ========== Program Panel ========== */
.phdr > .lead {
  margin: 10px 0;
}

.sts:hover,
.sts:focus {
  background: var(--accent);
  color: var(--primary-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.panel-group {
  background: transparent;
  margin-bottom: 0;
}

.panel-group .panel-program {
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
}

.panel-program a {
  color: var(--text-heading);
  text-decoration: none;
}

.panel-program .panel-title {
  padding: 12px;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
  font-weight: 600;
  text-align: center;
  font-size: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.panel-group .panel-program + .panel-program {
  margin-top: 0;
}

/* ========== Venue Map ========== */
#map {
  width: 100%;
  height: 450px;
  background-image: url("../img/map.jpg");
  background-size: cover;
  background-position: 50% 50%;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

/* ========== Sponsors ========== */
.img-sponsor {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.img-sponsor:hover {
  transform: scale(1.02);
}

.box2 {
  margin-top: 0;
  width: 100%;
  max-width: 1180px;
}

.box2 ul {
  list-style-type: none;
  overflow: hidden;
  margin-left: -20px;
  margin-right: -10px;
  padding: 0;
}

.box2 ul li {
  list-style: none;
  width: 20%;
  height: 130px;
  float: left;
  padding-left: 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.box2 ul li .com {
  list-style: none;
  height: inherit;
  background: var(--accent);
  border-radius: var(--radius-sm);
}

/* ========== Tail / Footer ========== */
@media (min-width: 768px) {
  .logo {
    padding-left: 5px;
    padding-right: 5px;
  }
  .masttail {
    margin: 0 -5px;
  }
}

@media (max-width: 991px) {
  .logo {
    padding-left: 2.5px;
    padding-right: 2.5px;
  }
  .masttail {
    margin: 0 -2.5px;
  }
}

/* ========== Downloads Section ========== */
#download h1 {
  color: var(--text-heading);
}

#download h3 {
  margin-top: 25px;
  color: var(--text-heading);
  font-size: 18px;
}

#download a {
  color: var(--accent) !important;
  font-size: 14pt !important;
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

#download a:hover {
  color: var(--text-heading) !important;
  border-bottom-color: var(--accent);
  background: transparent !important;
}

/* ========== Lists ========== */
.mastbody ul,
.mastbody ol {
  color: var(--text-primary);
}

.mastbody li {
  margin-bottom: 6px;
}

/* ========== Committee Section ========== */
.img-committee {
  width: 120px;
  height: 160px;
  border-radius: var(--radius-md);
  border: 2px solid var(--glass-border);
  transition: var(--transition);
  object-fit: cover;
}

.img-committee:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.img-committeer {
  border-radius: var(--radius-md);
}

/* ========== Misc ========== */
.justify {
  text-align: justify;
}

.justify i {
  width: 250px;
  line-height: 300px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
}

.justify:after {
  content: "";
  display: inline-block;
  position: relative;
  width: 100%;
}

.img-sponsor1 {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: var(--radius-sm);
}

.table-journal > tbody > tr > td:first-child {
  text-align: center;
  border-right-width: 0;
}

.table-journal > tbody > tr > td:nth-child(2) {
  border-left-width: 0;
  vertical-align: middle;
}

.img-journal {
  background-color: transparent;
  width: 120px;
  border-radius: var(--radius-sm);
}

/* ========== Selection / Scrollbar ========== */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ========== Smooth Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane.active {
  animation: fadeInUp 0.4s ease-out;
}

/* ========== Footer Logos ========== */
.site-container > div:last-of-type img {
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

/* ============================================================
   MOBILE RESPONSIVE STYLES
   Ensures the sci-tech desktop theme adapts gracefully to
   phones and tablets while keeping the desktop layout intact.
   Breakpoints: 767px (phone), 374px (small phone),
                768-1024px (tablet), landscape.
   ============================================================ */

/* --- Mobile Bottom Navigation (hidden on desktop) --- */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  /* ===== Bottom Navigation Bar ===== */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(6, 11, 30, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  }

  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0));
    color: var(--text-secondary);
    text-decoration: none !important;
    font-size: 10px;
    transition: color 0.2s ease;
    min-height: 54px;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.1);
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:focus {
    background: transparent !important;
    text-decoration: none !important;
    color: var(--text-secondary);
    box-shadow: none !important;
  }

  .mobile-bottom-nav a.active {
    color: var(--accent);
  }

  .mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 0 0 2px 2px;
  }

  .mobile-bottom-nav .nav-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    display: block;
  }

  .mobile-bottom-nav span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.2;
  }

  /* ===== Prevent Horizontal Overflow ===== */
  html,
  body {
    overflow-x: hidden;
  }

  .site-wrapper,
  .site-wrapper-inner,
  .site-container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* ===== General Layout ===== */
  .site-container {
    padding: 0 10px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
  }

  .site-section {
    padding: 4px 0;
  }

  /* ===== Hero / Jumbotron ===== */
  .jumbotron {
    padding: 22px 16px !important;
    border-radius: var(--radius-sm);
  }

  .jumbotron h1 {
    font-size: 16pt !important;
    letter-spacing: 0;
    line-height: 1.35;
  }

  .jumbotron p {
    font-size: 11pt !important;
    line-height: 155% !important;
    letter-spacing: 0 !important;
  }

  .jumbotron p > span[style*="19pt"] {
    font-size: 13pt !important;
  }

  .jumbotron table {
    font-size: 11pt !important;
    line-height: 170% !important;
    width: 100%;
  }

  .jumbotron table tr {
    display: block;
    margin-bottom: 2px;
  }

  .jumbotron table th,
  .jumbotron table td {
    display: block;
    text-align: center !important;
    padding: 1px 0 !important;
  }

  /* ===== Navigation — Hamburger Menu ===== */
  .mastnav-toggle > li > a,
  .mastnav-toggle > li > a:hover,
  .mastnav-toggle > li > a:focus {
    background: rgba(6, 11, 30, 0.97) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px !important;
    font-size: 15px !important;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-heading) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mastnav-toggle > li > a::after {
    content: "▾";
    font-size: 12px;
    opacity: 0.4;
    transition: transform 0.3s ease;
  }

  .mastnav-nav {
    background: rgba(6, 11, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--glass-border);
    border-top: none;
  }

  .mastnav-nav > li {
    display: block !important;
    width: 100% !important;
  }

  .mastnav-nav > li > a {
    padding: 14px 24px !important;
    text-align: left !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.05) !important;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    background: transparent !important;
    transition: all 0.2s ease;
  }

  .mastnav-nav > li > a:hover,
  .mastnav-nav > li > a:focus {
    background: rgba(0, 212, 255, 0.06) !important;
    padding-left: 28px !important;
  }

  .mastnav-nav > .active > a,
  .mastnav-nav > .active > a:hover,
  .mastnav-nav > .active > a:focus {
    background: rgba(0, 212, 255, 0.08) !important;
    border-left: 3px solid var(--accent) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.05) !important;
    color: var(--accent) !important;
  }

  .mastnav-nav > li:last-child > a {
    border-bottom: none !important;
  }

  /* ===== Main Content Body ===== */
  .mastbody {
    width: 100% !important;
    padding: 20px 16px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
  }

  .mastbody h1 {
    font-size: 18px !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }

  .mastbody h1:first-child {
    margin-top: 8px !important;
  }

  .mastbody h1::after {
    width: 50px;
  }

  .mastbody h3 {
    font-size: 16px !important;
  }

  /* ===== Global Text Size Overrides ===== */
  .lead {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }

  p[style*="font-size:14pt"],
  span[style*="font-size:14pt"] {
    font-size: 12pt !important;
  }

  p[style*="font-size:16pt"],
  span[style*="font-size:16pt"] {
    font-size: 13pt !important;
  }

  p[style*="text-indent: 2em"] {
    text-indent: 1.5em !important;
  }

  .label-danger {
    font-size: 11px !important;
    padding: 4px 10px !important;
    line-height: 1.6 !important;
    word-break: break-all;
  }

  /* ===== HOME Tab ===== */
  #home h1[style*="center"] {
    font-size: 18px !important;
  }

  #home .lead[style*="line-height:220%"] {
    line-height: 190% !important;
  }

  /* ===== KEYNOTES — Speaker Cards ===== */
  .keynote-row {
    padding: 16px 14px !important;
    margin-bottom: 12px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    border-radius: var(--radius-sm) !important;
  }

  .keynote-row > .vcenter,
  .keynote-row > [class*="col-"] {
    width: 100% !important;
    min-height: auto !important;
    float: none !important;
    display: block !important;
    text-align: center !important;
  }

  .keynote-row .text-center {
    width: 100% !important;
  }

  .keynote-row .img-speaker {
    width: 35% !important;
    max-width: 110px;
    margin: 0 auto 10px !important;
    display: block !important;
    border-radius: var(--radius-sm) !important;
  }

  .keynote-row .lead {
    font-size: 14px !important;
    text-align: center !important;
    margin-bottom: 4px !important;
  }

  .keynote-row p[style*="18pt"] {
    font-size: 15px !important;
  }

  .keynote-row .btn-custom {
    margin-top: 8px;
    padding: 8px 24px;
    min-height: 44px;
    line-height: 28px;
    font-size: 14px;
  }

  #keynotes h1[style*="center"] {
    font-size: 18px !important;
  }

  #keynotes h1[style*="14pt"] {
    font-size: 12px !important;
  }

  .bio-panel {
    margin-top: -12px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  }

  .bio-panel .lead {
    font-size: 12px !important;
    padding: 14px 12px !important;
    line-height: 1.85 !important;
  }

  /* ===== PROGRAM — Schedule Table ===== */
  #program {
    overflow-x: hidden;
    text-align: center;
  }

  #program h1 {
    font-size: 16px !important;
  }

  #program table[style] {
    width: 100% !important;
    margin: 0 !important;
  }

  #program .table-sche {
    display: block !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm) !important;
    margin: 0 -4px;
    padding: 0 4px;
  }

  #program .table-sche > tbody {
    display: table;
    min-width: 580px;
    width: 100%;
  }

  #program .table-sche > tbody > tr > th,
  #program .table-sche > tbody > tr > td {
    font-size: 11px !important;
    padding: 6px 4px !important;
  }

  /* Scroll hint */
  #program .table-sche + .nonexistent,
  #program::after {
    content: "← 左右滑动查看完整日程 →";
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 10px 0 0;
    opacity: 0.6;
  }

  /* ===== REGISTRATION — Tables ===== */
  #registration table[style] {
    width: 100% !important;
    margin: 0 auto !important;
  }

  #registration .table-bordered td,
  #registration .table-program td {
    padding: 10px 8px;
    font-size: 13px !important;
  }

  #registration .table-bordered th,
  #registration .table-program th {
    font-size: 13px !important;
  }

  #registration h3 {
    font-size: 17px !important;
  }

  #registration span[style*="font-size:14pt"] {
    font-size: 12pt !important;
  }

  #registration span[style*="font-size:16pt"] {
    font-size: 13pt !important;
  }

  #registration a {
    display: inline-block;
    padding: 10px 0;
    min-height: 44px;
  }

  /* ===== COMMITTEES — Flexible Grid ===== */
  #committees h1 {
    font-size: 18px !important;
  }

  #committees div[style*="center"] > table {
    width: 100% !important;
  }

  #committees div[style*="center"] > table > tbody > tr,
  #committees table[style] > tbody > tr {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  #committees div[style*="center"] > table > tbody > tr > th,
  #committees table[style] > tbody > tr > th {
    display: block !important;
    width: auto !important;
    padding: 0 4px !important;
  }

  #committees div[style*="center"] > table > tbody > tr > th > td,
  #committees table[style] > tbody > tr > th > td {
    padding: 6px !important;
  }

  .img-committee {
    width: 72px !important;
    height: 96px !important;
    border-radius: var(--radius-sm) !important;
  }

  #committees .lead {
    font-size: 11px !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
  }

  /* ===== VENUE — Responsive Content ===== */
  #venue h1 {
    font-size: 18px !important;
  }

  #venue .lead {
    font-size: 13px !important;
  }

  #venue img[style*="height:300px"] {
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
    object-fit: cover;
  }

  #venue .row.gallery > div[style*="center"] {
    width: 100% !important;
  }

  /* ===== DOWNLOAD — Touch-Friendly Links ===== */
  #download h1 {
    font-size: 18px !important;
  }

  #download h3 {
    font-size: 15px !important;
    margin-top: 20px !important;
  }

  #download a {
    display: inline-block;
    padding: 10px 0 !important;
    min-height: 44px;
    line-height: 24px;
  }

  /* ===== Footer Logos ===== */
  div[style*="text-align:center"][style*="margin-top"] table {
    width: 100% !important;
  }

  div[style*="text-align:center"][style*="margin-top"] table tr {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  div[style*="text-align:center"][style*="margin-top"] table th {
    display: block !important;
  }

  div[style*="text-align:center"][style*="margin-top"] img[style] {
    width: 56px !important;
    height: 56px !important;
  }

  /* ===== Touch & UX Enhancements ===== */
  a,
  button,
  .btn {
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.12);
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* ===== Extra Small Phones (≤ 374px) ===== */
@media (max-width: 374px) {
  .jumbotron {
    padding: 18px 12px !important;
  }

  .jumbotron h1 {
    font-size: 14pt !important;
  }

  .jumbotron p > span[style*="19pt"] {
    font-size: 11pt !important;
  }

  .jumbotron table {
    font-size: 10pt !important;
  }

  .mastbody {
    padding: 16px 12px !important;
  }

  .keynote-row .img-speaker {
    width: 38% !important;
    max-width: 96px;
  }

  .mobile-bottom-nav span {
    font-size: 9px;
  }

  .mobile-bottom-nav .nav-icon {
    width: 20px;
    height: 20px;
  }
}

/* ===== Tablet Adjustments (768px – 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .mastbody {
    width: 92%;
  }

  .jumbotron h1 {
    font-size: 28pt;
  }

  .keynote-row .img-speaker {
    width: 80%;
  }
}

/* ===== Landscape Phone ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .jumbotron {
    padding: 16px !important;
  }

  .jumbotron h1 {
    font-size: 14pt !important;
  }

  .mobile-bottom-nav {
    padding-bottom: 0;
  }

  .mobile-bottom-nav a {
    min-height: 44px;
    padding: 4px;
  }

  .site-container {
    padding-bottom: 50px;
  }
}

/* ========== 可折叠章节样式 ========== */
.bio-panel {
  margin: 15px 0 30px 0;
  padding: 0;
  background: transparent;
}

.section {
  margin-bottom: 15px;
  transition: var(--transition);
}

.section-header {
  transition: var(--transition);
  border-radius: 8px 8px 0 0;
}

.section-header:hover {
  background: rgba(0, 212, 255, 0.05) !important;
  box-shadow: var(--shadow-glow);
}

.section-header h4 {
  font-size: 16pt !important;
  font-weight: 600;
  transition: var(--transition);
}

.section-header:hover h4 {
  color: var(--accent) !important;
}

.section-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  transition: var(--transition);
  animation: fadeIn 0.3s ease-out;
}

.section-content p {
  color: var(--text-secondary);
  font-size: 14pt;
  line-height: 1.7;
  text-align: justify;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端适配 */
@media (max-width: 767px) {
  .section-header h4 {
    font-size: 14pt !important;
    padding: 8px 12px !important;
  }
  
  .section-content {
    padding: 12px !important;
  }
  
  .section-content p {
    font-size: 13pt !important;
  }
  
  .bio-panel {
    margin: 10px 0 20px 0;
  }
}
