: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-green);
  transform:translateY(-1px);
}


/* BOOKING 我要上課 */

.navbar-nav .btn-life{
  color:#fff !important;
  background:var(--ag-green) !important;
}

.navbar-nav .btn-life:hover,
.navbar-nav .btn-life:focus{
  color:#fff !important;
  background:var(--ag-green-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-green);
}

.page-title p{
  margin-top:20px;
  font-size:1.05rem;
  line-height:1.9;
  color:var(--ag-dark);
}

/* =========================
   BOOKING SECTION
========================= */
.booking-hero{
    width:100%;
}

.booking-hero {
  width: 100%;
}

.booking-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.booking-container{
    width:100%;
    max-width:1050px;
    margin:0 auto;
    padding:54px 58px 58px;
    background:var(--ag-white);
    border:1px solid var(--ag-border);
    border-radius:26px;
    box-shadow:0 18px 50px rgba(43,54,63,.08);
}


/* FORM INTRO */

.booking-intro{
  max-width:720px;
  margin:0 auto 46px;
  text-align:center;
}

.booking-label{

    display:inline-block;

    margin-bottom:14px;

    color:#B7D22A;

    font-size:.8rem;

    font-weight:700;

    letter-spacing:.22em;

    text-transform:uppercase;
}

.booking-intro h2{

    margin:0;

    color:#fff;

    font-size:2.2rem;

    font-weight:800;

    line-height:1.2;
}

.booking-intro h2::after{
  content:"";
  display:block;
  width:58px;
  height:4px;
  margin:18px auto 0;
  background:var(--ag-green);
  border-radius:999px;
}

.booking-intro p{
  margin:22px 0 0;
  color:#6D747B;
  font-size:1rem;
  line-height:1.9;
}


/* FORM LAYOUT */

.booking-form{

    width:100%;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:26px 28px;
}

.form-group{
  min-width:0;
}

.form-group-full{
  grid-column:1 / -1;
}

.form-group label{
  display:block;
  margin-bottom:10px;
  color:var(--ag-dark);
  font-size:.95rem;
  font-weight:700;
  text-align:left;
}

.required{
  color:var(--ag-orange);
}

.optional{
  margin-left:6px;
  color:#90969B;
  font-size:.78rem;
  font-weight:400;
}


/* INPUTS */

.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  padding:15px 17px;
  color:var(--ag-dark);
  background:#FAFAFC;
  border:1px solid #DDE0E5;
  border-radius:11px;
  outline:none;
  font-family:var(--font-zh);
  font-size:1rem;
  line-height:1.5;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.form-group input,
.form-group select{
  min-height:54px;
}

.form-group textarea{
  min-height:140px;
  resize:vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder{
  color:#A0A5AA;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover{
  border-color:#BCC2C8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  background:#fff;
  border-color:var(--ag-green);
  box-shadow:0 0 0 4px rgba(161,185,40,.15);
}

.form-group select{
  cursor:pointer;
}

.field-note{
  display:block;
  margin-top:8px;
  color:#7B8288;
  font-size:.8rem;
  line-height:1.6;
  text-align:left;
}


/* PRIVACY CHECKBOX */

.privacy-check{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-top:30px;
  padding:18px 20px;
  background:#F7F8F3;
  border:1px solid rgba(161,185,40,.28);
  border-radius:12px;
}

.privacy-check input{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin-top:3px;
  accent-color:var(--ag-green);
  cursor:pointer;
}

.privacy-check label{
  margin:0;
  color:#5C646A;
  font-size:.9rem;
  line-height:1.7;
  cursor:pointer;
}


/* BUTTONS */

.form-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:36px;
}

.booking-button{
  min-width:160px;
  padding:14px 28px;
  border-radius:999px;
  font-family:var(--font-zh);
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

.booking-button:hover{
  transform:translateY(-2px);
}

.booking-button-reset{
  color:var(--ag-dark);
  background:#fff;
  border:1px solid #CBD0D5;
}

.booking-button-reset:hover{
  color:var(--ag-dark);
  background:#F3F4F6;
  border-color:#ABB2B8;
}

.booking-button-submit{
  color:#fff;
  background:var(--ag-green);
  border:1px solid var(--ag-green);
  box-shadow:0 8px 20px rgba(161,185,40,.25);
}

.booking-button-submit:hover{
  color:#fff;
  background:var(--ag-green-hover);
  border-color:var(--ag-green-hover);
  box-shadow:0 12px 25px rgba(161,185,40,.32);
}

.required-message{
  margin:18px 0 0;
  color:#858B90;
  font-size:.8rem;
  text-align:left;
}


/* =========================
   BOOKING TABLET
========================= */

@media(max-width:991.98px){

  .booking-section{
    padding:24px 20px 90px;
  }

  .booking-container{
    padding:46px 38px 50px;
  }
}


/* =========================
   BOOKING MOBILE
========================= */

@media(max-width:768px){

  .booking-section{
    padding:16px 16px 70px;
  }

  .booking-container{
    padding:36px 20px 40px;
    border-radius:20px;
  }

  .booking-intro{
    margin-bottom:34px;
  }

  .booking-intro h2{
    font-size:1.65rem;
  }

  .booking-intro p{
    font-size:.95rem;
  }

  .form-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .form-group-full{
    grid-column:auto;
  }

  .form-actions{
    flex-direction:column-reverse;
    gap:12px;
  }

  .booking-button{
    width:100%;
  }
}

/* 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){

  .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){

  .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;
  }
}

/* =========================================
   BOOKING PRICE PLANS
========================================= */
.price-category{
    margin-bottom:60px;
}

.booking-pricing {
    width: 100%;
    padding: 30px 20px 70px;
    background: #ffffff;
}

.booking-pricing__container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

/* 分類 */
.price-category__title{

    margin-bottom:24px;
}

.price-category__title span{

    display:none;
}

.price-category__title h2{

    margin:0;

    padding:14px 20px;

    background:var(--ag-orange);

    color:#fff;

    font-size:1.1rem;

    font-weight:700;

    text-align:center;

    letter-spacing:.08em;

    border-radius:10px;
}

/* 四個價格卡片 */
.price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.price-card {
    padding: 26px 18px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #dce2e8;
    border-radius: 12px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.price-card:hover {
    border-color: #A1B928;

    box-shadow:
        0 12px 28px rgba(43, 54, 63, 0.1);

    transform: translateY(-3px);
}

.price-card h3,
.flexible-option h3 {
    margin: 0 0 16px;

    color: #263746;
    font-size: 1rem;
    font-weight: 700;
}

.price {
    margin: 0;

    color:var(--ag-orange);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.price small {
    margin-right: 4px;

    color: #263746;
    font-size: 0.7rem;
    font-weight: 700;
}

.validity {
    margin: 18px 0 0;

    color: #263746;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 任選方案 */
.flexible-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 20px;

    margin-top: 8px;
}

.flexible-card {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #dce2e8;
    border-radius: 12px;
}

.flexible-card > h2 {
    margin: 0;
    padding: 13px 20px;

    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;

    background: #F9481E;
}

.flexible-card__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flexible-card__content--single {
    grid-template-columns: 1fr;
}

.flexible-option {
    padding: 26px 20px;
    text-align: center;
}

.flexible-option + .flexible-option {
    border-left: 1px solid #dce2e8;
}

/* 注意事項 */
.price-notes {
    margin-top: 38px;
    text-align: center;
}

.price-notes p {
    margin: 6px 0;

    color: #F9481E;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .price-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .flexible-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .booking-pricing {
        padding: 24px 14px 50px;
    }

    .price-category {
        margin-bottom: 42px;
    }

    .price-category__title {
        display: block;
        margin-bottom: 18px;
    }

    .price-category__title span {
        display: none;
    }

    .price-category__title h2 {
        padding: 12px 14px;

        color: #ffffff;
        font-size: 0.92rem;
        line-height: 1.5;

        background: color:#263746;
        border-radius: 8px;
    }

    .price-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .price-card {
        padding: 22px 10px;
    }

    .price {
        font-size: 1.45rem;
    }

    .flexible-card__content {
        grid-template-columns: 1fr;
    }

    .flexible-option + .flexible-option {
        border-top: 1px solid #dce2e8;
        border-left: 0;
    }

    .price-notes {
        padding: 0 8px;
    }

    .price-notes p {
        font-size: 0.82rem;
    }

}

/* 超小型手機 */
@media (max-width: 380px) {

    .price-grid {
        grid-template-columns: 1fr;
    }

}

/* ===========================
   STARTER PLAN
=========================== */

.starter-plan{

    width:100%;

    padding:20px 20px 50px;
}

.starter-plan__card{

    position:relative;

    max-width:1050px;

    margin:0 auto;

    background:#fff;

    border:2px solid #F9481E;

    border-radius:12px;

    overflow:hidden;
}

/* 左上紅標 */

.starter-title{

    position:absolute;

    left:0;
    top:0;

    width:240px;

    padding:12px 24px;

    background:#F9481E;

    color:#fff;

    font-size:2rem;

    font-weight:800;

    text-align:center;

    letter-spacing:.08em;
}

/* 中間 */

.starter-content{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:60px;

    padding:70px 40px 28px;
}

/* 六堂 */

.starter-session{

    text-align:center;

    color:#F9481E;
}

.starter-session span{

    display:block;

    font-size:4.5rem;

    font-weight:900;

    line-height:1;
}

.starter-session small{

    font-size:2.4rem;

    font-weight:800;
}

/* 價格 */

.starter-price{

    text-align:left;
}

.price-line{

    display:flex;

    align-items:flex-end;

    gap:8px;

    color:#F9481E;
}

.price-line small{

    color:#F9481E;

    font-size:1rem;

    font-weight:700;

    margin-bottom:12px;
}

.price-line strong{

    font-size:5rem;

    line-height:1;

    font-weight:900;

    font-style:italic;
}

.price-line span{

    color:#F9481E;

    font-size:1.8rem;

    font-weight:700;

    margin-bottom:10px;
}

.starter-price p{

    margin:12px 0 0;

    color:#263746;

    font-size:1.8rem;

    font-weight:700;
}

/* 右下 */

.starter-note{

    position:absolute;

    right:20px;

    bottom:16px;

    var(--ag-orange-dark)

    font-size:.85rem;

    font-weight:700;
}

/* Tablet */

@media(max-width:768px){

.starter-title{

    width:180px;

    font-size:1.5rem;
}

.starter-content{

    gap:30px;

    padding:60px 20px 24px;
}

.starter-session span{

    font-size:3.6rem;
}

.starter-session small{

    font-size:2rem;
}

.price-line strong{

    font-size:4rem;
}

.starter-price p{

    font-size:1.4rem;
}

}

/* Mobile */

@media(max-width:600px){

.starter-title{

    position:relative;

    width:100%;
}

.starter-content{

    flex-direction:column;

    gap:15px;

    padding:30px 20px;
}

.starter-price{

    text-align:center;
}

.price-line{

    justify-content:center;
}

.starter-note{

    position:static;

    text-align:center;

    margin-bottom:18px;
}
}

/* 表單區底部不要留下空白 */
.booking-section {
    padding-bottom: 0;
}

/* Footer 上方圖片 */
.footer-banner {
    width: 100%;
    height: 300px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    margin-top:40px;
}

.footer-banner img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;

    object-fit: cover;
    object-position: center;
}

/* 圖片直接貼住 footer */
.footer {
    margin-top: 0;
}

/* =========================================
   STUDIO RULES
========================================= */

.studio-rules-section {
    width: 100%;
    padding: 20px 24px 110px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f8fa 100%
        );
}

.studio-rules-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 58px 60px;

    background: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 26px;

    box-shadow:
        0 18px 50px rgba(43, 54, 63, 0.08);
}


/* 標題 */
.studio-rules-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.studio-rules-label {
    display: inline-block;
    margin-bottom: 12px;

    color: #9fbd16;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.studio-rules-heading h2 {
    margin: 0;

    color: #263746;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.06em;
}

.studio-rules-heading p {
    margin: 18px 0 0;

    color: #697684;
    font-size: 0.96rem;
    line-height: 1.9;
}


/* Accordion */
.rules-accordion {
    border-top: 1px solid #dfe4ea;
}

.rule-item {
    border-bottom: 1px solid #dfe4ea;
}

.rule-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;
    padding: 25px 6px;

    color: #263746;
    text-align: left;

    background: transparent;
    border: 0;
    cursor: pointer;
}

.rule-title {
    display: flex;
    align-items: center;
    gap: 18px;

    font-size: 1.08rem;
    font-weight: 800;
}

.rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;

    background: #f36c21;
    border-radius: 50%;
}


/* 加號 */
.rule-icon {
    position: relative;

    flex: 0 0 auto;

    width: 22px;
    height: 22px;
}

.rule-icon::before,
.rule-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 18px;
    height: 2px;

    content: "";
    background: #263746;
    border-radius: 999px;

    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.rule-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.rule-button[aria-expanded="true"] .rule-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}


/* 展開內容 */
.rule-content {
    max-height: 0;
    overflow: hidden;

    transition:
        max-height 0.35s ease;
}

.rule-content-inner {
    padding: 0 8px 30px 66px;
}

.rule-content ul {
    margin: 0;
    padding-left: 22px;
}

.rule-content li {
    margin-bottom: 13px;

    color: #566574;
    font-size: 0.95rem;
    line-height: 1.85;
}

.rule-content li:last-child {
    margin-bottom: 0;
}

.rule-alert {
    margin-bottom: 20px;
    padding: 16px 18px;

    color: #8a471d;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.7;

    background: #fff5ee;
    border-left: 4px solid #f36c21;
    border-radius: 8px;
}


/* 底部文字 */
.studio-rules-footer {
    margin-top: 34px;
    padding: 20px 24px;

    text-align: center;

    background: #f7f8fa;
    border-radius: 12px;
}

.studio-rules-footer p {
    margin: 0;

    color: #697684;
    font-size: 0.88rem;
    line-height: 1.7;
}


/* Hover */
.rule-button:hover .rule-title {
    color: #f36c21;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .studio-rules-section {
        padding: 10px 14px 70px;
    }

    .studio-rules-container {
        padding: 38px 20px;
        border-radius: 18px;
    }

    .studio-rules-heading {
        margin-bottom: 30px;
    }

    .studio-rules-heading p br {
        display: none;
    }

    .rule-button {
        padding: 20px 2px;
    }

    .rule-title {
        gap: 12px;
        font-size: 1rem;
    }

    .rule-number {
        width: 36px;
        height: 36px;
    }

    .rule-content-inner {
        padding:
            0
            2px
            24px
            48px;
    }

    .rule-content li {
        font-size: 0.9rem;
    }

}


/* 超小型手機 */
@media (max-width: 420px) {

    .studio-rules-container {
        padding: 34px 16px;
    }

    .rule-content-inner {
        padding-left: 4px;
    }

}

/* =========================
   STARTER PLAN
========================= */

.starter-plan-card {
    width: 100%;
    margin: 0 auto 48px;

    overflow: hidden;
    border: 2px solid #ff4b22;
    border-radius: 14px;
    background: #ffffff;
}

.starter-plan-title {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 12px 20px;

    background: #ff4b22;
    color: #ffffff;

    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-align: center;

    box-sizing: border-box;
}

.starter-plan-content {
    padding: 30px 36px;
}

@media (max-width: 768px) {
    .starter-plan-title {
        min-height: 62px;
        font-size: 1.4rem;
    }

    .starter-plan-content {
        padding: 24px 18px;
    }
}

/* ========================================
   STUDIO RULES ENTRY
======================================== */

.studio-rules-entry{
  width:100%;
  padding:20px 24px 48px;
  background:#fff;
}

.studio-rules-entry-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;

  width:100%;
  max-width:1160px;
  margin:0 auto;
  padding:34px 40px;

  background:#f6f7f8;

  border-left:4px solid var(--ag-orange, #f9481e);
  border-radius:0 18px 18px 0;
}


/* TEXT */

.studio-rules-copy{
  text-align:left;
}

.studio-rules-label{
  display:block;
  margin-bottom:9px;

  color:var(--ag-orange, #f9481e);

  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
}

.studio-rules-copy h2{
  margin:0 0 8px;

  color:var(--ag-dark, #2b363f);

  font-size:24px;
  font-weight:800;
  line-height:1.4;
}

.studio-rules-copy p{
  margin:0;

  color:#687279;

  font-size:14px;
  line-height:1.8;
}


/* LINK */

.studio-rules-link{
  flex-shrink:0;

  display:inline-flex;
  align-items:center;
  gap:14px;

  padding:12px 0;

  color:var(--ag-dark, #2b363f);

  font-size:14px;
  font-weight:700;
  text-decoration:none;

  border-bottom:1px solid #aeb5ba;

  transition:
    color .25s ease,
    border-color .25s ease;
}

.studio-rules-arrow{
  color:var(--ag-orange, #f9481e);
  font-size:20px;

  transition:transform .25s ease;
}

.studio-rules-link:hover{
  color:var(--ag-orange, #f9481e);
  border-color:var(--ag-orange, #f9481e);
  text-decoration:none;
}

.studio-rules-link:hover .studio-rules-arrow{
  transform:translateX(5px);
}


/* ========================================
   FIRST CLASS ENTRY - MOBILE 
======================================== */

@media screen and (max-width: 768px){

  /* 整個區塊：白色背景 */
  body .studio-rules-entry{
    display:block !important;

    width:100% !important;

    margin:0 !important;
    padding:24px 16px 48px !important;

    box-sizing:border-box !important;
    overflow:hidden !important;

    background:#ffffff !important;
  }


  /* 內層卡片 */
  body .studio-rules-entry .studio-rules-entry-inner{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;

    width:100% !important;
    max-width:none !important;

    margin:0 !important;
    padding:28px 24px !important;

    gap:22px !important;

    box-sizing:border-box !important;

    background:#f6f7f8 !important;

    border-left:4px solid #F9481E !important;
    border-radius:0 16px 16px 0 !important;
  }


  /* 左側文字內容 */
  body .studio-rules-entry .studio-rules-copy{
    display:block !important;

    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    margin:0 !important;
    padding:0 !important;

    text-align:left !important;
  }


  /* BEFORE YOUR FIRST CLASS */
  body .studio-rules-entry .studio-rules-label{
    display:block !important;

    width:100% !important;

    margin:0 0 10px !important;

    color:#F9481E !important;

    font-size:10px !important;
    font-weight:800 !important;
    line-height:1.5 !important;
    letter-spacing:.14em !important;

    text-align:left !important;

    white-space:normal !important;
  }


  /* 第一次來 AG Studios？ */
  body .studio-rules-entry .studio-rules-copy h2{
    display:block !important;

    width:100% !important;

    margin:0 0 10px !important;

    color:#2B363F !important;

    font-size:22px !important;
    font-weight:800 !important;
    line-height:1.4 !important;

    text-align:left !important;

    white-space:normal !important;
  }


  /* 說明文字 */
  body .studio-rules-entry .studio-rules-copy p{
    display:block !important;

    width:100% !important;

    margin:0 !important;

    color:#687279 !important;

    font-size:14px !important;
    font-weight:400 !important;
    line-height:1.8 !important;

    text-align:left !important;

    white-space:normal !important;
  }


  /* 查看教室守則 */
  body .studio-rules-entry .studio-rules-link{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;

    width:auto !important;
    max-width:100% !important;

    margin:0 !important;
    padding:6px 0 !important;

    color:#2B363F !important;

    font-size:14px !important;
    font-weight:700 !important;
    line-height:1.5 !important;

    text-align:left !important;
    text-decoration:none !important;

    border-bottom:1px solid #AEB5BA !important;

    white-space:normal !important;
  }


  /* 箭頭 */
  body .studio-rules-entry .studio-rules-arrow{
    display:inline-block !important;

    margin-left:10px !important;

    color:#F9481E !important;

    font-size:18px !important;
    line-height:1 !important;
  }


  /* Link hover / focus */
  body .studio-rules-entry .studio-rules-link:hover,
  body .studio-rules-entry .studio-rules-link:focus{
    color:#F9481E !important;
    text-decoration:none !important;
  }

}

/* ========================================
   FORCE FIX - STUDIO RULES MOBILE
======================================== */

@media screen and (max-width: 768px) {

  html body section.studio-rules-entry {
    background-color: #ffffff !important;
    background-image: none !important;
  }

  html body section.studio-rules-entry .studio-rules-entry-inner {
    background-color: #f6f7f8 !important;
    background-image: none !important;

    border-left: 4px solid #F9481E !important;
    border-radius: 0 16px 16px 0 !important;
  }

}