/* only small desktops */
@media (min-width: 992px) and (max-width: 1199px) {
  #hero-area .contents .head-title {
    font-size: 40px;
  }
  .services-item .services-content h3 a {
    font-size: 14px;
  }
  .title-hl {
    font-size: 30px;
  }
  .why .content h3 {
    font-size: 30px;
  }
  .team-item .contetn {
    padding: 15px 20px;
  }
}

/* tablets */
@media (max-width: 991px) {
  .section-title {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .services-item .services-content h3 a {
    font-size: 14px;
  }
  .services-item {
    margin-bottom: 20px;
  }
  #pricing-table .title h3 {
    font-size: 14px;
  }
}

/* only small tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .services-item .services-content h3 a {
    font-size: 16px;
  }
  .bg-inverse {
    background: #fff !important;
    box-shadow: 0px 3px 6px 3px rgba(0, 0, 0, 0.06);
  }
  .navbar-expand-md .navbar-nav .nav-link {
    margin-bottom: 0;
    margin-top: 0;
  }
  #about .sec-title h3 {
    font-size: 30px;
    line-height: 42px;
  }
  .title-hl {
    font-size: 30px;
  }
  .text-wrapper {
    padding: 60px 30px;
  }
  .why .content h3 {
    font-size: 30px;
  }
  #pricing-table .title h3 {
    font-size: 14px;
  }
  .skill-area img {
    margin-bottom: 30px;
  }
  #blog .blog-item-wrapper {
    margin-bottom: 30px;
  }
  .experience h4 {
    font-size: 18px;
  }
  .testimonial-item {
    padding: 10px;
  }
  .testimonial-item .content h2 {
    font-size: 15px;
  }
  .slider-center img {
    padding: 40px 60px;
  }
  .subscribes h4 {
    font-size: 30px;
  }
  .footer-area .footer-titel {
    margin-top: 30px;
  }
  .contact-right-area {
    margin-top: 0px;
    margin-left: 0px;
  }
}

/* mobile or only mobile */
@media (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }
  .section-title {
    font-size: 22px;
    margin-bottom: 30px;
  }
  .navbar-expand-md .navbar-brand,
  .navbar-expand-md .navbar-toggler {
    margin: 0px 15px;
  }
  .bg-inverse {
    background: #fff !important;
    box-shadow: 0px 3px 6px 3px rgba(0, 0, 0, 0.06);
  }
  .navbar-expand-md .navbar-nav .nav-link {
    margin-bottom: 0;
    margin-top: 0;
  }
  .navbar-brand img {
    margin: 5px 0;
  }
  .top-nav-collapse .navbar-brand img {
    margin-top: 10px;
  }
  .intro-img {
    margin-top: 20px;
  }
  #hero-area .img-thumb {
    display: none;
  }
  #hero-area .contents .head-title {
    font-size: 22px;
    line-height: 36px;
    margin-bottom: 15px;
  }
  #hero-area .contents p {
    font-size: 14px;
  }
  #hero-area {
    padding: 120px 0 80px;
  }
  #hero-area .contents .btn {
    margin: 5px 10px 10px 0px;
  }
  .text-wrapper {
    padding: 60px 15px;
  }
  #about .sec-title h3 {
    font-size: 22px;
    line-height: 36px;
  }
  .about-area img {
    margin-top: 30px;
  }
  .feature-thumb {
    padding: 10px;
  }
  .testimonial-item {
    padding: 0;
  }
  .client-item-wrapper img {
    width: 50%;
  }
  #cta h4 {
    font-size: 22px;
  }
  #cta .text-right {
    float: left !important;
  }
  #cta .btn {
    float: left;
  }
  .team-item .team-img {
    width: 100%;
    float: none;
  }
  .team-item .contetn {
    padding: 15px 30px;
  }
  .footer-right-contact .single-contact {
    margin: 10px 7px;
    padding: 3px 45px;
  }
  .footer-area .footer-titel {
    margin-top: 30px;
  }
  .contact-right-area {
    margin: 20px 0;
  }
  .contact-form-area h2 {
    font-size: 14px;
  }
  .copyright .float-right {
    float: left !important;
  }
  .map {
    margin-top: 20px;
  }
  #cta {
    padding: 20px 0;
  }
  .cta-text {
    margin-bottom: 30px;
  }
}


/* ===== 活動辦法區塊：最終整合 ===== */
section#database{
  position: relative;
  /* 背景色：淺漸層藍；若想純色，改成 background-color:#f2f7fd !important; */
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%) !important;
  overflow: hidden;
}

/* 內容浮上層（若有 ::before/::after 裝飾時避免被遮） */
section#database .about-area,
section#database .container,
section#database .row{
  position: relative;
  z-index: 1;
}

/* 大標題 */
section#database .section-title{
  font-size: 32px !important;
  color: #6090DB !important;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

/* === 雙欄並排 + 中間 6px 間距（桌機） === */
section#database .row.align-items-start{
  display: flex !important;      /* 保證為 flex 佈局 */
  flex-wrap: nowrap !important;  /* 桌機不換行 */
  justify-content: space-between;
  gap: 6px;                      /* 中間間距 6px */
}

/* 兩欄各占一半寬（扣掉 gap 一半，避免掉行） */
section#database .row.align-items-start > .info,
section#database .row.align-items-start > .wow.fadeInRight{
  flex: 0 0 calc(50% - 3px);
  max-width: calc(50% - 3px);
}

/* 卡片白底（左右一致） */
section#database .row.align-items-start > .info,
section#database .row.align-items-start > .wow.fadeInRight{
  background: #fff !important;
  border-radius: 8px !important;
  padding: 20px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}

/* 表格卡片化 + 表頭純色（不漸層） */
section#database .table{
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.05) !important;
}
section#database thead.thead-primary th{
  background: #6090DB !important; /* 純色表頭 */
  color: #fff !important;
  text-align: center !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border: none !important;
}

/* 表格變扁（縮內距/行高/字級） */
section#database .table td,
section#database .table th{
  padding: 6px 10px !important;
  line-height: 1.32 !important;
  font-size: 14px !important;
  border-color: #c9c9c9 !important;
}
section#database .table tbody tr{ transition: background .25s ease-in-out; }
section#database .table tbody tr:hover{ background: rgba(96,144,219,.05); }

/* 備註小字 */
section#database font[color="#707070"]{
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #777 !important;
}

/* 連結統一藍色（覆蓋 Bootstrap 預設） */
section#database a{
  color: #6090DB !important;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: .2s;
}
section#database a:hover{ border-bottom: 1px solid #6090DB; }

/* === RWD：寬度 < 992px 時允許換行，改上下堆疊 === */
@media (max-width: 991.98px){
  section#database .section-title{ font-size: 26px !important; }

  section#database .row.align-items-start{
    flex-wrap: wrap !important;  /* 手機/平板允許換行 */
    gap: 10px;                   /* 直向間距更舒服 */
  }
  section#database .row.align-items-start > .info,
  section#database .row.align-items-start > .wow.fadeInRight{
    flex: 0 0 100%;
    max-width: 100%;
  }

  section#database .table td,
  section#database .table th{
    padding: 5px 8px !important;
    font-size: 13.5px !important;
  }
}

/* 更小裝置再收一點 */
@media (max-width: 575.98px){
  section#database .section-title{ font-size: 22px !important; }
  section#database .table td,
  section#database .table th{
    padding: 4px 6px !important;
    font-size: 13px !important;
  }
}




/* ===== 競賽文件繳交規定 (#submission) 微調 ===== */

/* 主標題：顏色 / 字級 */
section#submission .section-title{
  color: #6090DB !important;    /* 與站上主色一致 */
  font-size: 30px !important;   /* 可改 32px 看喜好 */
  letter-spacing: .5px;
  margin-bottom: 12px;
}

/* 小標（例如「第一階段／第二階段」） */
section#submission h5{
  font-size: 18px;
  font-weight: 700;
  color: #cf9b51;               /* 金色呼應整站配色；想要藍色就改 #6090DB */
  margin: 14px 0 8px;
}

/* 內文段落：行距與間距 */
section#submission .content p{
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #333;
}

/* 將項目符號改為「數字」樣式（不改 HTML） */
section#submission .content ul{
  list-style: decimal;          /* 由圓點改數字 */
  margin: 6px 0 12px 1.25rem;   /* 左縮排與上下間距 */
  padding-left: .5rem;          /* 讓數字與文字更貼齊 */
}
section#submission .content ul li{
  margin-bottom: 6px;           /* 條目間距更緊湊 */
  line-height: 1.7;             /* 閱讀舒適度 */
}

/* 如果有第二層清單，改用小寫字母標示（可選） */
section#submission .content ul ul{
  list-style: lower-alpha;
  margin-top: 4px;
}
section#submission .content ul ul li{
  margin-bottom: 4px;
}

/* 圖片：在窄螢幕留點間距（避免貼齊） */
@media (max-width: 991.98px){
  section#submission .col-lg-6:last-child{
    margin-top: 12px;
  }
}

/* === Hero 區塊：主/承/協辦（org-card）強化 === */
#organizers.org-card{
  background: rgba(255,255,255,.92);
  border: 1px dotted #6090DB;
  border-radius: 10px;
  padding: 16px 18px;
  max-width: 880px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* 每一列：兩欄佈局（左：標籤，右：內容），欄距與行距更緊湊 */
#organizers .org-row{
  display: grid;
  grid-template-columns: 110px 1fr;   /* 左欄固定寬，右欄自動伸縮 */
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
  padding: 6px 0;                      /* 比原本更薄的上下間距 */
  border-bottom: 1px dashed rgba(96,144,219,.25);
}
#organizers .org-row:last-child{ border-bottom: 0; }

/* 左欄標籤：強化色彩與可讀性 */
#organizers .org-label{
  display: block;
  min-width: 110px;                    /* 與 grid 對齊 */
  font-weight: 700;
  color: #6090DB;
  line-height: 1.5;
}

/* 右欄內容：允許換行、防止溢出 */
#organizers .org-value{
  color: #222;
  line-height: 1.6;
  word-break: break-word;              /* 長字或英數自動換行 */
  hyphens: auto;
}

/* 手機：上下堆疊顯示，標籤在上、內容在下，行距更舒適 */
@media (max-width: 576px){
  #organizers .org-row{
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 8px 0;
  }
  #organizers .org-label{
    min-width: 0;
    margin-bottom: 2px;
  }
}

/* === A) 全部列更緊密：縮標籤欄寬 + 縮欄間距（桌機寬度） === */
@media (min-width: 992px){
  #organizers .org-row{
    grid-template-columns: 60px 1fr; /* 原本 110px -> 92px，回收 18px 給右側 */
    column-gap: 6px;                 /* 原本 12px -> 6px，縮小標籤與內容距離 */
    row-gap: 4px;                    /* 稍微縮小行距 */
    padding: 4px 0;                  /* 每列更扁 */
  }
  #organizers .org-label{
    min-width: 60px;                 /* 與上方 grid 對齊 */
    letter-spacing: 0;               /* 移除字距擴張，讓中文字更緊 */
  }
  #organizers .org-value{
    line-height: 1.5;                /* 再緊一點 */
    word-break: keep-all;            /* 優先不在 CJK 中間斷行 */
  }
}

/* === B) 僅針對「協辦單位」那一列：極限緊縮，盡量單行顯示（桌機寬度） === */
/* 這列是第 3 列（主/承/協），不改 HTML 用 nth-child 鎖定 */
@media (min-width: 992px){
  #organizers .org-row:nth-child(3) .org-value{
    white-space: nowrap;             /* 盡量不換行 */
  }
}

/* 手機/小平板：維持易讀性，回到上下堆疊（不硬擠單行） */
@media (max-width: 991.98px){
  #organizers .org-row{
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 8px 0;
  }
  #organizers .org-row:nth-child(3) .org-value{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}


