:root {
  --abc-ink: #071923;
  --abc-ink-soft: #18333d;
  --abc-paper: #f5f7f6;
  --abc-surface: #ffffff;
  --abc-line: #dfe8e6;
  --abc-muted: #61737a;
  --abc-teal: #12a896;
  --abc-teal-dark: #087f72;
  --abc-amber: #ffbd3e;
  --abc-shadow: 0 24px 70px rgba(7, 25, 35, .10);
  --abc-radius: 24px;
}

html { scroll-behavior: smooth; }
body { background: var(--abc-paper); color: var(--abc-ink-soft); font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.75; }
a { color: var(--abc-teal-dark); transition: color .2s ease, transform .2s ease, box-shadow .2s ease; }
a:hover { color: var(--abc-ink); text-decoration: none; }
h1, h2, h3, h4, .site-logo, .PrincipalTitle, .LatestTitle { color: var(--abc-ink); font-family: "DM Serif Display", Georgia, serif; font-weight: 400; letter-spacing: -.02em; }
::selection { background: var(--abc-amber); color: var(--abc-ink); }

.skip-link { position: fixed; z-index: 9999; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--abc-ink); color: #fff; border-radius: 999px; }
.skip-link:focus { top: 1rem; color: #fff; }
.top-bar { background: var(--abc-ink); border: 0; color: rgba(255,255,255,.75); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.top-bar .container { min-height: 42px; display: flex; align-items: center; justify-content: space-between; }
.top-bar .social { display: flex; align-items: center; gap: .35rem; }
.top-bar .social a { align-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: #fff; display: inline-flex; height: 28px; justify-content: center; margin: 0; width: 28px; }
.top-bar .social a:hover { background: var(--abc-teal); border-color: var(--abc-teal); color: #fff; transform: translateY(-2px); }
.abc-top-note { white-space: nowrap; }

.abc-brand-row { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--abc-line); padding: 1.15rem 0; }
.abc-brand { align-items: center; color: var(--abc-ink); display: inline-flex; gap: .9rem; }
.abc-brand:hover { color: var(--abc-ink); }
.abc-brand img { height: 72px; object-fit: contain; width: 72px; }
.abc-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.abc-brand-name { font-family: "DM Serif Display", Georgia, serif; font-size: 1.75rem; }
.abc-brand-topic { color: var(--abc-muted); font-size: .7rem; font-weight: 700; letter-spacing: .13em; margin-top: .35rem; text-transform: uppercase; }
.navbar { background: rgba(255,255,255,.9) !important; border-bottom: 1px solid var(--abc-line); box-shadow: 0 10px 35px rgba(7,25,35,.05); padding: .55rem 0; position: sticky; top: 0; z-index: 1030; backdrop-filter: blur(18px); }
.navbar-nav { align-items: center; gap: .65rem; }
.navbar-light .navbar-nav .nav-link { border-radius: 999px; color: var(--abc-ink-soft); font-size: .88rem; font-weight: 800; letter-spacing: .02em; padding: .72rem 1.05rem; }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link.is-active { background: #e8f7f4; color: var(--abc-teal-dark); }
.navbar-toggler { border: 0; }
.dropdown-menu { border: 1px solid var(--abc-line); border-radius: 16px; box-shadow: var(--abc-shadow); padding: .65rem; }
.dropdown-item { border-radius: 10px; padding: .6rem .8rem; }

.abc-hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 2.5rem; }
.abc-section-kicker { color: var(--abc-teal-dark); display: block; font-size: .74rem; font-weight: 800; letter-spacing: .17em; margin-bottom: .7rem; text-transform: uppercase; }
.abc-display { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .98; margin-bottom: 1.3rem; max-width: 850px; }
.abc-lead { color: var(--abc-muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 680px; }
.abc-feature-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); grid-template-rows: repeat(2, 220px); margin-top: 2.6rem; }
.abc-feature { background-position: center; background-size: cover; border-radius: var(--abc-radius); color: #fff; display: flex; min-height: 220px; overflow: hidden; position: relative; isolation: isolate; }
.abc-feature:first-child { grid-row: 1 / 3; }
.abc-feature::before { background: linear-gradient(180deg, rgba(3,17,24,.06) 10%, rgba(3,17,24,.9) 100%); content: ""; inset: 0; position: absolute; z-index: -1; }
.abc-feature::after { border: 1px solid rgba(255,255,255,.22); border-radius: inherit; content: ""; inset: 10px; pointer-events: none; position: absolute; }
.abc-feature:hover { box-shadow: var(--abc-shadow); color: #fff; transform: translateY(-4px); }
.abc-feature-content { align-self: flex-end; padding: clamp(1.35rem, 3vw, 2.5rem); width: 100%; }
.abc-feature .category { background: var(--abc-amber); border-radius: 999px; color: var(--abc-ink); display: inline-flex; font-size: .7rem; font-weight: 800; letter-spacing: .08em; margin-bottom: .8rem; padding: .35rem .7rem; text-transform: uppercase; }
.abc-feature-title { color: #fff; font-size: clamp(1.35rem, 3vw, 2.65rem); line-height: 1.08; margin: 0; }
.abc-feature:not(:first-child) .abc-feature-title { font-size: 1.45rem; }
.abc-feature-meta { color: rgba(255,255,255,.78); font-size: .78rem; margin-top: .65rem; }

.site-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.abc-content-head { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.abc-content-head h2 { font-size: clamp(2.25rem, 4vw, 3.7rem); margin: 0; }
.abc-search { margin: 0; max-width: 430px; width: 100%; }
.abc-search .form-control { background: #fff; border: 1px solid var(--abc-line); border-radius: 999px 0 0 999px; box-shadow: none; height: 52px; padding-left: 1.25rem; }
.abc-search .btn { border-radius: 0 999px 999px 0; }
.abc-empty { background: #fff; border: 1px dashed #b8cac6; border-radius: var(--abc-radius); color: var(--abc-muted); padding: 4rem 1rem; text-align: center; }

.abc-post-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.abc-course-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.abc-post-card { background: var(--abc-surface); border: 1px solid var(--abc-line); border-radius: var(--abc-radius); display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.abc-post-card:hover { box-shadow: var(--abc-shadow); transform: translateY(-6px); }
.abc-post-image { aspect-ratio: 16/10; display: block; overflow: hidden; }
.abc-post-image img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.abc-post-card:hover .abc-post-image img { transform: scale(1.035); }
.abc-post-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.abc-post-meta { align-items: center; color: var(--abc-muted); display: flex; flex-wrap: wrap; font-size: .76rem; gap: .55rem; }
.abc-post-meta img { border-radius: 50%; height: 25px; object-fit: cover; width: 25px; }
.abc-post-title { font-size: 1.55rem; line-height: 1.17; margin: .8rem 0 .6rem; }
.abc-post-title a { color: var(--abc-ink); }
.abc-post-excerpt { color: var(--abc-muted); font-size: .92rem; margin-bottom: 1.1rem; }
.abc-read-more { font-size: .78rem; font-weight: 800; letter-spacing: .08em; margin-top: auto; text-transform: uppercase; }

.sidebar { padding-left: 2rem; }
.sidebar-box { background: #fff; border: 1px solid var(--abc-line); border-radius: var(--abc-radius); box-shadow: none; margin-bottom: 1.25rem; padding: 1.5rem; }
.sidebar-box .heading { border: 0; font-size: 1.5rem; margin: 0 0 1.25rem; padding: 0; }
.sidebar-box .heading::after { background: var(--abc-amber); border-radius: 99px; content: ""; display: block; height: 4px; margin-top: .55rem; width: 44px; }
.bio img { border: 5px solid #e8f7f4; border-radius: 50%; height: 110px; object-fit: cover; width: 110px; }
.bio-body h2 { font-size: 1.55rem; }
.post-entry-sidebar ul li { border-bottom: 1px solid var(--abc-line); margin-bottom: .9rem; padding-bottom: .9rem; }
.post-entry-sidebar ul li:last-child { border: 0; margin: 0; padding: 0; }
.post-entry-sidebar ul li a { align-items: center; display: flex; }
.post-entry-sidebar ul li a img { border-radius: 12px; height: 68px; object-fit: cover; width: 82px; }
.post-entry-sidebar h4 { font-family: "Manrope", sans-serif; font-size: .88rem; font-weight: 800; line-height: 1.35; }
.categories li { border-bottom: 1px solid var(--abc-line); padding: .45rem 0; }
.tags li a { background: #e8f7f4; border: 0; border-radius: 999px; color: var(--abc-teal-dark); font-size: .75rem; font-weight: 700; padding: .4rem .7rem; }

.btn { border-radius: 999px; font-size: .82rem; font-weight: 800; letter-spacing: .02em; padding: .72rem 1.15rem; }
.btn-primary, .SuccessButton { background: var(--abc-teal) !important; border-color: var(--abc-teal) !important; color: #fff !important; }
.btn-primary:hover, .SuccessButton:hover { background: var(--abc-teal-dark) !important; border-color: var(--abc-teal-dark) !important; box-shadow: 0 12px 28px rgba(18,168,150,.25); transform: translateY(-1px); }
.btn-secondary { background: #e8edec; border-color: #e8edec; color: var(--abc-ink); }
.btn-info { background: var(--abc-ink-soft); border-color: var(--abc-ink-soft); color: #fff; }
.form-control { border: 1px solid #cedbd8; border-radius: 12px; font-size: .95rem; min-height: 46px; }
.form-control:focus { border-color: var(--abc-teal); box-shadow: 0 0 0 .2rem rgba(18,168,150,.12); }

.abc-article-shell { margin-top: 2rem; }
.abc-article-cover { border-radius: 30px; box-shadow: var(--abc-shadow); max-height: 620px; object-fit: cover; width: 100%; }
.abc-article-title { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.02; margin: 1.1rem 0 1.4rem; }
.post-content-body { color: #263b43; font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.9; }
.post-content-body p { margin-bottom: 1.55rem; }
.post-content-body img { border-radius: 18px; height: auto; margin: 1.5rem 0; max-width: 100%; }
.post-content-body h2, .post-content-body h3 { margin: 2.2rem 0 1rem; }
.comment-list .comment-body, .comment-form-wrap { background: #fff; border: 1px solid var(--abc-line); border-radius: 18px; padding: 1.25rem; }

.abc-admin-hero { align-items: center; background: linear-gradient(125deg, var(--abc-ink) 0%, #123743 100%); border-radius: 30px; color: rgba(255,255,255,.72); display: flex; justify-content: space-between; margin-bottom: 1.2rem; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); position: relative; }
.abc-admin-hero::after { background: var(--abc-teal); border-radius: 50%; content: ""; filter: blur(4px); height: 190px; opacity: .16; position: absolute; right: -45px; top: -70px; width: 190px; }
.abc-admin-hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1; margin: 0 0 .7rem; }
.abc-admin-hero p { margin: 0; max-width: 620px; }
.abc-admin-identity { align-items: center; display: grid; flex: 0 0 auto; grid-template-columns: 54px auto; margin-left: 2rem; position: relative; z-index: 1; }
.abc-admin-identity span { align-items: center; background: var(--abc-amber); border-radius: 50%; color: var(--abc-ink); display: flex; font-family: "DM Serif Display", Georgia, serif; font-size: 1.6rem; grid-row: 1 / 3; height: 54px; justify-content: center; margin-right: .8rem; width: 54px; }
.abc-admin-identity small { color: rgba(255,255,255,.58); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.abc-admin-identity strong { color: #fff; font-size: .88rem; }
.abc-admin-nav { background: #fff; border: 1px solid var(--abc-line); border-radius: 18px; display: flex; flex-wrap: wrap; gap: .45rem; padding: .55rem; }
.abc-admin-card { background: #fff; border: 1px solid var(--abc-line); border-radius: var(--abc-radius); box-shadow: 0 12px 35px rgba(7,25,35,.05); padding: clamp(1.25rem, 3vw, 2rem); }
.abc-admin-card + .abc-admin-card, .abc-admin-card + .table-responsive, .table-responsive + .abc-admin-card { margin-top: 1.25rem; }
.abc-admin-card label, .modal-body label { color: var(--abc-ink-soft); font-size: .78rem; font-weight: 800; letter-spacing: .025em; }
.table-responsive { background: #fff; border: 1px solid var(--abc-line); border-radius: var(--abc-radius); overflow: hidden; }
.table { margin: 0; }
.table thead th { background: var(--abc-ink); border: 0; color: #fff; font-size: .72rem; letter-spacing: .08em; padding: 1rem; text-transform: uppercase; }
.table td { border-color: var(--abc-line); padding: 1rem; vertical-align: middle; }
details.abc-admin-card summary { cursor: pointer; font-size: 1.1rem; }
.abc-course-panel { position: sticky; top: 90px; }
.abc-enrolled { background: #e8f7f4; border-radius: 12px; color: var(--abc-teal-dark); font-weight: 800; margin-bottom: 1rem; padding: .8rem 1rem; }
.abc-exam-list { list-style: none; margin: 0; padding: 0; }
.abc-exam-list li { border-top: 1px solid var(--abc-line); }
.abc-exam-list li a { display: flex; flex-direction: column; padding: .9rem .2rem; }
.abc-exam-list li span { color: var(--abc-ink); font-weight: 800; }
.abc-exam-list li small { color: var(--abc-muted); }
.abc-exam-shell { max-width: 900px; }
.abc-exam-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.abc-exam-meta span { background: #e8f7f4; border-radius: 999px; color: var(--abc-teal-dark); font-size: .82rem; font-weight: 800; padding: .5rem .85rem; }
.abc-question { align-items: flex-start; background: #fff; border: 1px solid var(--abc-line); border-radius: var(--abc-radius); display: flex; gap: 1.2rem; margin-bottom: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.abc-question-number { align-items: center; background: var(--abc-ink); border-radius: 50%; color: #fff; display: flex; flex: 0 0 42px; font-weight: 800; height: 42px; justify-content: center; }
.abc-question-content { flex: 1; }
.abc-question-content h3 { font-size: 1.45rem; }
.abc-answer-list { display: grid; gap: .65rem; }
.abc-answer-list label { cursor: pointer; margin: 0; }
.abc-answer-list input { left: -9999px; position: absolute; }
.abc-answer-list span { border: 1px solid var(--abc-line); border-radius: 12px; display: block; padding: .75rem 1rem; transition: .2s ease; }
.abc-answer-list input:checked + span { background: #e8f7f4; border-color: var(--abc-teal); box-shadow: 0 0 0 2px rgba(18,168,150,.12); color: var(--abc-teal-dark); font-weight: 800; }
.modal-content { border: 0; border-radius: var(--abc-radius); box-shadow: var(--abc-shadow); overflow: hidden; }
.modal-header { background: var(--abc-ink); border: 0; color: #fff; padding: 1.25rem 1.5rem; }
.modal-title { color: #fff; font-family: "DM Serif Display", Georgia, serif; font-size: 1.55rem; }
.modal-header .close { color: #fff; text-shadow: none; }
.modal-body, .modal-footer { padding: 1.5rem; }

.site-footer { background: var(--abc-ink); color: rgba(255,255,255,.68); margin-top: 4rem; padding: 5rem 0 2rem; }
.site-footer h3 { color: #fff; font-size: 1.4rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--abc-amber); }
.site-footer img { filter: drop-shadow(0 12px 30px rgba(0,0,0,.25)); }
.pagination { gap: .35rem; }
.page-link { border: 0; border-radius: 50% !important; color: var(--abc-ink); height: 42px; line-height: 28px; text-align: center; width: 42px; }
.page-item.active .page-link { background: var(--abc-teal); border-color: var(--abc-teal); }

@media (max-width: 991.98px) {
  .abc-feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 420px 220px; }
  .abc-feature:first-child { grid-column: 1 / 3; grid-row: auto; }
  .sidebar { padding-left: 15px; padding-top: 2rem; }
}

@media (max-width: 767.98px) {
  .abc-top-note { display: none; }
  .top-bar .container { justify-content: center; }
  .abc-brand-row { padding: .85rem 0; }
  .abc-brand img { height: 58px; width: 58px; }
  .abc-brand-name { font-size: 1.45rem; }
  .abc-brand-topic { font-size: .62rem; }
  .navbar-nav { align-items: stretch; gap: .35rem; padding: .7rem 0; }
  .navbar .container { justify-content: flex-end; }
  .navbar-toggler { border-radius: 12px; padding: .55rem .7rem; }
  .abc-hero { padding-top: 2.5rem; }
  .abc-feature-grid { display: flex; flex-direction: column; }
  .abc-feature { min-height: 290px; }
  .abc-feature:not(:first-child) { min-height: 220px; }
  .abc-content-head { align-items: stretch; flex-direction: column; gap: 1.2rem; }
  .abc-post-grid { grid-template-columns: 1fr; }
  .abc-course-grid { grid-template-columns: 1fr; }
  .site-section { padding: 3.5rem 0; }
  .abc-article-title { font-size: 2.55rem; }
  .post-content-body { font-size: 1.03rem; }
  .abc-admin-hero { align-items: flex-start; flex-direction: column; }
  .abc-admin-identity { margin: 1.4rem 0 0; }
  .table td, .table th { white-space: nowrap; }
}

@media (min-width: 768px) and (max-width: 1100px) { .abc-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
