/* Best CLAT Coaching for 2027 cluster: hero, content + sidebar grid */
/* site style.css sets overflow-x:hidden on html/body, which breaks position:sticky; clip does not */
html:has(.b27-body), .b27-body { overflow-x: clip; }
.b27-body .sem-page { background: #f4f6fb; }
.b27-body .sem-wrap { max-width: 1240px; padding: 0 16px; }

/* Hero */
.b27-hero {
  margin: 18px 0 22px;
  border-radius: 20px;
  padding: 34px 32px 30px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 90% at 95% 0%, rgba(230, 173, 56, .28), transparent 60%),
    linear-gradient(150deg, #0a225f 0%, #07163f 65%, #0c2a6e 100%);
  box-shadow: 0 14px 40px rgba(10, 34, 95, .22);
}
.b27-crumb { font-size: 13px; color: #c9d4f0; margin-bottom: 14px; }
.b27-crumb a { color: #f3d58a; text-decoration: none; font-weight: 600; }
.b27-kicker {
  display: inline-block; background: rgba(230, 173, 56, .16); color: #f3d58a;
  border: 1px solid rgba(230, 173, 56, .5); border-radius: 999px;
  padding: 5px 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.b27-hero h1 {
  color: #fff; text-transform: none; font-weight: 800; font-size: 38px; line-height: 1.18;
  margin: 14px 0 12px; max-width: 880px;
}
.b27-lede { color: #dbe4fb; font-size: 16px; line-height: 1.7; max-width: 860px; margin: 0 0 20px; }
.b27-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.b27-btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.b27-btn:hover { transform: translateY(-2px); text-decoration: none; }
.b27-btn-gold { background: #e6ad38; color: #1b1405; box-shadow: 0 6px 16px rgba(230, 173, 56, .35); }
.b27-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.b27-btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.b27-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.b27-stat {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 14px 16px;
}
.b27-stat strong { display: block; font-size: 22px; color: #f3d58a; line-height: 1.2; }
.b27-stat span { font-size: 12.5px; color: #c9d4f0; }

/* Grid: mobile = hero, form, content, rest. Desktop = content left, one sticky scrolling sidebar right */
.b27-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.b27-side { display: contents; }
.b27-form-card { order: 1; }
.b27-content { order: 2; min-width: 0; }
.b27-rest { order: 3; }
@media (min-width: 992px) {
  .b27-grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .b27-content { order: 0; grid-column: 1; grid-row: 1; }
  .b27-side {
    display: block; order: 0; grid-column: 2; grid-row: 1;
    position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto;
    padding-right: 4px; scrollbar-width: thin; scrollbar-color: #c7d0e6 transparent;
  }
  .b27-form-card { margin-bottom: 18px; }
  .b27-rest { margin: 0; }
}

/* Cards */
.b27-card, .b27-form-card {
  background: #fff; border: 1px solid #e3e8f4; border-radius: 16px;
  box-shadow: 0 4px 18px rgba(10, 34, 95, .06);
}
.b27-form-card { padding: 20px 20px 16px; border-top: 4px solid #e6ad38; }
.b27-form-card h2 { font-size: 21px; font-weight: 800; color: #0a225f; margin: 0 0 4px; text-transform: none; }
.b27-form-card p { font-size: 13px; color: #5b6784; margin: 0 0 12px; }
.b27-form-card .form-control { margin-bottom: 10px; border-radius: 9px; border: 1px solid #cfd7ea; height: 42px; font-size: 14px; }
.b27-form-card textarea.form-control { height: auto; }
.b27-form-card .btn {
  width: 100%; background: #0a225f; color: #fff; font-weight: 700; border: 0;
  border-radius: 9px; height: 44px; transition: background .2s;
}
.b27-form-card .btn:hover { background: #e6ad38; color: #1b1405; }
.b27-form-card .kn-hp { position: absolute; left: -9999px; }
.b27-call { display: flex; gap: 8px; margin-top: 10px; }
.b27-call a {
  flex: 1; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: 13px; font-weight: 700;
  text-decoration: none; background: #eef2fb; color: #0a225f;
}
.b27-call a.wa { background: #e6f7ec; color: #14783a; }

.b27-rest .b27-card { padding: 18px 18px 14px; margin-bottom: 18px; }
.b27-rest h3 {
  font-size: 15px; font-weight: 800; color: #0a225f; text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid #f1e3bd;
}
.b27-rest ul { list-style: none; padding: 0; margin: 0; }
.b27-rest li a {
  display: block; padding: 8px 4px; font-size: 14px; color: #243252; text-decoration: none;
  border-bottom: 1px dashed #e6eaf5; transition: padding .15s, color .15s;
}
.b27-rest li:last-child a { border-bottom: 0; }
.b27-rest li a:hover { color: #b8841a; padding-left: 10px; }
.b27-rest li a::before { content: "\203A"; color: #e6ad38; font-weight: 800; margin-right: 8px; }

/* Content */
.b27-toc { padding: 18px 22px; margin-bottom: 18px; }
.b27-toc summary { font-weight: 800; color: #0a225f; cursor: pointer; font-size: 16px; }
.b27-toc ol { margin: 12px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.b27-toc li { margin-bottom: 6px; font-size: 14px; break-inside: avoid; }
.b27-toc a { color: #243252; text-decoration: none; }
.b27-toc a:hover { color: #b8841a; }

.b27-direct {
  background: linear-gradient(135deg, #fff8e6, #fffdf6); border: 1px solid #f1dca4;
  border-left: 5px solid #e6ad38; border-radius: 14px; padding: 18px 22px; margin-bottom: 18px;
}
.b27-direct h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8a6a14; margin: 0 0 6px; font-weight: 800; }
.b27-direct p { margin: 0; color: #2b2410; font-size: 16px; line-height: 1.75; }

.b27-article { padding: 28px 30px; margin-bottom: 18px; }
.b27-article h2 {
  font-size: 25px; font-weight: 800; color: #0a225f; text-transform: none;
  margin: 34px 0 12px; padding-left: 14px; border-left: 5px solid #e6ad38; line-height: 1.3;
  scroll-margin-top: 80px;
}
.b27-article h2:first-child { margin-top: 0; }
.b27-article p, .b27-article li { color: #36425f; font-size: 16px; line-height: 1.85; }
.b27-article ul, .b27-article ol { padding-left: 24px; margin-bottom: 16px; }
.b27-article ul { list-style: disc outside; }
.b27-article ol { list-style: decimal outside; }
.b27-article li { margin-bottom: 8px; display: list-item; }
.b27-article li::marker { color: #e6ad38; font-weight: 700; }
.b27-article a { color: #0a4fb8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.b27-article a:hover { color: #b8841a; }
.b27-article table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15px; overflow: hidden; border-radius: 12px; }
.b27-article th { background: #0a225f; color: #fff; padding: 11px 14px; text-align: left; }
.b27-article td { padding: 10px 14px; border-bottom: 1px solid #e6eaf5; }
.b27-article tr:nth-child(even) td { background: #f7f9fe; }

.b27-faq { padding: 24px 26px; margin-bottom: 18px; }
.b27-faq h2 { font-size: 24px; font-weight: 800; color: #0a225f; margin: 0 0 14px; text-transform: none; }
.b27-faq details { border: 1px solid #e3e8f4; border-radius: 12px; margin-bottom: 10px; background: #fafbfe; }
.b27-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: #1d2a4d; list-style: none; position: relative; padding-right: 44px; }
.b27-faq summary::-webkit-details-marker { display: none; }
.b27-faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: #e6ad38; }
.b27-faq details[open] summary::after { content: "\2212"; }
.b27-faq details[open] { background: #fff; border-color: #e6ad38; }
.b27-faq details p { margin: 0; padding: 0 18px 16px; color: #36425f; line-height: 1.75; }

.b27-more { margin-bottom: 18px; }
.b27-more h2 { font-size: 22px; font-weight: 800; color: #0a225f; margin: 0 0 12px; text-transform: none; }
.b27-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b27-more a {
  display: block; background: #fff; border: 1px solid #e3e8f4; border-radius: 14px; padding: 16px 18px;
  text-decoration: none; color: #243252; font-weight: 700; font-size: 15px; line-height: 1.4;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.b27-more a small { display: block; margin-top: 6px; font-weight: 500; color: #6a7694; font-size: 13px; }
.b27-more a:hover { transform: translateY(-3px); border-color: #e6ad38; box-shadow: 0 8px 20px rgba(10, 34, 95, .1); }

.b27-band {
  border-radius: 18px; padding: 26px 28px; color: #fff; display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #0a225f, #12388f);
}
.b27-band p { margin: 0; font-size: 17px; font-weight: 600; max-width: 640px; color: #fff; }

@media (max-width: 767px) {
  .b27-hero { padding: 24px 18px 20px; border-radius: 16px; }
  .b27-hero h1 { font-size: 27px; }
  .b27-lede { font-size: 15px; }
  .b27-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b27-stat strong { font-size: 18px; }
  .b27-btn { flex: 1; text-align: center; padding: 12px 10px; }
  .b27-article { padding: 20px 16px; }
  .b27-article h2 { font-size: 21px; }
  .b27-article p, .b27-article li { font-size: 15.5px; }
  .b27-toc ol { columns: 1; }
  .b27-more-grid { grid-template-columns: minmax(0, 1fr); }
  .b27-faq { padding: 18px 14px; }
  .b27-article table { display: block; overflow-x: auto; }
}
