:root {
      --navy: #0b2340;
      --gold: #c69b3d;
      --gold-soft: #efd88d;
      --ivory: #fbf7ee;
      --paper: #fffdf8;
      --brown: #806247;
      --green: #6f9277;
      --ink: #1f2a37;
      --muted: #687485;
      --line: rgba(11, 35, 64, .12);
      --shadow: 0 24px 70px rgba(11, 35, 64, .12);
      --container: 1200px;
      --radius: 8px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: "DM Sans", "Noto Sans KR", system-ui, sans-serif;
      color: var(--ink);
      background: var(--ivory);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .35;
      background:
        radial-gradient(circle at 15% 20%, rgba(198, 155, 61, .14), transparent 28%),
        linear-gradient(90deg, rgba(111, 146, 119, .06), transparent 38%),
        repeating-radial-gradient(circle at 100% 0%, rgba(11, 35, 64, .055) 0 1px, transparent 1px 18px);
      z-index: -1;
    }
    img { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    p { margin: 0; }
    h1, h2, h3 {
      margin: 0;
      font-family: "Playfair Display", "Noto Sans KR", serif;
      line-height: 1.08;
      color: var(--navy);
      letter-spacing: 0;
    }
    h1 { font-size: clamp(3.1rem, 7vw, 6.6rem); color: #fff9ea; max-width: 900px; }
    h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
    h3 { font-size: 1.45rem; }
    .container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
    .eyebrow {
      display: inline-flex;
      gap: 10px;
      align-items: center;
      color: var(--gold);
      font-size: .78rem;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
    .section { padding: 96px 0; }
    .section-header { max-width: 760px; margin-bottom: 44px; }
    .section-header p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 13px 24px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-weight: 700;
      cursor: pointer;
      transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary { background: var(--gold); color: #17130d; }
    .btn-primary:hover { background: var(--gold-soft); }
    .btn-outline { color: #fff9ea; border-color: rgba(255, 249, 234, .48); background: rgba(255, 255, 255, .06); }
    .btn-dark { background: var(--navy); color: white; }

    .site-header {
      position: absolute;
      inset: 0 0 auto;
      z-index: 10;
      padding: 0;
      color: #fff9ea;
    }
    .nav-wrap {
      min-height: 82px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .brand { display: flex; align-items: center; gap: 14px; min-width: max-content; }
    .brand img {
      width: 50px;
      height: 50px;
      object-fit: contain;
      background: rgba(255,255,255,.94);
      border-radius: 50%;
      padding: 5px;
    }
    .brand strong { display: block; font-family: "Playfair Display", serif; font-size: 1.25rem; line-height: 1; text-transform: none; }
    .nav-links { display: flex; align-items: center; gap: 21px; font-size: .91rem; font-weight: 700; }
    .nav-links a { color: rgba(255, 249, 234, .88); }
    .nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
    .nav-apply { padding: 10px 18px; background: rgba(198, 155, 61, .96); color: #17130d !important; border-radius: 999px; }

    .hero {
      position: relative;
      min-height: 88vh;
      display: grid;
      align-items: end;
      padding: 150px 0 76px;
      overflow: hidden;
      background: #101820;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(8, 22, 38, .92), rgba(8, 22, 38, .58) 52%, rgba(8, 22, 38, .18)),
        linear-gradient(0deg, rgba(8, 22, 38, .72), transparent 38%),
        url("images/세계불교대학교 캠퍼스 사진.jpg") center / cover;
      transform: scale(1.02);
    }
    .hero-content { position: relative; max-width: 960px; }
    .hero-lead { max-width: 660px; margin-top: 24px; color: rgba(255,249,234,.78); font-size: 1.25rem; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
    .info-popover-wrap { display: inline-flex; }
    .info-popover {
      position: absolute;
      right: max(24px, calc((100vw - var(--container)) / 2));
      bottom: 34px;
      width: min(390px, calc(100vw - 48px));
      padding: 22px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: var(--radius);
      color: #fff9ea;
      background: rgba(11, 35, 64, .86);
      box-shadow: 0 24px 70px rgba(0,0,0,.24);
      backdrop-filter: blur(14px);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
      pointer-events: none;
      z-index: 3;
    }
    .info-popover strong { display: block; color: var(--gold-soft); }
    .info-popover p { margin-top: 8px; color: rgba(255,249,234,.78); font-size: .95rem; }
    .info-popover-wrap:hover .info-popover,
    .info-popover-wrap:focus-within .info-popover {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .intro-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
    .intro-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--line);
      border-left: 1px solid var(--line);
      border-right: 1px solid var(--line);
    }
    .intro-item { padding: 28px; background: var(--paper); }
    .intro-item strong { color: var(--navy); font-size: 1.05rem; }
    .intro-item p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

    .message-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: center; }
    .portrait {
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      background: var(--navy);
      aspect-ratio: 4 / 5;
    }
    .portrait img { width: 100%; height: 100%; object-fit: cover; }
    .message-copy h2 {
      font-size: clamp(1.9rem, 3vw, 3rem);
      max-width: 720px;
    }
    .quote {
      margin: 26px 0 28px;
      padding-left: 24px;
      border-left: 4px solid var(--gold);
      color: var(--navy);
      font-family: "Playfair Display", serif;
      font-size: clamp(1.25rem, 2.1vw, 1.85rem);
      line-height: 1.35;
    }
    .message-copy p { color: var(--muted); margin-top: 16px; font-size: 1rem; }
    .signature { margin-top: 26px; color: var(--navy); font-weight: 700; }
    .signature span { display: block; color: var(--muted); font-weight: 500; }
    .korea-president-grid { grid-template-columns: 1.02fr .98fr; }
    .president-secondary {
      margin-top: 76px;
      padding-top: 76px;
      border-top: 1px solid var(--line);
    }
    .message-copy .message-intro { color: var(--navy); font-size: 1.08rem; }
    .message-panel {
      margin-top: 22px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 253, 248, .82);
      overflow: hidden;
    }
    .message-panel + .message-panel { margin-top: 14px; }
    .message-panel summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 18px 20px;
      color: var(--navy);
      font-weight: 800;
      cursor: pointer;
      list-style: none;
    }
    .message-panel summary::-webkit-details-marker { display: none; }
    .message-panel summary::after {
      content: "+";
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(198, 155, 61, .14);
      color: var(--gold);
      flex: 0 0 auto;
    }
    .message-panel[open] summary::after { content: "-"; }
    .message-full {
      padding: 0 20px 22px;
      color: var(--muted);
      white-space: pre-line;
      font-size: .98rem;
      line-height: 1.85;
    }

    .values-grid, .area-grid, .services-grid, .policy-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    .card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 253, 248, .92);
      padding: 28px;
      box-shadow: 0 14px 44px rgba(11,35,64,.06);
    }
    .card .num { display: block; margin-bottom: 22px; color: var(--gold); font-weight: 800; letter-spacing: .1em; }
    .card p { margin-top: 12px; color: var(--muted); }

    .dark-band {
      background: var(--navy);
      color: rgba(255,249,234,.82);
      position: relative;
      overflow: hidden;
    }
    .dark-band h2, .dark-band h3 { color: #fff9ea; }
    .dark-band .section-header p { color: rgba(255,249,234,.7); }
    .program-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }
    .program-card {
      min-height: 280px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: var(--radius);
      padding: 28px;
      background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    }
    .program-card p { color: rgba(255,249,234,.68); margin-top: 12px; }
    .program-card strong { color: var(--gold-soft); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
    .comparison {
      margin-top: 42px;
      overflow-x: auto;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: var(--radius);
    }
    table { width: 100%; min-width: 720px; border-collapse: collapse; background: rgba(255,255,255,.04); }
    th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); }
    th { color: var(--gold-soft); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
    tr:last-child td { border-bottom: 0; }

    .image-band {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      min-height: 520px;
      background: var(--paper);
    }
    .image-band .media {
      background: url("images/42607.jpg") center / cover;
      min-height: 420px;
    }
    .image-band .content { display: flex; align-items: center; padding: 72px max(24px, calc((100vw - var(--container)) / 2)) 72px 72px; }

    .area-grid { grid-template-columns: repeat(4, 1fr); }
    .area-card { min-height: 210px; border-top: 3px solid var(--green); }

    .services-grid { grid-template-columns: repeat(5, 1fr); }
    .service-card { padding: 24px; min-height: 170px; }
    .service-card small { color: var(--green); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

    .apply-section {
      background:
        linear-gradient(90deg, rgba(11, 35, 64, .92), rgba(11, 35, 64, .68)),
        url("images/42612.jpg") center / cover;
      color: #fff9ea;
      padding: 100px 0;
    }
    .apply-box { max-width: 740px; }
    .apply-box h2 { color: #fff9ea; }
    .apply-box p { margin-top: 18px; color: rgba(255,249,234,.76); font-size: 1.12rem; }

    details.policy {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--paper);
      overflow: hidden;
    }
    details.policy summary {
      cursor: pointer;
      padding: 22px 24px;
      color: var(--navy);
      font-weight: 800;
      list-style: none;
    }
    details.policy summary::-webkit-details-marker { display: none; }
    details.policy summary::after { content: "+"; float: right; color: var(--gold); font-size: 1.4rem; line-height: 1; }
    details.policy[open] summary::after { content: "-"; }
    details.policy p { padding: 0 24px 24px; color: var(--muted); }

    .contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; }
    .contact-list { display: grid; gap: 18px; margin-top: 28px; }
    .contact-list strong { color: var(--navy); display: block; }
    .contact-list span, .contact-list a { color: var(--muted); }
    form { display: grid; gap: 14px; }
    input, textarea, select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 15px 16px;
      background: white;
      color: var(--ink);
      font: inherit;
    }
    textarea { min-height: 138px; resize: vertical; }
    .map {
      margin-top: 18px;
      min-height: 230px;
      border: 1px dashed rgba(11,35,64,.28);
      border-radius: var(--radius);
      display: grid;
      place-items: center;
      color: var(--muted);
      background:
        linear-gradient(135deg, rgba(111,146,119,.18), rgba(198,155,61,.14)),
        repeating-linear-gradient(45deg, rgba(11,35,64,.035) 0 1px, transparent 1px 14px);
      text-align: center;
      padding: 24px;
    }
    .map.has-embed {
      display: block;
      padding: 0;
      overflow: hidden;
      border-style: solid;
      background: var(--paper);
    }
    .map iframe {
      width: 100%;
      min-height: 230px;
      border: 0;
      border-radius: var(--radius);
      display: block;
    }

    footer {
      background: #111b27;
      color: rgba(255,249,234,.76);
      padding: 64px 0 36px;
    }
    .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
    .footer-brand { color: #fff9ea; font-family: "Playfair Display", serif; font-size: 1.5rem; }
    .footer-grid h4 { margin: 0 0 14px; color: #fff9ea; }
    .footer-grid a, .footer-grid p { color: rgba(255,249,234,.7); }
    .footer-links { display: grid; gap: 8px; }
    .footer-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .92rem; }
    .back-to-top {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.35);
      border-radius: 50%;
      background: var(--navy);
      color: #fff9ea;
      box-shadow: 0 16px 40px rgba(11,35,64,.24);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
      z-index: 40;
    }
    .back-to-top.is-visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .back-to-top:hover { background: var(--gold); color: #17130d; }

    @media (max-width: 1020px) {
      .nav-links { display: none; }
      .message-grid, .korea-president-grid, .image-band, .contact-layout { grid-template-columns: 1fr; }
      .image-band .content { padding: 64px 24px; }
      .program-grid, .area-grid { grid-template-columns: repeat(2, 1fr); }
      .services-grid { grid-template-columns: repeat(2, 1fr); }
      .values-grid, .policy-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 680px) {
      .container { width: min(100% - 32px, var(--container)); }
      .brand img { width: 44px; height: 44px; }
      .brand strong { font-size: 1rem; }
      .hero { min-height: 86vh; padding: 120px 0 56px; }
      .hero-lead { font-size: 1.05rem; }
      .info-popover { right: 16px; bottom: 24px; transform: translateY(8px); }
      .info-popover-wrap:hover .info-popover,
      .info-popover-wrap:focus-within .info-popover { transform: translateY(0); }
      .intro-grid, .program-grid, .area-grid, .services-grid, .values-grid, .policy-grid, .footer-grid { grid-template-columns: 1fr; }
      .section { padding: 72px 0; }
      .president-secondary { margin-top: 48px; padding-top: 48px; }
      .card, .program-card { padding: 22px; }
      .footer-bottom { display: block; }
    }
