/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* Base Body Styles */
body {
  max-width: 1000px; /* Set maximum width for the page */
  margin: 0 auto;    /* Center the content */
  padding: 0 20px;   /* Add spacing to avoid content touching edges */
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;  /* Improve readability */
  background-color: #ffffff; /* White background */
  color: #2d3748;       /* Text color */
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Wrapper for Centralized Content */
.wrapper {
  max-width: 1000px; /* Set new max width */
  margin: 0 auto;    /* Center-align content */
  padding: 0 20px;   /* Optional: Add side spacing */
  box-sizing: border-box; /* Include padding in width calculations */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans Pro', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #000000;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h2 {
  padding-top: 20px; /* Space above the heading */
  margin-bottom: 10px; /* Space between the heading and divider */
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 5px; /* Adjust padding for a natural look */
  font-size: 2em;
  color: #000000;
  letter-spacing: -0.02em;
}

h3 {
  padding-top: 15px; /* Less space above than h2 */
  margin-bottom: 8px; /* Less space below than h2 */
  font-size: 1.5em;
  color: #000000;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 3px;
  letter-spacing: -0.01em;
}

/* Paragraphs and Text */
p {
  margin-bottom: 1.5em;
  font-size: 1.05em;
  line-height: 1.8;
  color: #4a5568;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* List Items */
li {
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 0.5em;
  padding-left: 1em;
}

/* Bullet Points */
ul {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

/* Nested Lists */
ul ul {
  padding-left: 2em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Indented Content */
.indented {
  padding-left: 2em;
  margin-bottom: 1em;
}

/* Links */
a {
  color: #0366d6;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: bold;
}

a:hover {
  color: #0366d6;
  text-decoration: underline;
}

/* Images */
td img {
  max-width: 100% !important; /* 强制优先使用此样式 */
  width: 200px !important; /* 固定宽度为 200px */
  height: 200px !important; /* 固定高度为 200px */
  object-fit: cover; /* 保持图片比例，并裁剪多余部分 */
  display: block;    /* 移除图片底部空白 */
  margin: 0 auto;    /* 图片居中 */
  max-width: 100%;   /* 确保图片宽度不超过单元格宽度 */
  height: auto;      /* 当宽度缩小时，保持比例缩放 */
}

/* Table Styling */
table {
  width: 100%; /* Full width for responsiveness */
  border-collapse: collapse; /* Remove extra spacing between cells */
  text-align: center; /* Center-align text inside table */
  table-layout: fixed;
}

td {
  padding: 10px; /* Add spacing around each cell */
  vertical-align: top; /* Align content to the top of the cell */
}

/* Banner Styles */
.banner-container {
  position: relative;
  width: 100%;
  height: 300px; /* 默认高度 */
  background-image: url('bgs.png');
  background-size: cover; /* 背景图片全覆盖 */
  background-position: center; /* 居中显示 */
  display: flex; /* 使用 Flexbox */
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  overflow: hidden; /* 隐藏超出部分 */
}

/* Background Overlay (Semi-transparent layer) */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* 半透明背景 */
  z-index: 1; /* 置于文字下方 */
}

/* Text on the Banner */
.banner-text {
  position: relative;
  z-index: 2; /* 置于半透明背景上方 */
  color: white; /* 白色字体 */
  font-size: 22px; /* 默认字体大小 */
  font-weight: bold; /* 粗体 */
  text-align: center; /* 居中对齐 */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* 添加阴影 */
  margin: 0 10px; /* 防止文字过于靠边 */
  line-height: 1.4; /* 行间距 */
  white-space: pre-line; /* 按换行符断行 */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  body {
      max-width: 100%; /* Full-width on smaller screens */
      padding: 0 10px; /* Reduce side padding for smaller screens */
  }

  h2 {
      font-size: 1.5em; /* Adjust heading size for smaller screens */
      padding-top: 15px;
      padding-bottom: 3px;
  }


  .wrapper {
      padding: 0 10px; /* Ensure wrapper adapts to smaller screens */
  }

  table {
      display: block; /* Make the table scrollable on smaller screens */
      overflow-x: auto;
  }

  td {
      display: block; /* Stack cells vertically */
      width: 100%; /* Full width for each cell */
      text-align: center; /* Center-align content */
  }

  td img {
    width: 100%;     /* 宽度占满容器 */
    max-width: 200px; /* 但不超过200px */
    height: auto;    /* 高度自动，保持比例 */
    object-fit: contain; /* 确保图片完整显示 */
  }
}

/* Navigation (if applicable) */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
  background-color: #fff; /* Optional: Set background */
  border: 1px solid #ddd; /* Optional: Add border */
  border-radius: 5px;
}

nav ul li {
  padding: 10px 15px;
}

@media (max-width: 768px) {
  nav ul {
      flex-direction: column; /* Stack menu items on smaller screens */
      align-items: flex-start;
  }

  nav ul li {
      padding: 10px;
      border-bottom: 1px solid #ddd; /* Separate items with borders */
  }

  nav ul li:last-child {
      border-bottom: none; /* Remove border from the last item */
  }
}

/* ========================================
   UNIFIED HEADER NAVIGATION STYLES
   ========================================
   These styles control the site header appearance across all pages.
   Modify these values to change header styling site-wide.
   ======================================== */

/* Header container */
.site-header {
  font-size: 0.9em;
}

/* Site title (Home link) - Higher specificity to override theme */
body .site-header .site-title,
.site-header .site-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #000000 !important;
  text-decoration: none;
}

/* Navigation links (Event, etc.) - Higher specificity to override theme */
body .site-header .site-nav .page-link,
.site-header .site-nav .page-link {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #000000 !important;
  line-height: 36px !important;
  text-decoration: none;
}

/* Hover states */
.site-title:hover,
.site-nav .page-link:hover {
  color: #0366d6 !important;
  text-decoration: underline;
}
