/*BANNER*/
.banner-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top:34px;
}
.banner-img.logged-in {
  margin-top: 0;
}
/*重要時程及最新消息*/
.news-bg{
	background-image: url('../images/news_bg.png');
	background-color: #efefef;	
	margin: 0;
	padding: 40px;
    width: 100vw;
	margin-left: calc(-50vw + 50%);
	background-repeat: no-repeat;
	background-size: cover;
}
table {
    background-color: rgba(255, 255, 255, 0.8); 
    border-radius: 20px; 
    overflow: hidden; 
    border-collapse: separate; 
    width: 100%;
}
table, th, td {
    border: 1px solid #ccc;
}
th {
    background-color: #007bff; 
    color: white;
    padding: 10px;
    text-align: center;
}
td {
    padding: 10px;
    text-align: left;
}
h1.simple-title {
    all: unset;
    display: block;
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    margin: 20px auto; 
    width: fit-content;
    text-align: center;
}

/*聯絡資訊*/

.gray-box {
	position: relative;
	background-color: #f0f0f0;
	padding: 40px 20px 20px;
	border-radius: 8px;
	margin: 0px auto;
	/* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
    width: 100vw;
	margin-left: calc(-50vw + 50%);
}

.wrapper {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 280px; 
	height: 140px;
	overflow: hidden;
	z-index: 1;
}

.outer-circle {
	width: 280px;     
	height: 280px;
	background-color: white;
	border-radius: 50%;
	position: relative;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.inner-circle {
	width: 260px;    
	height: 260px;
	background-color: #285E89;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 20px;   
	position: relative;
}

.circle-text {
	transform: translateY(20px);
	margin-top: 50px;
    font-size: 36px;    
}
.content {
	text-align: center;
	padding: 150px 0px 50px 100px;
	font-family: sans-serif;
	font-size: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-around;
}
.circle-1 {
	background-color: #285E89;
	width:50px;
	height:50px;
	border-radius: 50px;
}
.icon-style {
    color: #fff;
    font-size: 28px;
}
.contact-row {
    font-size: 20px;
    font-family: sans-serif;
}

.contact-row div {
    margin-bottom: 6px;
    display:flex;
    justify-content: flex-start;
}

.name {
    display: inline-block;
    text-align: start;
    width: 3em;
}

.ext {
    display: inline-block;
    width: 8em; 
}

.fb{
    background-image: url('../images/fb-icon.png');
    height:50px;
    width:50px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.fb-qrcode {
    background-image: url('../images/fbQRCode.png');
    background-color: #fff;
    width: 100px;
    height: 100px;
    padding: 5px;
    box-sizing: content-box;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 20px;
    background-origin: content-box;
}
.line{
    background-image: url('../images/line-icon.png');
    height:50px;
    width:50px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.line-qrcode{
    background-image: url('../images/lineQRCode.png');
    background-color: #fff;
    width: 100px;
    height: 100px;
    padding: 5px;
    box-sizing: content-box;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 20px;
    background-origin: content-box;
}

@media (max-width: 768px) {
    .wrapper {
      width: 200px;
      height: 100px;
    }
  
    .outer-circle {
      width: 200px;
      height: 200px;
    }
  
    .inner-circle {
      width: 180px;
      height: 180px;
      font-size: 16px;
    }
  
    .circle-text {
      font-size: 24px;
      margin-top: 30px;
    }
  
    .content {
      padding: 120px 20px 30px 20px;
      flex-direction: column;
      align-items: center;
      font-size: 20px;
    }
  
    .circle-1 {
      width: 40px;
      height: 40px;
    }
  
    .icon-style {
      font-size: 22px;
    }
  
    .contact-row {
      font-size: 16px;
    }
  
    .name {
      width: 3.5em;
    }
  
    .ext {
      width: 7em;
    }
  
    .fb, .line {
      width: 40px;
      height: 40px;
    }
  
    .fb-qrcode, .line-qrcode {
      width: 80px;
      height: 80px;
      margin-right: 10px;
    }
    .contact-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
        gap: 6px;
      }
    
      .contact-row div {
        flex-direction: column;
      }
    
      .name, .ext {
        width: auto;
        display: block;
        text-align: left;
      }
    
}
  
/*指導承辦單位*/
.unit-box-section {
  width: 100vw;
	margin-left: calc(-50vw + 50%);
	position: relative;
	background: linear-gradient(60deg, #e6f0fa 55%, #ffffff 45%);
	overflow: hidden;
}

.unit-left,
.unit-right {
	background: transparent; 
}

img {
	max-width: 100%;
	height: auto;
}

a {
	display: inline-block;
	color: #004c99;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}
@media (max-width: 768px) {
    .unit-left,
    .unit-right {
      clip-path: none !important;
    }
  }
  
  /*夥伴學校*/
.title-partners {
  width: 100vw; 
	margin-left: calc(-50vw + 50%);
  background-color: #BFD4E8;
}
.bg-partners {
  width: 100vw; 
	margin-left: calc(-50vw + 50%);
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url('../images/schools_bg.png');
  padding-bottom: 40px;
}
.partner-logo {
    aspect-ratio: 1 / 1; 
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.partner-logo img {
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  flex-grow: 1;
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.partner-logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}
@media (min-width: 992px) {
  .partner-logo-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 375px) {
  .news-bg{
      background-image: none;
      background-color: #a7d2e4;	
  }
}