/* 引入 GenSenRounded2TW-B.otf */
@font-face {
  font-family: "GenSenRounded2TW";
  src: url("fonts/GenSenRounded2TW-R.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* 全站套用 */
body {
  font-family: "GenSenRounded2TW", sans-serif;
  background-color: #ffffff; /* 幾乎白，但有感受到氣氛 */
  color: #333;  
}

/* ==================================================
   BASE
   基本設定
================================================== */

body {
  font-size: 1rem;
}


/* ==================================================
   LAYOUT
   網站整體結構
================================================== */

/* --------------------------------------------------
   Bootstrap container override
   設計稿最大寬度 = 1200px
   Bootstrap ≥1400px 會變成 1320px
   這裡統一限制為 1200px
-------------------------------------------------- */

@media (min-width:1200px) {
  .container {
    max-width: 1200px;
  }
}

.container {
  padding: 0;
}


/* ==================================================
   SECTION
   區塊間距與內層排版
================================================== */

.section {
  padding: 60px 0;
}

.section-inner {
  padding-left: 150px;
  padding-right: 150px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
  color: #1b4493;
  margin-bottom: 1em;
}


/* ==================================================
   COMPONENT
   單一模組 (hero / card / button / navbar)
================================================== */


/* =========================================================
   PRODUCTS COMPONENT
========================================================= */

.products {
  background-color: #eee1d8;
}


/* =========================================================
   EVENTS COMPONENT
   EVENT CARD
========================================================= */

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.event-image {
  flex: 0 0 48%;
}

.event-image img {
  width: 100%;
  object-fit: cover;
}

.event-content {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
}


/* =========================================================
   EVENT TITLE
========================================================= */

.event-title {
  position: relative;

  color: #5c94a7;
  font-weight: 700;
  line-height: 1.3;

  padding-left: 1rem;

  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.event-title::before {
  content: "";
  position: absolute;

  left: 0;
  top: 0;

  width: 4px;
  height: 100%;

  background-color: #f4a261;
  border-radius: 2px;

  transition: height .3s ease;
}


/* =========================================================
   EVENT SUBTITLE
========================================================= */

.event-subtitle {
  position: relative;

  display: inline-block;
  width: 100%;

  margin-top: .5rem;
  padding-bottom: .5rem;

  font-size: clamp(1.15rem, 1.8vw, 1.8rem);
  font-weight: 600;
  line-height: 1;

  color: #9b9b9b;
}

.event-subtitle::after {
  content: "";
  position: absolute;

  left: 0;
  bottom: -5px;

  width: 100%;
  height: 2px;

  background-color: #999;
}


/* =========================================================
   EVENT META
========================================================= */

.event-meta {
  margin-top: 1rem;
}

.event-meta p {
  margin-bottom: .3rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}


/* =========================================================
   EVENT BUTTON
========================================================= */

.event-more {
  align-self: flex-start;

  margin-top: auto;

  display: inline-flex;
  align-items: center;
  gap: .75em;

  padding: .25em 1.25em .25em 1.5em;

  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  font-weight: 500;

  color: #fff;
  background: #ec9d62;

  border-radius: 999px;

  text-decoration: none;

  transition: transform .25s ease, box-shadow .25s ease;
}

.event-more .icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 1.6em;
  height: 1.6em;

  font-size: .9em;
  font-weight: bold;

  color: #ec9d62;
  background: #fff;

  border-radius: 50%;

  transition: transform .25s ease;
}

.event-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.event-more:hover .icon {
  transform: translateX(4px);
}


/* =========================================================
   FOOTER COMPONENT
========================================================= */

.footer-top {
  padding: 40px 0;
  background: #eeeeee;
}

.footer-bottom {
  background: #8ca2c9;
  padding: 20px 0;
}

.footer-grid {
  display: flex;
  gap: 20px;
}

.footer-links,
.footer-shop {
  flex: 1;
}

.footer-contact,
.footer-social {
  flex: 1.5;
}

.footer-title {
  color: #16449c;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* footer list reset */

.footer-list,
.footer-info {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* li spacing */

.footer-list li,
.footer-info li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* link style */

.footer-list a {
  color: #424141;
  text-decoration: none;
  transition: all .2s;
}

.footer-list a:hover {
  color: #7c7c7c;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #fcfcfc;
  text-align: center;
  padding: 20px 0;
}

.footer-copyright p {
  margin: 4px 0;
  line-height: 1.6;
}


/* ==================================================
   UTILITY
   小工具 class
================================================== */

.outline {
  outline: 1px solid red;
}

.outline-dash {
  outline: 1px dashed red;
}


/* --------------------------------------------------
   ↓ 這邊作為判斷區塊位置，熟悉後可以刪除 ↓
-------------------------------------------------- */

/*
section,
footer {
  outline: 1px solid green;
}

.container {
  outline: 1px dashed red;
}

.section-inner {
  outline: 1px dotted blue;
}
*/

/* --------------------------------------------------
   ↑ 這邊作為判斷區塊位置，熟悉後可以刪除 ↑
-------------------------------------------------- */
/* ==================================================
   RESPONSIVE
   RWD Skeleton
   先確保手機不爆版
================================================== */


/* --------------------------------------------------
   Tablet
-------------------------------------------------- */

@media (max-width:992px){

.section-inner{
  padding-left:80px;
  padding-right:80px;
}

.event-card{
  gap:30px;
}

}


/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width:768px){

.section{
  padding:50px 0;
}

.section-inner{
  padding-left:20px;
  padding-right:20px;
}

.event-card{
  flex-direction:column;
  gap:20px;
}

.event-image,
.event-content{
  flex:0 0 100%;
}

.footer-grid{
  flex-direction:column;
  gap:30px;
}

.social-icons{
  justify-content:flex-start;
}

}


/* --------------------------------------------------
   Small Mobile
-------------------------------------------------- */

@media (max-width:576px){

.section{
  padding:40px 0;
}

.section-title{
  font-size:1.6rem;
}

.event-title{
  font-size:1.4rem;
}

.event-subtitle{
  font-size:1.1rem;
}

}