:root{
  --ag-dark:#2B363F;
  --ag-orange:#F9481E;
  --ag-orange-hover:#D93A16;
  --ag-green:#A1B928;
  --ag-green-hover:#8FAA23;
  --ag-purple:#5A3793;
  --ag-blue:#3A56C1;
  --ag-bg:#F6F7FB;
  --ag-card:#EEEFF9;
  --ag-border:#E6E8EC;
  --ag-white:#FFFFFF;

  --font-zh:"Noto Sans TC","Source Han Sans TC","思源黑體 TC","Microsoft JhengHei",sans-serif;
  --font-en:"Open Sans",Arial,sans-serif;
}

body{
  margin:0;
  background:#fff;
  color:var(--ag-dark);
  font-family:var(--font-zh);
}

/* =========================
   TOP BAR
========================= */

.topbar{
  width:100%;
  padding:.25rem .75rem;
  background:var(--ag-dark);
}

.topbar a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  text-decoration:none;
}

.topbar img{
  width:auto;
  height:1.5rem;
  max-height:1.5rem;
  display:block;
  object-fit:contain;
}

.topbar a + a{
  margin-left:.4rem;
}


/* =========================
   NAVBAR
========================= */

.navbar{
  width:100%;
  min-height:88px;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  padding:0;
  background:#fff;
  border-bottom:1px solid var(--ag-border);
}

.navbar .container-fluid{
  width:100%;
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  padding:10px 18px;
}

.navbar-brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  margin:0 28px 0 0;
  padding:0;
}

.navbar-brand img{
  width:280px;
  max-width:280px;
  height:auto;
  max-height:68px;
  display:block;
  object-fit:contain;
}

.navbar-collapse{
  flex:1 1 auto;
  min-width:0;
}

.navbar-nav{
  width:100%;
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:3px;
  margin:0;
  padding:0;
}

.navbar-nav .nav-item{
  flex:0 0 auto;
  display:flex;
  align-items:center;
}

.navbar-nav .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.72rem .78rem;
  color:var(--ag-dark);
  background:transparent;
  border:0;
  border-radius:999px;
  font-family:var(--font-zh);
  font-size:.88rem;
  font-weight:700;
  line-height:1.4;
  white-space:nowrap;
  text-align:center;
  transition:
    color .25s ease,
    background-color .25s ease,
    transform .25s ease;
}

.navbar-nav .btn:hover,
.navbar-nav .btn:focus{
  color:#fff;
  background:var(--ag-blue);
  transform:translateY(-1px);
}


/* NEWS 最新消息 */

.navbar-nav .btn-life{
  color:#fff !important;
  background:var(--ag-blue) !important;
}

.navbar-nav .btn-life:hover,
.navbar-nav .btn-life:focus{
  color:#fff !important;
  background:var(--ag-blue-hover) !important;
}


/* =========================
   HAMBURGER
========================= */

.navbar-toggler{
  display:none;
  flex:0 0 auto;
  margin-left:auto;
  padding:.55rem;
  background:transparent;
  border:0;
}

.navbar-toggler:focus{
  box-shadow:none;
}

.navbar-toggler span{
  display:block;
  width:30px;
  height:3px;
  background:var(--ag-dark);
  transition:.25s ease;
}

.navbar-toggler span:not(:first-child){
  margin-top:5px;
}

/* PAGE TITLE */
.page-title{
  padding:86px 20px 54px;
  text-align:center;
  background:#fff;
}

.page-title h1{
  font-family:var(--font-en);
  font-style:italic;
  font-weight:800;
  font-size:3.5rem;
  letter-spacing:.08em;
  color:var(--ag-dark);
  margin:0;
}

.page-title h1 span{
  color:var(--ag-orange);
}

.page-title p{
  margin-top:20px;
  font-size:1.05rem;
  line-height:1.9;
  color:var(--ag-dark);
}

/* =========================
   NEWS SECTION
========================= */

.news-section{
  padding:80px 30px 100px;
  background:#fff;
}

.news-heading{
  margin-bottom:42px;
}

.news-heading h2{
  margin:0;

  color:var(--ag-dark);

  font-family:var(--font-en);
  font-size:2.6rem;
  font-style:italic;
  font-weight:800;
}

.news-heading h2 span{
  margin-left:14px;

  color:var(--ag-orange);

  font-family:var(--font-zh);
  font-size:1rem;
  font-style:normal;
  letter-spacing:.05em;
}

.news-hero{
  width:100%;
  height:560px;
  overflow:hidden;
}

.news-hero img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 40%;
}

/* =========================
   NEWS CARD
========================= */

.news-card{
  width:100%;

  display:grid;
  grid-template-columns:220px 1fr;
  align-items:stretch;

  margin-bottom:28px;

  overflow:hidden;

  background:#F6F6F6;

  color:var(--ag-dark);
  text-decoration:none;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background-color .25s ease;
}

.news-card:hover{
  color:var(--ag-dark);

  background:#fff;

  transform:translateY(-3px);

  box-shadow:
    0 14px 36px rgba(43,54,63,.10);
}


/* IMAGE */

.news-image{
  width:220px;
  min-height:220px;
  overflow:hidden;
}

.news-image img{
  width:100%;
  height:100%;
  min-height:220px;

  display:block;

  object-fit:cover;

  transition:transform .45s ease;
}

.news-card:hover .news-image img{
  transform:scale(1.04);
}


/* CONTENT */

.news-content{
  display:flex;
  flex-direction:column;
  justify-content:center;

  padding:30px 36px;
  text-align:left;  
}

.news-content time{
  display:block;

  margin-bottom:12px;

  color:#777;
  font-family:var(--font-en);
  font-size:.9rem;
  text-align:left;  
}

.news-content h3{
  margin:0;

  color:var(--ag-dark);

  font-size:1.2rem;
  font-weight:700;
  line-height:1.6;
  text-align:left;  
}

.news-content p{
  margin:12px 0 0;

  color:#697078;

  font-size:.95rem;
  line-height:1.8;
  text-align:left;  
}

.news-more{
  margin-top:18px;

  color:var(--ag-purple);

  font-family:var(--font-en);
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.08em;
}



/* FOOTER */
.footer{
  background:var(--ag-blue);
  color:#fff;
  padding:24px 40px;
  font-family:var(--font-en);
}

.footer-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}

.footer-logo{
  flex:0 0 auto;
}

.footer-logo img{
  width:220px !important;
  height:auto !important;
  max-width:none !important;
  max-height:none !important;
  display:block;
  object-fit:contain !important;
}

.footer-copy{
  flex:1;
  text-align:center;
  font-size:.95rem;
  line-height:1.5;
  white-space:nowrap;
  color:#fff;
}

.footer-social{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
}

.footer-social a{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.25s ease;
}

.footer-social img{
  width:26px !important;
  height:26px !important;
  max-width:26px !important;
  max-height:26px !important;
  object-fit:contain !important;
  display:block;
}

.footer-social a:hover{
  transform:translateY(-3px);
  opacity:.8;
}

/* =========================
   SMALL DESKTOP
========================= */

@media(max-width:1200px){

  .navbar .container-fluid{
    padding-right:12px;
    padding-left:12px;
  }

  .navbar-brand{
    margin-right:14px;
  }

  .navbar-brand img{
    width:235px;
    max-width:235px;
  }

  .navbar-nav .btn{
    padding:.68rem .5rem;
    font-size:.79rem;
  }
}


/* =========================
   TABLET / MOBILE NAV
========================= */

@media(max-width:991.98px){

 .news-hero{
    height:260px;
  }

  .news-hero img{
    object-position:center center;
  }


  .navbar{
    min-height:92px;
    flex-wrap:wrap;
  }

  .navbar .container-fluid{
    min-height:92px;
    flex-wrap:wrap;
    padding:10px 18px;
  }

  .navbar-brand{
    margin-right:0;
  }

  .navbar-brand img{
    width:auto;
    max-width:76vw;
    max-height:76px;
    display:block;
    object-fit:contain;
  }

  .navbar-toggler{
    display:block;
  }

  .navbar-collapse{
    width:100%;
    flex:0 0 100%;
    margin-top:10px;
  }

  .navbar-nav{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:8px 0 16px;
  }

  .navbar-nav .nav-item{
    width:100%;
  }

  .navbar-nav .btn{
    width:100%;
    justify-content:flex-start;
    padding:.8rem 1rem;
    border-radius:8px;
    font-size:.95rem;
    text-align:left;
  }

  .navbar-nav .btn:hover,
  .navbar-nav .btn:focus{
    transform:none;
  }

  .navbar-nav .btn-life{
    width:100%;
    justify-content:flex-start;
    border-radius:8px;
  }
}

/* MOBILE */
@media(max-width:768px){
 .news-hero{
    height:260px;
  }

  .news-hero img{
    object-position:center center;
  }


  .page-title{
    padding:60px 20px 34px;
  }

  .page-title h1{
    font-size:2.4rem;
  }

  #html-section > div > .row,
  #html-section > .row{
    padding:18px;
    border-radius:18px;
    border-left:4px solid var(--ag-blue);
  }

  #html-section iframe{
    margin-bottom:22px;
  }

  #html-section p[style*="font-size:1.4rem"],
  #html-section p[style*="font-size: 1.4rem"]{
    font-size:1.35rem !important;
  }

  .contact-section{
    padding:54px 18px 76px;
  }

  .contact-box{
    padding:36px 22px;
    border-radius:22px;
  }

  .contact-title{
    font-size:1.25rem;
    padding:10px 32px;
  }

  .contact-text{
    font-size:1rem;
    line-height:2;
  }

  .contact-info{
    font-size:1rem;
    line-height:2;
  }

  .footer{
    padding:32px 22px 42px;
  }

  .footer-inner{
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    gap:18px;
  }

  .footer-logo img{
    width:190px !important;
    max-width:80vw !important;
  }

  .footer-copy{
    white-space:normal;
    font-size:.9rem;
    line-height:1.6;
  }

  .footer-social{
    justify-content:center;
    gap:22px;
    width:100%;
  }

  .footer-social a{
    width:42px;
    height:42px;
  }

  .footer-social img{
    width:30px !important;
    height:30px !important;
    max-width:30px !important;
    max-height:30px !important;
  }
}

/* ========================================
   NEWS LIST - MOBILE FIX
======================================== */

@media (max-width: 767px) {

  .news-section {
    width: 100%;
    padding: 40px 14px 70px;
  }

  .news-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .news-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin-bottom: 24px;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 16px;

    box-sizing: border-box;
  }

   .news-image{
        width:100%;
        overflow:hidden;
        background:#fff;
    }

    .news-image img{
        display:block;
        width:100%;
        height:auto;

        object-fit:contain;
    }

  .news-content {
    width: 100%;
    min-width: 0;
    padding: 22px 20px 24px;

    text-align: left;

    box-sizing: border-box;
  }

  .news-content time {
    display: block;
    margin-bottom: 10px;

    color: #697684;
    font-size: 13px;
    line-height: 1.5;
  }

  .news-content h3 {
    margin: 0 0 12px;

    color: #263746;
    font-size: 20px;
    line-height: 1.45;
    text-align: left;

    overflow-wrap: anywhere;
  }

  .news-content p {
    margin: 0;

    color: #697684;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;

    overflow-wrap: anywhere;
  }
}
