
:root{
  --bg:#edf3fb;
  --bg-2:#e5eef9;
  --surface:#ffffff;
  --surface-2:#f5f8fc;
  --surface-3:#edf4ff;
  --header-start:#215dad;
  --header-end:#2d6cc7;
  --primary:#2f80ed;
  --primary-2:#1458c2;
  --text:#182230;
  --text-soft:#243245;
  --muted:#516276;
  --line:#d6e0ee;
  --line-strong:#bed0e6;
  --icon-bg:#eef5ff;
  --warning:#f0d34f;
  --shadow:0 12px 28px rgba(27,73,138,.10);
  --shadow-soft:0 6px 18px rgba(22,54,99,.08);
  --radius:22px;
  --radius-sm:15px;
  --container:1180px;
}
html[data-theme="dark"]{
  --bg:#0d1728;
  --bg-2:#13213a;
  --surface:#162335;
  --surface-2:#1b2b42;
  --surface-3:#223755;
  --header-start:#15345f;
  --header-end:#204d8a;
  --primary:#8bb9ff;
  --primary-2:#b3d1ff;
  --text:#f4f8ff;
  --text-soft:#e6eefc;
  --muted:#c5d1e4;
  --line:#314561;
  --line-strong:#405b82;
  --icon-bg:#1e3351;
  --warning:#f0d34f;
  --shadow:0 16px 34px rgba(0,0,0,.34);
  --shadow-soft:0 8px 22px rgba(0,0,0,.24);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter","Plus Jakarta Sans","Segoe UI",Arial,sans-serif;
  background:linear-gradient(180deg,var(--bg) 0%, var(--bg-2) 100%);
  color:var(--text);
  line-height:1.6;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
img,svg{max-width:100%;display:block}
.container{width:min(var(--container),calc(100% - 32px));margin-inline:auto}
.skip-link{position:absolute;left:-999px;top:12px;background:var(--surface);color:var(--text);padding:10px 12px;border:1px solid var(--line);border-radius:12px;z-index:99}
.skip-link:focus{left:12px}
.hidden{display:none !important}
.site-head{background:linear-gradient(135deg,var(--header-start),var(--header-end));color:#fff;padding:18px 0 110px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-icon{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);display:grid;place-items:center;flex:0 0 auto}
.brand-name{font-size:18px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-wrap{display:flex;align-items:center;gap:10px;min-width:0}
.nav-links{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.nav-links a{padding:10px 12px;border-radius:12px;color:rgba(255,255,255,.96);font-size:15px;font-weight:500;transition:background .18s ease,transform .12s ease}
.nav-links a:hover{background:rgba(255,255,255,.12)}
.nav-links a:active{transform:scale(.98)}
.head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.icon-btn,.small-btn,.main-btn,.ghost-btn,.card-action{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:0 14px;border-radius:14px;
  border:1px solid transparent;cursor:pointer;user-select:none;
  transition:transform .12s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease;
}
.icon-btn{width:44px;padding:0;background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.28);box-shadow:0 6px 16px rgba(0,0,0,.10)}
.small-btn{background:#fff;color:#155fcc;border-color:rgba(255,255,255,.50);box-shadow:0 6px 16px rgba(0,0,0,.10);font-weight:700}
.main-btn{background:var(--primary-2);color:#fff;box-shadow:var(--shadow-soft);font-weight:600}
.ghost-btn{background:var(--surface);color:var(--primary-2);border-color:var(--line);box-shadow:var(--shadow-soft);font-weight:600}
.icon-btn:active,.small-btn:active,.main-btn:active,.ghost-btn:active,.card-action:active{transform:translateY(2px) scale(.98);box-shadow:0 3px 8px rgba(0,0,0,.18)}
.icon-btn:hover,.small-btn:hover,.main-btn:hover,.ghost-btn:hover{filter:brightness(1.03)}
.search-box{background:var(--surface);border:1px solid rgba(0,0,0,.08);border-radius:16px;display:grid;grid-template-columns:1fr 56px;overflow:hidden;box-shadow:var(--shadow-soft)}
.search-box input{border:0;background:transparent;color:var(--text);padding:17px 18px;font-size:17px;outline:0;min-width:0}
.search-box input::placeholder{color:var(--muted)}
.search-box button{border:0;border-left:1px solid var(--line);background:transparent;color:var(--primary-2);font-size:24px;cursor:pointer}
.search-box button:active{transform:scale(.96)}
.main{margin-top:-72px;padding-bottom:40px}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:28px}
.card,.panel,.service-box,.detail-box,.faq-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card-pad,.panel,.detail-box,.cta-box{padding:26px}
.hero-card{min-height:290px}
.hero-card.profile{background:linear-gradient(180deg,var(--surface-3) 0%, var(--surface) 100%)}
.hero-content,.notice{display:grid;grid-template-columns:1fr;gap:14px;align-items:start;height:100%}
.kicker,.tag{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:600;width:max-content;max-width:100%}
.kicker{background:var(--surface);color:var(--primary-2);border:1px solid var(--line)}
.tag{background:var(--warning);color:#24303f}
h1,.hero-title,.page-title,.section-title,.panel h2,.detail-box h2,.detail-box h3,.service-text h3,.service-box-head,.notice-title{color:var(--text)}
h1,.hero-title{font-size:clamp(32px,4.6vw,54px);line-height:1.08;margin:0 0 14px;letter-spacing:-.04em;font-weight:700;max-width:12ch}
.notice-title{font-size:clamp(28px,3.3vw,40px);line-height:1.15;margin:0 0 14px;letter-spacing:-.03em;font-weight:700;max-width:12ch}
.hero-text,.lead,.page-lead,.panel p,.detail-box p,.service-text p,.section-note,.timeline-item span:last-child,.stat span:last-child,.chip,.breadcrumb,.notice p{color:var(--muted)}
.hero-text,.lead,.notice p{font-size:17px;margin:0 0 18px;max-width:62ch}
.action-row{display:flex;gap:10px;flex-wrap:wrap}
.mock-phone,.certificate-art,.cert-box,.cert-badge{display:none !important}
.section{margin-top:24px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:14px}
.section-title{font-size:clamp(26px,3.5vw,42px);margin:0;line-height:1.12;letter-spacing:-.03em;font-weight:700}
.section-note{margin:0;max-width:580px;font-size:15px}
.service-box{box-shadow:var(--shadow-soft)}
.service-box-head{padding:18px 22px;border-bottom:1px solid var(--line);font-size:21px;letter-spacing:-.01em;font-weight:700}
.service-grid{display:grid;grid-template-columns:1fr 1fr}
.service-link{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 22px;min-height:138px;border-bottom:1px solid var(--line);transition:background .18s ease,transform .12s ease}
.service-link:nth-child(odd){border-right:1px solid var(--line)}
.service-link:hover{background:var(--surface-2)}
.service-link:active{transform:scale(.995)}
.service-main{display:flex;align-items:flex-start;gap:16px;min-width:0}
.service-icon{width:52px;height:52px;border-radius:16px;background:var(--icon-bg);border:1px solid var(--line);display:grid;place-items:center;color:var(--primary-2);font-size:23px;flex:0 0 auto}
.service-text{min-width:0}
.service-text h3{margin:0 0 6px;font-size:22px;line-height:1.2;letter-spacing:-.02em;font-weight:700;overflow-wrap:anywhere}
.service-text p{margin:0;font-size:15.5px;max-width:44ch}
.arrow{color:var(--primary-2);font-size:30px;line-height:1;flex:0 0 auto}
.profile-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}
.panel h2,.detail-box h2{font-size:29px;line-height:1.15;margin:0 0 12px;letter-spacing:-.03em;font-weight:700}
.detail-box h3{font-size:20px;margin:18px 0 10px;line-height:1.25;font-weight:700}
.panel p,.detail-box p{margin:0 0 16px}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{padding:9px 13px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:14px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.stat{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:16px}
.stat .num{display:block;font-size:26px;line-height:1.1;letter-spacing:-.03em;font-weight:700;margin-bottom:6px;color:var(--text)}
.timeline{display:grid;gap:12px}
.timeline-item{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:15px 16px}
.timeline-item .time{display:block;margin-bottom:6px;color:var(--text);font-weight:700}
.cta-box{margin-top:24px;background:linear-gradient(135deg,var(--header-start),var(--header-end));color:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.cta-box h2{font-size:clamp(28px,3.8vw,40px);line-height:1.14;letter-spacing:-.03em;margin:0 0 10px;font-weight:700;color:#fff}
.cta-box p{margin:0 0 18px;color:rgba(255,255,255,.90);max-width:680px}
.page-title-wrap{padding:24px 0 110px;background:linear-gradient(180deg,rgba(0,0,0,0) 0%, rgba(0,0,0,.03) 100%)}
.breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;margin-bottom:10px}
.page-title{font-size:clamp(34px,5vw,58px);line-height:1.06;letter-spacing:-.04em;margin:0 0 12px;font-weight:700}
.page-lead{font-size:17px;max-width:720px;margin:0}
.detail-main{margin-top:-76px;padding-bottom:40px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:18px;align-items:start}
.side-card{position:sticky;top:16px}
.clean-list{margin:0;padding-left:18px;color:var(--text)}
.clean-list li{margin-bottom:8px}
.mini-contact{display:grid;gap:10px}
.mini-contact a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid var(--line);background:var(--surface-2);border-radius:14px;transition:background .18s ease,transform .12s ease;color:var(--text-soft)}
.mini-contact a:hover{background:var(--surface-3)}
.mini-contact a:active{transform:scale(.99)}
.form{display:grid;gap:14px}
.form label{display:grid;gap:8px;font-weight:600;color:var(--text)}
.form input,.form textarea,.form select{width:100%;border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:14px;padding:14px 14px;outline:0}
.form textarea{min-height:110px;resize:vertical}
.form input:focus,.form textarea:focus,.form select:focus,.search-box input:focus{box-shadow:0 0 0 4px rgba(47,128,237,.12)}
.no-result{padding:16px 22px;color:var(--muted);font-size:15px}
.footer{text-align:center;color:var(--muted);font-size:14px;padding:22px 0 30px}
@media(max-width:980px){
  .hero-grid,.profile-grid,.detail-grid{grid-template-columns:1fr}
  .service-grid{grid-template-columns:1fr}
  .service-link:nth-child(odd){border-right:0}
  .site-head{padding-bottom:98px}
  .main,.detail-main{margin-top:-64px}
  .side-card{position:static}
}
@media(max-width:720px){
  .container{width:min(100% - 24px,var(--container))}
  .site-head{padding:14px 0 88px}
  .topbar{align-items:flex-start;flex-direction:column}
  .nav-wrap{width:100%;justify-content:space-between;align-items:flex-start}
  .nav-links{gap:2px}
  .nav-links a{font-size:14px;padding:8px 10px}
  .brand-name{font-size:15px}
  .brand-icon{width:38px;height:38px}
  .icon-btn,.small-btn{min-height:40px;height:40px;border-radius:12px}
  .small-btn{padding:0 12px}
  .search-box{grid-template-columns:1fr 50px;border-radius:14px}
  .search-box input{font-size:15px;padding:14px}
  .main,.detail-main{margin-top:-56px}
  .card-pad,.panel,.detail-box,.cta-box{padding:18px}
  .hero-card{min-height:auto}
  .hero-title,h1{font-size:clamp(28px,9vw,40px);max-width:none}
  .notice-title{font-size:24px;max-width:none}
  .notice p,.hero-text,.lead,.page-lead{font-size:15.5px}
  .section-head{align-items:flex-start;flex-direction:column}
  .service-link{min-height:auto;padding:18px 16px}
  .service-icon{width:48px;height:48px;font-size:21px}
  .service-text h3{font-size:19px}
  .service-text p{font-size:14.5px}
  .arrow{font-size:26px}
  .stats{grid-template-columns:1fr}
  .page-title-wrap{padding:22px 0 92px}
  .page-title{font-size:clamp(30px,10vw,44px)}
}
@media(max-width:420px){
  .head-actions{margin-left:auto}
  .nav-wrap{gap:8px}
  .service-main{gap:12px}
  .service-text h3{font-size:18px}
  .service-text p{font-size:14px}
  .card-pad,.panel,.detail-box,.cta-box{padding:16px}
  .main-btn,.ghost-btn{font-size:13px}
  .brand-name{max-width:235px}
}


.bento-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}
.bento-card{height:100%}
.bento-profile{grid-column:span 7;display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:center}
.bento-about{grid-column:span 5}
.bento-stats{grid-column:span 5}
.bento-timeline{grid-column:span 7}
.profile-photo-wrap{display:flex;align-items:center;justify-content:center}
.profile-photo{width:100%;max-width:240px;aspect-ratio:1/1;object-fit:cover;border-radius:24px;border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.profile-copy h2{font-size:30px;line-height:1.12;margin:10px 0 12px;letter-spacing:-.03em;font-weight:700;color:var(--text)}
.profile-copy p{margin:0 0 16px;color:var(--muted)}
.label-chip{background:var(--surface-3);color:var(--primary-2);font-weight:700}
.mini-list{display:grid;gap:12px;margin-top:18px}
.mini-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--line);background:var(--surface-2);border-radius:16px}
.mini-row span{color:var(--muted);font-size:14px}
.mini-row strong{color:var(--text);font-size:15px}
.stats-compact{margin-top:8px}
.detail-profile-head{display:grid;grid-template-columns:120px minmax(0,1fr);gap:18px;align-items:center;margin-bottom:18px}
.detail-profile-photo{width:120px;height:120px;object-fit:cover;border-radius:22px;border:1px solid var(--line);box-shadow:var(--shadow-soft)}
@media(max-width:980px){
  .bento-grid{grid-template-columns:1fr 1fr}
  .bento-profile,.bento-about,.bento-stats,.bento-timeline{grid-column:auto}
  .bento-profile{grid-template-columns:220px minmax(0,1fr)}
}
@media(max-width:720px){
  .bento-grid{grid-template-columns:1fr}
  .bento-profile{grid-template-columns:1fr;justify-items:start}
  .profile-photo{max-width:180px}
  .detail-profile-head{grid-template-columns:1fr;justify-items:start}
  .detail-profile-photo{width:108px;height:108px}
  .mini-row{align-items:flex-start;flex-direction:column}
}


/* dark mode button contrast fix */
html[data-theme="dark"] .main-btn {
  background: #a8cbff;
  color: #08182e;
  border-color: #cfe2ff;
}

html[data-theme="dark"] .main-btn:hover {
  background: #bdd8ff;
  color: #061427;
}

html[data-theme="dark"] .ghost-btn {
  background: #1b2b42;
  color: #e4efff;
  border-color: #4b6386;
}

html[data-theme="dark"] .ghost-btn:hover {
  background: #223755;
  color: #ffffff;
  border-color: #6f8db8;
}

html[data-theme="dark"] .small-btn {
  background: #e7f1ff;
  color: #0d3268;
  border-color: #c7dcfb;
}

html[data-theme="dark"] .icon-btn {
  background: rgba(231, 241, 255, 0.12);
  color: #eaf3ff;
  border-color: rgba(231, 241, 255, 0.35);
}

html[data-theme="dark"] .card-action {
  background: #1b2b42;
  color: #e4efff;
  border-color: #4b6386;
}

html[data-theme="dark"] .search-box button {
  color: #b8d6ff;
}

html[data-theme="dark"] .arrow {
  color: #b8d6ff;
}

html[data-theme="dark"] .cta-box .ghost-btn {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
}

html[data-theme="dark"] .cta-box .small-btn {
  background: #ffffff;
  color: #0d3268;
}


/* clearer home button */
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}

.brand:hover .brand-icon {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.55);
}

.brand:active .brand-icon {
  transform: translateY(2px) scale(.97);
}

.brand-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: #ffffff;
}

html[data-theme="dark"] .brand-icon {
  background: rgba(231,241,255,.13);
  border-color: rgba(231,241,255,.36);
}

html[data-theme="dark"] .brand:hover .brand-icon {
  background: rgba(231,241,255,.20);
  border-color: rgba(231,241,255,.55);
}

html[data-theme="dark"] .brand-icon svg {
  fill: #f4f8ff;
}

@media(max-width:720px) {
  .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .brand-icon svg {
    width: 20px;
    height: 20px;
  }
}


/* adaptive compact header for inner pages */
.detail-head {
  padding: 16px 0 24px;
}

.detail-head .topbar {
  margin-bottom: 0;
}

.nav-links a.is-active {
  background: rgba(255,255,255,.16);
  color: #ffffff;
}

html[data-theme="dark"] .nav-links a.is-active {
  background: rgba(231,241,255,.16);
  color: #ffffff;
}

.detail-head + .page-title-wrap {
  padding: 34px 0 86px;
}

.detail-main {
  margin-top: -58px;
}

/* cleaner profile header alignment */
.detail-profile-head {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.detail-profile-head > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 124px;
}

.detail-profile-head h2 {
  margin: 0 0 8px;
  line-height: 1.12;
}

.detail-profile-head .lead {
  margin: 0;
}

.detail-profile-photo {
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 22px;
}

/* make detail cards look more balanced on profile page */
.detail-grid {
  align-items: start;
}

.detail-box.side-card {
  min-height: 0;
}

/* remove too much top blue area on smaller screens too */
@media(max-width:980px) {
  .detail-head {
    padding: 14px 0 22px;
  }
  .detail-head + .page-title-wrap {
    padding: 28px 0 76px;
  }
  .detail-main {
    margin-top: -50px;
  }
}

@media(max-width:720px) {
  .detail-head {
    padding: 12px 0 18px;
  }
  .detail-head + .page-title-wrap {
    padding: 24px 0 68px;
  }
  .detail-profile-head {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }
  .detail-profile-head > div {
    min-height: 86px;
  }
  .detail-profile-photo {
    width: 86px;
    height: 86px;
    border-radius: 18px;
  }
  .detail-profile-head h2 {
    font-size: 24px;
  }
}

@media(max-width:420px) {
  .detail-profile-head {
    grid-template-columns: 1fr;
  }
  .detail-profile-head > div {
    min-height: auto;
  }
  .detail-profile-photo {
    width: 112px;
    height: 112px;
  }
}


/* professional separated profile layout */
.page-title-compact {
  padding-bottom: 76px;
}

.profile-detail-main {
  margin-top: -46px;
}

.teacher-profile-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.profile-photo-panel,
.profile-summary-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.profile-photo-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.teacher-main-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.photo-caption h2 {
  margin: 10px 0 6px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.photo-caption p {
  margin: 0;
  color: var(--muted);
}

.photo-actions {
  margin-top: 2px;
}

.profile-summary-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-summary-panel h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
  max-width: 13ch;
}

.profile-summary-panel .lead {
  max-width: 66ch;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.summary-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.summary-item strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .95fr;
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.profile-info-grid .info-card {
  height: 100%;
}

.stats-profile {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

html[data-theme="dark"] .profile-summary-panel h2,
html[data-theme="dark"] .photo-caption h2,
html[data-theme="dark"] .summary-item strong {
  color: #f4f8ff;
}

@media(max-width: 980px) {
  .teacher-profile-layout,
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo-panel {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
  }

  .teacher-main-photo {
    aspect-ratio: 1 / 1;
    border-radius: 22px;
  }

  .photo-actions {
    grid-column: 1 / -1;
  }

  .profile-summary-panel h2 {
    max-width: none;
  }
}

@media(max-width: 720px) {
  .page-title-compact {
    padding-bottom: 64px;
  }

  .profile-detail-main {
    margin-top: -40px;
  }

  .profile-photo-panel,
  .profile-summary-panel {
    padding: 18px;
  }

  .profile-photo-panel {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .photo-caption h2 {
    font-size: 22px;
  }

  .profile-summary-panel h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .stats-profile {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 420px) {
  .profile-photo-panel {
    grid-template-columns: 1fr;
  }

  .teacher-main-photo {
    max-width: 180px;
  }

  .stats-profile {
    grid-template-columns: 1fr;
  }
}


/* admin panel */
.admin-login-wrap {
  display: grid;
  place-items: start center;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 16px;
}

.admin-card,
.admin-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.admin-card p,
.admin-message {
  color: var(--muted);
  margin: 0 0 14px;
}

.admin-photo-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.file-label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.file-label input {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  padding: 12px;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-editor {
  display: grid;
  gap: 18px;
}

.admin-section {
  padding: 0;
  overflow: hidden;
}

.admin-section summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.admin-section summary::-webkit-details-marker {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.admin-grid label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.admin-grid input,
.admin-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: 0;
}

.admin-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-grid input:focus,
.admin-grid textarea:focus {
  box-shadow: 0 0 0 4px rgba(47,128,237,.12);
}

@media(max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
  .admin-photo-preview {
    max-width: 240px;
  }
}

@media(max-width: 720px) {
  .admin-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .admin-card,
  .admin-section summary {
    padding: 18px;
  }
}


/* clean admin panel v9 */
.clean-admin-title {
  padding-bottom: 68px;
}

.clean-admin-shell {
  display: grid;
  gap: 18px;
}

.clean-admin-toolbar,
.clean-photo-card,
.clean-admin-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.clean-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.clean-admin-toolbar h2,
.photo-editor-text h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.15;
}

.clean-admin-toolbar p,
.photo-editor-text p {
  margin: 0;
  color: var(--muted);
}

.clean-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.clean-photo-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
}

.photo-preview-box {
  width: 100%;
}

.admin-photo-preview-clean {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.photo-editor-text {
  display: grid;
  gap: 10px;
  align-content: center;
}

.clean-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.clean-file-upload input {
  max-width: 260px;
  color: var(--muted);
}

.clean-admin-list {
  display: grid;
  gap: 18px;
}

.clean-admin-section summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 18px 20px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.clean-admin-section summary::-webkit-details-marker {
  display: none;
}

.section-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--primary-2);
  font-weight: 800;
  flex: 0 0 auto;
}

.clean-admin-section summary strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.clean-admin-section summary small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.4;
}

.clean-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.clean-field {
  display: grid;
  gap: 8px;
}

.clean-field span {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.clean-field input,
.clean-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: 0;
  min-width: 0;
}

.clean-field textarea {
  resize: vertical;
  min-height: 98px;
}

.clean-field input:focus,
.clean-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(47,128,237,.12);
  border-color: var(--line-strong);
}

html[data-theme="dark"] .clean-admin-toolbar,
html[data-theme="dark"] .clean-photo-card,
html[data-theme="dark"] .clean-admin-section {
  background: var(--surface);
}

html[data-theme="dark"] .clean-file-upload {
  background: var(--surface-2);
  color: var(--text);
}

@media(max-width: 900px) {
  .clean-admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .clean-toolbar-actions {
    justify-content: flex-start;
  }
  .clean-photo-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .clean-admin-fields {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 620px) {
  .clean-admin-title {
    padding-bottom: 58px;
  }
  .clean-photo-card {
    grid-template-columns: 1fr;
  }
  .admin-photo-preview-clean {
    max-width: 180px;
  }
  .clean-admin-toolbar,
  .clean-photo-card,
  .clean-admin-section summary,
  .clean-admin-fields {
    padding: 16px;
  }
  .clean-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .clean-toolbar-actions .main-btn,
  .clean-toolbar-actions .ghost-btn {
    width: 100%;
  }
  .clean-file-upload {
    display: grid;
    width: 100%;
  }
  .clean-file-upload input {
    max-width: 100%;
  }
}


/* v10 complete admin and auth indicator */
.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-pill [data-auth-dot],
.admin-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffcf56;
  box-shadow: 0 0 0 4px rgba(255,207,86,.15);
}

.auth-pill.is-logged-in [data-auth-dot],
.admin-status-dot {
  background: #45e6a7;
  box-shadow: 0 0 0 4px rgba(69,230,167,.15);
}

.auth-pill.is-logged-in {
  background: rgba(69,230,167,.12);
  border-color: rgba(69,230,167,.38);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.contact-strip h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 28px;
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
}

.contact-strip-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-sticky-actions {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 18px;
}

.admin-sticky-actions > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.admin-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  font-size: 14px;
}

.admin-photo-editor {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.admin-photo-editor h2 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: 30px;
}

.admin-photo-editor p {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 62ch;
}

.admin-live-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-section-head span {
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.admin-section-head a {
  color: var(--primary-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.admin-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  padding: 20px;
}

.admin-inline-field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-inline-field.wide-field {
  grid-column: span 2;
}

.admin-inline-field span {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.admin-inline-field input,
.admin-inline-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: 0;
}

.admin-inline-field textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-inline-field input:focus,
.admin-inline-field textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(47,128,237,.12);
}

.clean-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.clean-file-upload input {
  max-width: 260px;
  color: var(--muted);
}

html[data-theme="dark"] .auth-pill {
  color: #f4f8ff;
}

@media(max-width: 980px) {
  .admin-sticky-actions,
  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-action-buttons,
  .contact-strip-actions {
    justify-content: flex-start;
  }

  .admin-photo-editor {
    grid-template-columns: 160px minmax(0,1fr);
  }
}

@media(max-width: 720px) {
  .auth-pill {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .admin-sticky-actions {
    position: static;
  }

  .admin-action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-photo-editor {
    grid-template-columns: 1fr;
  }

  .admin-photo-editor .profile-photo {
    max-width: 180px;
  }

  .admin-inline-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .admin-inline-field.wide-field {
    grid-column: span 1;
  }

  .admin-section-head {
    padding: 16px;
  }

  .clean-file-upload {
    width: 100%;
    display: grid;
  }

  .clean-file-upload input {
    max-width: 100%;
  }
}


/* v11 dynamic repeaters */
.repeater-note {
  margin: 0;
  padding: 16px 20px 0;
  color: var(--muted);
}

.repeater-list {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.repeater-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.repeater-row.small-row {
  grid-template-columns: 1fr;
}

.repeater-row .row-title {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.repeater-row label {
  display: grid;
  gap: 8px;
}

.repeater-row label.wide {
  grid-column: 1 / -1;
}

.repeater-row label span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.repeater-row input,
.repeater-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 13px;
  outline: 0;
}

.remove-btn {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,100,100,.35);
  background: rgba(255,100,100,.12);
  color: #ffb4b4;
  cursor: pointer;
  font-weight: 800;
}

html[data-theme="light"] .remove-btn {
  color: #a72828;
}

.admin-section-head button {
  flex: 0 0 auto;
}

@media(max-width: 720px) {
  .repeater-row {
    grid-template-columns: 1fr;
  }
}


/* v12 synchronized service detail */
.service-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.service-title-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  font-size: 38px;
  flex: 0 0 auto;
}

.service-repeater-row {
  border-color: var(--line-strong);
}

.service-repeater-row .ghost-btn {
  width: fit-content;
}

@media(max-width:720px) {
  .service-title-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 30px;
  }

  .service-title-row {
    gap: 12px;
  }
}
