.notes-feature::after {
  content: "N";
}

.notes-library {
  background: #fff;
}

.notes-year-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.notes-year-card {
  position: relative;
  display: flex;
  min-height: 330px;
  padding: 26px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(18, 63, 49, 0.045);
  transition: 190ms ease;
}

.notes-year-card:hover,
.notes-year-card:focus-visible {
  border-color: #a9d4c4;
  transform: translateY(-6px);
  outline: none;
  box-shadow: var(--shadow-hover);
}

.notes-year-number {
  position: absolute;
  top: -22px;
  right: -8px;
  color: rgba(8, 127, 91, 0.055);
  font-size: 100px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.notes-year-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 20px;
}

.notes-year-tag {
  width: max-content;
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--primary-dark);
  background: #effaf6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.notes-year-card h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.025em;
}

.notes-year-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.notes-year-card > span:last-child {
  display: inline-flex;
  margin-top: auto;
  padding-top: 24px;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.notes-path-section {
  border-block: 1px solid var(--line);
  background: #eef5f2;
}

.notes-seo-section {
  border-top: 1px solid var(--line);
  background: var(--background);
}

.notes-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.8fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
}

.notes-seo-copy h2 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 3.7vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.notes-seo-copy p:not(.section-kicker) {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.notes-keyword-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notes-keyword-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.notes-keyword-panel ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.notes-keyword-panel li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #45574f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.notes-keyword-panel i {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
}

.notes-path-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.notes-path-grid li {
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 63, 49, 0.04);
}

.notes-path-grid li > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.notes-path-grid i {
  color: var(--primary);
  font-size: 21px;
}

.notes-path-grid h3 {
  margin: 13px 0 7px;
  font-size: 17px;
}

.notes-path-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.notes-more-section {
  background: var(--background);
}

.branch-notes-page .notes-feature::after {
  content: "R";
}

.branch-link-grid,
.branch-semester-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.branch-link-card,
.branch-semester-card {
  display: grid;
  min-height: 185px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 63, 49, 0.04);
  transition: 180ms ease;
}

.branch-link-card:hover,
.branch-link-card:focus-visible {
  border-color: #a9d4c4;
  transform: translateY(-4px);
  outline: none;
  box-shadow: var(--shadow-hover);
}

.branch-link-card i,
.branch-semester-card i {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 13px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 17px;
}

.branch-link-card h3,
.branch-semester-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.branch-link-card p,
.branch-semester-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.branch-link-card span {
  display: inline-flex;
  margin-top: auto;
  padding-top: 18px;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.branch-semester-section {
  border-block: 1px solid var(--line);
  background: #eef5f2;
}

.branch-copy-section {
  background: #fff;
}

.branch-copy-panel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.branch-copy-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 3.7vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.branch-copy-panel p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.notes-faq-section {
  background: #fff;
}

.notes-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.notes-faq-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--background);
  box-shadow: 0 8px 24px rgba(18, 63, 49, 0.04);
}

.notes-faq-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.notes-faq-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1020px) {
  .notes-year-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notes-faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .branch-link-grid,
  .branch-semester-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .notes-seo-grid {
    grid-template-columns: 1fr;
  }

  .notes-path-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .notes-year-grid {
    grid-template-columns: 1fr;
  }

  .notes-year-card {
    min-height: 280px;
  }

  .notes-path-grid li {
    min-height: 185px;
    padding: 21px;
  }

  .notes-faq-grid {
    grid-template-columns: 1fr;
  }

  .branch-link-grid,
  .branch-semester-grid {
    grid-template-columns: 1fr;
  }
}
