/* =====================================================
   TAAL13A COURSES PAGE
   只负责 /courses/ 页面
   Header 由 /assets/css/header.css 统一管理
===================================================== */

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:#FCF8D8;
  color:var(--header-black);
  font-family:var(--header-body);
}


/* =====================================================
   1. Page Layout
===================================================== */

.courses-page{
  max-width:1220px;
  margin:0 auto;
  padding:72px 28px 90px;
}


/* =====================================================
   2. Intro
===================================================== */

.courses-intro{
  margin-bottom:46px;
}

.courses-kicker{
  margin:0 0 12px;

  color:#E96F3C;

  font-family:var(--header-number);
  font-size:13px;
  line-height:1;
  font-weight:400;
  letter-spacing:.20em;

  text-transform:uppercase;
}

.courses-intro h1{
  margin:0 0 14px;

  color:var(--header-black);

  font-family:var(--header-display);
  font-size:clamp(38px,5vw,64px);
  line-height:1.1;
  font-weight:900;
  letter-spacing:-.045em;
}

.courses-subtitle{
  max-width:680px;
  margin:0;

  color:#686868;

  font-size:15px;
  line-height:1.7;
  font-weight:500;
}


/* =====================================================
   3. Course List
===================================================== */

#courses-list{
  width:100%;
}

.course-row{
  display:grid;
  grid-template-columns:
    minmax(260px,1.45fr)
    minmax(420px,1.6fr)
    110px
    118px;

  align-items:center;
  gap:24px;

  min-height:132px;

  padding:28px;
  margin-bottom:14px;

  background:var(--header-cream);
  border:1px solid var(--header-line);

  transition:
    background .18s ease,
    transform .18s ease,
    border-color .18s ease;
}

.course-row:hover{
  background:#fff;
  border-color:rgba(233,111,60,.45);
  transform:translateY(-1px);
}


/* =====================================================
   4. Course Main Info
===================================================== */

.course-main{
  position:relative;
  padding-left:18px;
}

.course-main::before{
  content:"";

  position:absolute;
  left:0;
  top:8px;

  width:4px;
  height:64px;

  background:#E96F3C;

  border-radius:4px;
}

.course-type{
  display:inline-flex;

  margin-bottom:12px;
  padding:6px 10px;

  background:#FFF0E8;
  color:#A84E28;

  border-radius:999px;

  font-size:12px;
  line-height:1;
  font-weight:900;
}

.course-main .course-title{font-size:28px;letter-spacing:.025em;word-spacing:.12em;}
.course-action-wrap .course-action{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none!important;box-sizing:border-box;}
.course-state-open .course-action{background:#fff;color:#171717;border-color:#171717;}
.course-state-open .course-action:hover{background:#fff;color:#171717;border-color:#E96F3C;}
.course-state-open .course-status-note{color:#A84E28;font-weight:900;}
.course-state-open .course-status-note::before{content:'●';margin-right:6px;font-size:9px;}
.course-state-closed .course-action,.course-state-soon .course-action{color:#686868;border-color:#aaa;background:transparent;}
.course-state-closed .course-status-note,.course-state-soon .course-status-note{color:#777;}
@media(max-width:800px){.course-main .course-title{font-size:24px;}}
.course-title{
  margin:0;

  color:var(--header-black);

  font-size:22px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:-.035em;
}

.course-subtitle{
  margin:5px 0 0;
  color:#686868;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}


/* =====================================================
   5. Date / Time / Duration
===================================================== */

.course-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
}

.course-field{
  min-width:0;
}

.course-label{
  margin-bottom:6px;

  color:#686868;

  font-size:12px;
  line-height:1.2;
  font-weight:800;
}

.course-value{
  color:var(--header-black);

  font-size:16px;
  line-height:1.35;
  font-weight:900;
}


/* =====================================================
   6. Price
===================================================== */

.course-price{
  color:var(--header-black);

  font-size:22px;
  line-height:1;
  font-weight:900;

  text-align:right;
  white-space:nowrap;
}


/* =====================================================
   7. Action
===================================================== */

.course-action{
  display:flex;
  align-items:center;
  justify-content:center;

  padding:13px 16px;

  border:1.5px solid var(--header-black);

  background:transparent;
  color:var(--header-black);

  text-decoration:none;

  font-size:14px;
  line-height:1;
  font-weight:900;

  white-space:nowrap;

  transition:
    background .18s ease,
    color .18s ease;
}

.course-action:hover{
  background:var(--header-black);
  color:#fff;
}


/* =====================================================
   8. Mobile / Tablet
===================================================== */

@media(max-width:800px){

  .courses-page{
    padding:46px 18px 64px;
  }

  .courses-intro{
    margin-bottom:30px;
  }

  .courses-kicker{
    font-size:11px;
    letter-spacing:.18em;
  }

  .courses-intro h1{
    font-size:38px;
    line-height:1.14;
  }

  .courses-subtitle{
    font-size:14px;
  }


  /* 每门课程改成纵向 */

  .course-row{
    grid-template-columns:1fr;
    gap:16px;

    min-height:auto;

    padding:22px 18px;
  }

  .course-main{
    padding-left:14px;
  }

  .course-main::before{
    width:3px;
    height:54px;
  }

  .course-title{
    font-size:20px;
  }


  /* 日期 / 时间 / 周期三列 */

  .course-meta{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0;

    width:100%;
  }

  .course-field{
    min-width:0;
    padding:0 4px;

    text-align:center;
  }

  .course-field:first-child{
    padding-left:0;
    text-align:left;
  }

  .course-field:last-child{
    padding-right:0;
    text-align:right;
  }

  .course-label{
    margin-bottom:4px;

    font-size:10.5px;

    white-space:nowrap;
  }

  .course-value{
    font-size:12.5px;
    line-height:1.3;
  }

  .course-price{
    font-size:22px;
    text-align:left;
  }

  .course-action{
    width:100%;
  }
}


/* =====================================================
   9. Extra Small Mobile
===================================================== */

@media(max-width:430px){

  .courses-page{
    padding-left:16px;
    padding-right:16px;
  }

  .courses-intro h1{
    font-size:34px;
  }

  .course-row{
    padding:20px 16px;
  }

  .course-title{
    font-size:19px;
  }
}
