/* M. S. Pokar High School & Jr. College — blog styles */
:root {
  --msp-navy: #0b3a5b;
  --msp-navy-deep: #072a42;
  --msp-teal: #1a7a6d;
  --msp-gold: #c9a227;
  --msp-ink: #1c2430;
  --msp-muted: #5b6775;
  --msp-line: #d7dee7;
  --msp-soft: #f3f7fa;
  --msp-white: #ffffff;
  --msp-max: 1120px;
  --msp-article: 760px;
  --msp-radius: 10px;
  --msp-font: "Source Sans 3", "Segoe UI", sans-serif;
  --msp-display: "Nunito", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--msp-ink);
  font-family: var(--msp-font);
  font-size: 1.05rem;
  line-height: 1.7;
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(26, 122, 109, 0.08), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(11, 58, 91, 0.08), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--msp-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--msp-navy);
}

.msp-container {
  width: min(100% - 2rem, var(--msp-max));
  margin-inline: auto;
}

/* Header */
.msp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--msp-line);
}

.msp-topbar {
  background: var(--msp-navy-deep);
  color: #dce8f2;
  font-size: 0.86rem;
}

.msp-topbar a {
  color: #eef5fb;
  text-decoration: none;
}

.msp-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.msp-sep {
  opacity: 0.45;
  margin: 0 0.35rem;
}

.msp-top-social {
  display: flex;
  gap: 0.65rem;
}

.msp-navbar {
  background: var(--msp-white);
}

.msp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.msp-logo img {
  width: 120px;
  height: auto;
}

.msp-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--msp-line);
  border-radius: 8px;
  background: var(--msp-white);
  cursor: pointer;
  padding: 10px 9px;
}

.msp-nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--msp-navy);
}

.msp-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.msp-nav-list a {
  color: var(--msp-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
}

.msp-nav-list a.is-active,
.msp-nav-list a:hover {
  color: var(--msp-teal);
}

.msp-admit {
  background: var(--msp-gold) !important;
  color: var(--msp-navy-deep) !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 999px;
  font-weight: 800 !important;
}

/* Main article */
.msp-main {
  width: min(100% - 2rem, var(--msp-article));
  margin: 1.75rem auto 3rem;
}

.msp-article {
  background: var(--msp-white);
  border: 1px solid var(--msp-line);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  box-shadow: 0 10px 30px rgba(11, 58, 91, 0.06);
}

.msp-breadcrumb {
  font-size: 0.9rem;
  color: var(--msp-muted);
  margin-bottom: 1rem;
}

.msp-breadcrumb a {
  color: var(--msp-muted);
  text-decoration: none;
}

.msp-breadcrumb a:hover {
  color: var(--msp-teal);
}

.msp-article h1 {
  font-family: var(--msp-display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  color: var(--msp-navy);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.msp-article h2 {
  font-family: var(--msp-display);
  font-size: 1.35rem;
  color: var(--msp-navy);
  margin: 2rem 0 0.75rem;
}

.msp-article p {
  margin: 0 0 1rem;
}

.msp-article ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.msp-article li {
  margin-bottom: 0.4rem;
}

.msp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}

.msp-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--msp-line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--msp-muted);
  background: var(--msp-soft);
}

.msp-pill.is-solid {
  background: var(--msp-navy);
  border-color: var(--msp-navy);
  color: #fff;
}

.msp-answer {
  background: linear-gradient(135deg, rgba(26, 122, 109, 0.08), rgba(11, 58, 91, 0.06));
  border-left: 4px solid var(--msp-teal);
  border-radius: 0 var(--msp-radius) var(--msp-radius) 0;
  padding: 0.9rem 1rem;
  margin: 0 0 1.4rem;
}

.msp-answer p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--msp-line);
  border-radius: var(--msp-radius);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.95rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--msp-line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--msp-soft);
  color: var(--msp-navy);
  font-family: var(--msp-display);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.schema-graphic {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--msp-soft);
  border-radius: var(--msp-radius);
  border: 1px dashed #b7c6d4;
}

.schema-graphic h2 {
  margin-top: 0;
}

.schema-graphic img {
  margin-top: 0.75rem;
  border-radius: 8px;
  background: #fff;
}

.msp-faq {
  margin: 2rem 0;
}

.msp-faq details {
  border: 1px solid var(--msp-line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  background: #fcfeff;
}

.msp-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--msp-navy);
}

.msp-faq details[open] summary {
  margin-bottom: 0.5rem;
}

.msp-cta {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--msp-navy) 0%, #134e6f 55%, var(--msp-teal) 100%);
  color: #f4f8fc;
}

.msp-cta h2 {
  color: #fff;
  margin-top: 0;
}

.msp-cta p {
  color: #e7eef5;
}

.msp-btn {
  display: inline-block;
  margin: 0.25rem 0.4rem 0.25rem 0;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--msp-gold);
  color: var(--msp-navy-deep) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.msp-btn-outline {
  background: transparent;
  border: 1.5px solid #d7e6f2;
  color: #fff !important;
}

.msp-btn:hover,
.msp-btn-outline:hover {
  filter: brightness(1.05);
}

/* Footer */
.msp-footer {
  background: var(--msp-navy-deep);
  color: #d5e2ee;
  padding: 2.5rem 0 0;
}

.msp-footer a {
  color: #f0f6fb;
  text-decoration: none;
}

.msp-footer a:hover {
  text-decoration: underline;
}

.msp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
}

.msp-footer-brand {
  font-family: var(--msp-display);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.msp-footer h2 {
  font-family: var(--msp-display);
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.msp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msp-footer li {
  margin-bottom: 0.4rem;
}

.msp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0 1.1rem;
  font-size: 0.9rem;
  color: #a9bbc9;
}

/* Index list pages */
.msp-article > ul {
  columns: 1;
}

@media (max-width: 900px) {
  .msp-footer-grid {
    grid-template-columns: 1fr;
  }

  .msp-nav-toggle {
    display: inline-block;
  }

  .msp-nav {
    display: none;
    width: 100%;
  }

  .msp-nav.is-open {
    display: block;
  }

  .msp-nav-inner {
    flex-wrap: wrap;
  }

  .msp-nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
  }
}

@media (max-width: 640px) {
  .msp-top-contact {
    font-size: 0.8rem;
  }

  .msp-main {
    margin-top: 1rem;
  }

  .msp-article {
    padding: 1.1rem;
  }
}
