/* Inner pages (articles, pages, categories, 404) — builds on home.css tokens */

.ihero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(700px 300px at 85% 0%, rgba(47, 116, 245, .45), transparent 60%), linear-gradient(115deg, #0a2569 0%, #123a95 60%, #1b4fb8 100%); }
.ihero::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .06); }
.ihero .container { position: relative; z-index: 1; padding-top: 30px; padding-bottom: 34px; }
.ihero h1 { margin-top: 10px; color: #fff; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); font-weight: 700; line-height: 1.3; max-width: 30em; }
.ihero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; color: #dbe5ff; font-size: .95rem; }
.ihero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ihero__meta .icon { color: var(--orange-500); }
.ihero__lead { margin-top: 10px; color: #dbe5ff; max-width: 46em; }
.ihero--center { text-align: center; }
.ihero--center h1, .ihero--center .ihero__lead { margin-left: auto; margin-right: auto; }
.ihero__code { font-family: "Prompt", sans-serif; font-weight: 800; font-size: clamp(3.5rem, 2rem + 6vw, 6rem); line-height: 1; color: var(--orange-500); }
.chip { display: inline-flex; padding: 3px 14px; border-radius: 999px; background: linear-gradient(135deg, #ff8a2b, var(--orange-600)); color: #fff; font-family: var(--font-head); font-size: .85rem; font-weight: 500; }
.chip:hover { color: #fff; filter: brightness(1.06); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .88rem; color: #b9c8ee; }
.crumbs a { color: #dbe5ff; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-current] { color: #fff; }

.ilayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 34px; padding-bottom: 40px; }

/* Article body */
.prose { min-width: 0; font-size: 1.06rem; line-height: 1.85; color: var(--ink-700); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--navy-800); line-height: 1.4; margin-top: 1.6em; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.1rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li > ul, .prose li > ol { margin-top: .35em; }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-600); }
.prose strong, .prose b { color: var(--ink-900); }
.prose img { display: inline-block; max-width: 100%; height: auto; border-radius: 12px; margin: .4em 0; }
.prose blockquote { padding: 14px 20px; border-left: 4px solid var(--orange-500); background: var(--blue-50); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .95rem; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--blue-50); color: var(--navy-800); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.prose__hero { margin: 0 0 1.4em; }
.prose__hero { text-align: center; }
.prose__hero img { width: auto; max-width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 0; }

/* Sidebar */
.iside { position: sticky; top: 96px; display: grid; gap: 16px; }
.iside__cta { display: grid; gap: 10px; padding: 22px 20px; border-radius: var(--radius-lg); color: #dbe5ff; background: radial-gradient(circle at 90% 100%, rgba(47, 116, 245, .45), transparent 55%), linear-gradient(160deg, #12388a, var(--navy-950)); box-shadow: var(--shadow); }
.iside__cta h2 { color: #fff; font-size: 1.25rem; font-weight: 700; padding-left: 12px; border-left: 4px solid var(--orange-500); }
.iside__cta p { font-size: .95rem; }
.iside__cta .btn { width: 100%; }
.iside__tel { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.iside__tel:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.iside__tel .icon { color: var(--orange-500); }
.iside__box { padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.iside__box h2 { font-size: 1.05rem; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; padding-left: 12px; border-left: 4px solid var(--orange-500); }
.iside__box li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); color: var(--ink-700); font-size: .95rem; }
.iside__box li:last-child a { border-bottom: 0; }
.iside__box li a:hover, .iside__box li a[aria-current] { color: var(--orange-600); }
.iside__box li a span { min-width: 28px; padding: 0 8px; border-radius: 999px; background: var(--blue-50); color: var(--navy-800); font-size: .8rem; text-align: center; }

/* Post cards */
.irelated { background: linear-gradient(180deg, #f3f7ff, #fff); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pgrid--4 { grid-template-columns: repeat(4, 1fr); }
.irelated .sec-title { margin-bottom: 20px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e6edf8; border-radius: var(--radius-lg); box-shadow: 0 6px 18px rgba(13, 42, 107, .07); color: var(--ink-900); transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink-900); }
.pcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__noimg { display: grid; place-items: center; height: 100%; font-size: 2.4rem; color: #b9c8ee; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.pcard__body strong { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.4; color: var(--navy-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard:hover .pcard__body strong { color: var(--blue-600); }
.pcard__ex { font-size: .9rem; color: var(--ink-500); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__date { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--ink-500); }
.pcard__date .icon { color: var(--orange-500); }
.empty { padding: 40px; text-align: center; color: var(--ink-500); background: var(--blue-50); border-radius: var(--radius-lg); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--font-head); color: var(--navy-800); }
.pager a:hover { border-color: var(--orange-500); color: var(--orange-600); }
.pager span[aria-current] { background: linear-gradient(135deg, #ff8a2b, var(--orange-600)); border-color: transparent; color: #fff; }

@media (max-width: 1100px) {
  .ilayout { grid-template-columns: 1fr; }
  .iside { position: static; grid-template-columns: 1fr 1fr; }
  .pgrid, .pgrid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .iside { grid-template-columns: 1fr; }
  .pgrid, .pgrid--4 { grid-template-columns: 1fr; }
  .prose { font-size: 1rem; }
}

/* Service-area pages */
.area { display: grid; gap: 34px; min-width: 0; }
.area__h { font-size: 1.35rem; font-weight: 700; color: var(--navy-800); padding-left: 14px; border-left: 4px solid var(--orange-500); margin-bottom: 16px; }
.area__svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.area__card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; padding: 18px; background: #fff; border: 1px solid #e6edf8; border-radius: var(--radius-lg); box-shadow: 0 6px 18px rgba(13, 42, 107, .07); color: var(--ink-700); transition: transform .2s, box-shadow .2s; }
.area__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink-700); }
.area__ic { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.35rem; }
.area__card strong { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); line-height: 1.35; }
.area__card span:last-child { font-size: .9rem; line-height: 1.55; color: var(--ink-500); }
.area__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area__chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: var(--navy-800); font-family: var(--font-head); font-size: .92rem; }
.area__chips .icon { color: var(--orange-500); }
.area__chips .more { background: transparent; border: 1px dashed var(--line); color: var(--ink-500); }
.area__note { display: flex; gap: 8px; margin-top: 12px; color: var(--ink-500); font-size: .92rem; }
.area__note .icon { color: var(--blue-600); margin-top: 4px; }
.area__list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.area__list .icon { color: var(--green-500); margin-top: 4px; }
.area__courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.area__courses a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--navy-800); font-family: var(--font-head); font-weight: 500; }
.area__courses a:hover { border-color: var(--orange-500); color: var(--orange-600); }
.area__courses small { color: var(--ink-500); font-weight: 400; white-space: nowrap; }
.area__faq { display: grid; gap: 10px; }
.area__faq details { padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.area__faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--navy-800); }
.area__faq details[open] summary { color: var(--orange-600); }
.area__faq p { margin-top: 8px; color: var(--ink-700); line-height: 1.7; }
.area__others { display: flex; flex-wrap: wrap; gap: 8px; }
.area__others a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); font-size: .92rem; }
.area__others a:hover { border-color: var(--orange-500); color: var(--orange-600); }
.iside__addr { display: flex; gap: 8px; font-size: .92rem; color: var(--ink-700); line-height: 1.55; margin-top: 6px; }
.iside__addr .icon { color: var(--orange-500); margin-top: 4px; }

.hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hub__card { position: relative; display: grid; gap: 4px; padding: 20px; background: #fff; border: 1px solid #e6edf8; border-radius: var(--radius-lg); box-shadow: 0 6px 18px rgba(13, 42, 107, .07); color: var(--ink-500); font-size: .88rem; transition: transform .2s, box-shadow .2s; }
.hub__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink-500); }
.hub__card strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy-800); }
.hub__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); font-size: 1.2rem; margin-bottom: 6px; }
.hub__card.is-home { border-color: #ffc59a; background: linear-gradient(140deg, #fff7ef, #fff); }
.hub__card.is-home .hub__ic { background: linear-gradient(135deg, #ff8a2b, var(--orange-600)); color: #fff; }
.hub__card em { position: absolute; top: 14px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--orange-500); color: #fff; font-style: normal; font-family: var(--font-head); font-size: .75rem; }
@media (max-width: 1100px) { .hub { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .area__svc, .area__courses { grid-template-columns: 1fr; } .hub { grid-template-columns: 1fr 1fr; } }
