:root {
      --bg: #f6fbf7;
      --surface: #ffffff;
      --line: #d8eadf;
      --ink: #10201a;
      --muted: #5f7168;
      --green: #008c3a;
      --green-soft: #dff5e7;
      --radius: 22px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Inter, system-ui, sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.6;
    }

    a { color: inherit; text-decoration: none; }
    .container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

    .nav {
      position: sticky;
      top: 0;
      z-index: 40;
      border-bottom: 1px solid rgba(216, 234, 223, .82);
      background: rgba(246, 251, 247, .82);
      backdrop-filter: blur(18px);
    }

    .nav-inner {
      height: 74px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 900;
      letter-spacing: -.04em;
    }

    .brand-logo {
      width: 42px;
      height: 42px;
      object-fit: contain;
    }

    .brand-text strong { display: block; line-height: 1; font-size: 1.05rem; }
    .brand-text span { display: block; color: var(--muted); font-size: .74rem; letter-spacing: .01em; margin-top: 3px; }

    .nav-links {
      display: flex;
      gap: 24px;
      align-items: center;
      color: var(--muted);
      font-size: .94rem;
      font-weight: 700;
    }

    .nav-links a {
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }

    .nav-links a:hover,
    .nav-links a.active { color: var(--green); }

    .nav-art {
      display: block;
      width: 80px;
      height: 80px;
      object-fit: contain;
      flex: 0 0 80px;
    }

    .nav-item {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .submenu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      display: none;
      min-width: 104px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--surface);
      box-shadow: 0 14px 32px rgba(0,0,0,.08);
      z-index: 60;
    }

    .nav-item:hover .submenu,
    .nav-item:focus-within .submenu {
      display: grid;
      gap: 4px;
    }

    .submenu a {
      padding: 8px 10px;
      border-radius: 10px;
      white-space: nowrap;
    }

    .submenu a:hover {
      background: var(--green-soft);
      text-decoration: none;
    }

    header {
      position: relative;
      overflow: hidden;
      min-height: 340px;
      padding: 84px 0 48px;
      isolation: isolate;
    }

    header::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background-image: url("../images/profile/09_PI.png");
      background-position: right top;
      background-size: max(100%, 980px) auto;
      background-repeat: no-repeat;
      opacity: .72;
      -webkit-mask-image: linear-gradient(225deg, #000 0%, rgba(0,0,0,.84) 34%, rgba(0,0,0,.38) 68%, transparent 96%);
      mask-image: linear-gradient(225deg, #000 0%, rgba(0,0,0,.84) 34%, rgba(0,0,0,.38) 68%, transparent 96%);
      pointer-events: none;
    }

    header::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background:
        linear-gradient(135deg, rgba(246, 251, 247, .96) 0%, rgba(246, 251, 247, .70) 42%, rgba(246, 251, 247, .20) 100%),
        linear-gradient(180deg, rgba(246, 251, 247, 0) 0%, rgba(246, 251, 247, .22) 74%, var(--bg) 100%);
      pointer-events: none;
    }

    header .container {
      position: relative;
      z-index: 1;
    }

    h1 {
      margin: 14px 0 18px;
      font-size: clamp(3rem, 6vw, 5.5rem);
      line-height: .92;
      letter-spacing: 0;
    }

    .highlight-line {
      margin: 0 0 18px;
      color: var(--green);
      font-size: clamp(1.5rem, 3vw, 2.3rem);
      font-weight: 900;
      line-height: 1.2;
    }

    .lead {
      max-width: 760px;
      color: var(--muted);
      font-size: 1.08rem;
    }

    .course-list {
      display: grid;
      gap: 14px;
    }

    .course-card {
      display: grid;
      grid-template-columns: 92px minmax(0, 1fr) auto;
      gap: 20px;
      align-items: center;
      padding: 22px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 10px 32px rgba(0,0,0,.04);
    }

    .course-code {
      color: var(--green);
      font-weight: 900;
      line-height: 1.25;
      white-space: nowrap;
    }

    .course-card h2 {
      margin: 0 0 4px;
      font-size: 1.18rem;
      letter-spacing: 0;
      line-height: 1.25;
    }

    .lecture-meta {
      color: var(--green);
      font-weight: 900;
      margin-bottom: 0;
    }

    .term-list {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .term-list span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      background: var(--green-soft);
      color: var(--green);
      font-size: .92rem;
      font-weight: 900;
      white-space: nowrap;
    }

    .empty-lecture {
      padding: 30px;
      border: 1px dashed var(--line);
      border-radius: 18px;
      color: var(--muted);
      background: rgba(255,255,255,.56);
    }

    .footer-inner { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }

    footer {
      border-top: 1px solid var(--line);
      margin-top: 80px;
      padding: 32px 0;
      color: var(--muted);
    }

    @media (max-width: 860px) {
      header {
        min-height: auto;
        padding: 58px 0 34px;
      }

      header::before {
        background-position: right top;
        background-size: auto 520px;
        -webkit-mask-image: linear-gradient(225deg, #000 0%, rgba(0,0,0,.78) 30%, rgba(0,0,0,.34) 54%, transparent 78%);
        mask-image: linear-gradient(225deg, #000 0%, rgba(0,0,0,.78) 30%, rgba(0,0,0,.34) 54%, transparent 78%);
      }

      header::after {
        background:
          linear-gradient(135deg, rgba(246, 251, 247, .96) 0%, rgba(246, 251, 247, .72) 46%, rgba(246, 251, 247, .34) 100%),
          linear-gradient(180deg, rgba(246, 251, 247, .04) 0%, rgba(246, 251, 247, .62) 58%, var(--bg) 100%);
      }

      .nav-inner {
        height: auto;
        min-height: 74px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
      }

      .nav-links {
        gap: 14px;
        flex-wrap: wrap;
        font-size: .9rem;
      }

      .brand-text span { display: none; }
      .course-card {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
      }

      .term-list {
        justify-content: flex-start;
      }
    }
