/* Homepage content grid. Shared gutters keep it aligned with the header. */
.home-content {
  width: calc(100% - 2 * clamp(32px, 6vw, 128px));
  margin-inline: auto;
  padding-block: 24px 12px;
}
.home-content [id], #contacts { scroll-margin-top: 24px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.glass-panel { background: rgb(255 255 255 / 80%); border: 1px solid #ffffffa6; border-radius: 22px; }
.updates { padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.updates h2 { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.15; letter-spacing: -.04em; margin: 0 0 20px; }
.news-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.news-filters button { border: 0; border-radius: 12px; padding: 10px 18px; background: #e7f0ff; color: #526e9e; font-size: 15px; transition: background .2s, color .2s; }
.news-filters button:hover { background: #d3e5ff; }
.news-filters button[aria-pressed="true"] { background: var(--blue); color: white; }
.updates-list { position: relative; display: flex; flex-direction: column; gap: 12px; flex: 1; padding-left: 16px; border-left: 1px solid #c4d8f7; }
.update-item { position: relative; }
.update-item::before { content: ""; position: absolute; left: -21px; top: 44%; width: 8px; height: 8px; border-radius: 50%; background: #88a9da; }
.update-item[hidden] { display: none; }
.update-link { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 15px; min-height: 120px; background: #e5efffcc; transition: background .2s; }
.update-item[data-category="news"] .update-link { background: #e0f3f0b3; }
.update-link:hover, .update-item[data-category="news"] .update-link:hover { background: #d7e9fc; }
.update-image { width: 110px; height: 88px; flex: 0 0 110px; border-radius: 12px; object-fit: cover; }
.update-copy { min-width: 0; flex: 1; }
.update-copy h3 { font-family: "Manrope", "Segoe UI", sans-serif; font-weight: 600; font-size: 20px; line-height: 1.35; margin: 7px 0 9px; }
.update-copy time { color: #4f6789; font-size: 14px; line-height: 1.4; }
.category { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 13px; line-height: 1.2; }
.category-news { background: #bcece3; }
.category-event { background: #bfddff; }
.category-notice { background: #ffe7bd; }
.item-arrow { color: #0875ff; font-size: 30px; padding-right: 8px; }
.update-placeholder { display: grid; place-items: center; }
.lecture-art { color: #8cceff; font: 25px monospace; background: radial-gradient(at top right, #1769a1, #14283d); }
.document-art { color: #8aaddc; background: linear-gradient(135deg, #f6faff, #e0e8f3); border: 1px solid #c7d9ef; }
.document-art svg { width: 39px; height: 47px; }
.all-news { align-self: flex-start; display: flex; gap: 20px; background: #e3eeff; border-radius: 12px; padding: 9px 22px; margin-top: 16px; font-size: 14px; }
.all-news span { color: var(--blue); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(250px, auto) minmax(360px, auto); gap: 18px; min-height: 600px; }
.feature-card { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: 21px; background: #f7fbff; box-shadow: 0 8px 30px #325d8a08; transition: box-shadow .2s, transform .2s; }
.feature-card:hover, .program-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #244c7b1c; }
.feature-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature-copy { padding: 23px 23px 76px; position: relative; }
.feature-copy h2 { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.13; letter-spacing: -.04em; margin: 0 0 14px; }
.feature-copy p { color: #48648a; line-height: 1.5; font-size: 18px; margin: 0; max-width: 36ch; }
.student-card { grid-column: 1 / -1; }
.student-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f7fbfff5, #f7fbffd9 28%, #f7fbff00 75%); }
.student-card .feature-copy { max-width: 74%; }
.student-card .feature-photo { object-position: center 58%; }
.card-arrow { position: absolute; bottom: 18px; right: 18px; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: var(--blue); background: #f3f8ff; font-size: 27px; box-shadow: 0 3px 15px #22457712; }
.feature-icon { float: right; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: var(--blue); background: #e6f1ff; line-height: 0; margin-left: 8px; }
.feature-icon svg { display: block; width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.research-card { background: linear-gradient(180deg, #f8fbff 0%, #ebf4ff 52%, #15416e 100%); }
.research-art { position: absolute; inset: auto 0 0; height: 40%; z-index: -1; background: repeating-radial-gradient(ellipse at 30% 130%, transparent 0 9px, #55bbff66 10px 11px, transparent 12px 20px); color: #a0d6ff; display: flex; justify-content: space-around; align-items: center; font-size: 36px; }
.structure-card .feature-photo { height: 62%; top: auto; object-position: 55% center; }
.structure-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f7fbff 0%, #f7fbff 37%, #f7fbffdd 53%, transparent 80%); }
.programs-section { margin-top: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 10px 0 20px; }
.section-heading h2 { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.15; letter-spacing: -.04em; margin: 0; }
.section-heading > a { color: #0064ee; font-size: 13px; flex-shrink: 0; }
.section-heading > a span { margin-left: 10px; }
.program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.program-card { overflow: hidden; border-radius: 18px; background: #ffffffde; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.program-art { position: relative; height: 120px; flex-shrink: 0; overflow: hidden; background-color: #0d2a4b; color: #9ed4ff; }
.program-number { position: absolute; right: 12px; top: 12px; border: 1px solid #d3e9ff80; border-radius: 20px; padding: 3px 9px; font-size: 12px; color: white; z-index: 1; }
.art-symbol { position: absolute; left: 20px; bottom: 18px; font: italic 38px Georgia, serif; text-shadow: 0 0 25px #41a1ff; }
.math-art { background-image: repeating-radial-gradient(ellipse at 20% 100%, transparent 0 6px, #379cff50 7px 8px, transparent 9px 13px); }
.code-art { background: linear-gradient(110deg, #102e47, #071a2e); }
.art-code { display: block; padding: 15px; color: #68c9ee; font: 12px/1.5 Consolas, monospace; }
.ai-art { background-image: radial-gradient(circle, #8ad8ff 1px, transparent 3px), linear-gradient(30deg, transparent 49%, #3f97cd50 50%, transparent 51%), linear-gradient(-30deg, transparent 49%, #3f97cd50 50%, transparent 51%); background-size: 25px 25px, 50px 43px, 50px 43px; }
.ai-art .art-symbol { font-size: 60px; bottom: 10px; }
.technology-art { background: repeating-linear-gradient(0deg, transparent 0 19px, #609ad540 20px 21px), repeating-linear-gradient(90deg, transparent 0 25px, #609ad540 26px 27px), linear-gradient(130deg, #244c73, #071c34); }
.program-copy { position: relative; padding: 20px 18px 56px; flex: 1; }
.program-copy h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 12px; }
.program-copy p { color: #4f6789; font-size: 17px; line-height: 1.5; margin: 0; }
.program-copy .card-arrow { width: 32px; height: 32px; right: 14px; bottom: 12px; font-size: 22px; background: #eaf3ff; box-shadow: none; }
.card-arrow { line-height: 0; flex-shrink: 0; }
.program-copy .arrow-icon { width: 18px; height: 18px; }
.content-demo-note { margin: 22px 0 0; color: #667f9e; font-size: 11px; }
.preview-dialog { border: 0; border-radius: 22px; padding: 40px; width: min(560px, calc(100% - 32px)); color: var(--ink); }
.preview-dialog::backdrop { background: #071b32bb; backdrop-filter: blur(5px); }
.preview-dialog h2 { font-size: 27px; margin-block: 22px 14px; }
.preview-dialog p { color: #617595; line-height: 1.6; }
.close-preview { position: absolute; top: 12px; right: 12px; color: var(--ink); background: #edf4ff; border: 0; }
@media (max-width: 600px) {
  .update-copy h3, .program-copy h3 { font-size: 18px; }
  .feature-copy p { font-size: 17px; }
}
@media (min-width: 1900px) { .feature-grid { min-height: 640px; } .update-link { min-height: 110px; } .program-art { height: 150px; } }
@media (max-width: 1150px) { .updates { padding: 18px; } .update-image { width: 80px; flex-basis: 80px; } .update-link { gap: 10px; } .news-filters { gap: 7px; } .news-filters button { padding: 9px 14px; } .feature-copy { padding: 18px 18px 72px; } .feature-icon { width: 32px; height: 32px; font-size: 27px; } .section-heading { flex-wrap: wrap; gap: 12px; } .program-grid { gap: 15px; } .program-copy { padding-inline: 14px; } }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } .feature-grid { min-height: 570px; } .update-image { width: 110px; flex-basis: 110px; } .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-content { width: calc(100% - 40px); padding-top: 16px; } .updates { padding: 18px 14px; } .news-filters { gap: 6px; } .news-filters button { padding: 9px 12px; font-size: 14px; } .update-image { width: 70px; flex-basis: 70px; height: 82px; } .update-link { gap: 10px; } .item-arrow { padding-right: 2px; font-size: 25px; } .feature-grid { gap: 14px; } .feature-copy h2 { font-size: 21px; } .feature-copy { padding: 18px 14px 72px; } .feature-icon { float: none; margin: 0 0 12px; } .student-card .feature-copy { max-width: 90%; } .programs-section { margin-top: 30px; } .program-art { height: 100px; } .art-symbol { font-size: 28px; left: 12px; } .art-code { font-size: 9px; padding: 12px; } }
@media (max-width: 380px) { .feature-grid { grid-template-columns: 1fr; grid-template-rows: minmax(240px, auto) repeat(2, minmax(340px, auto)); } .student-card { grid-column: auto; } .feature-icon { float: right; } .program-grid { grid-template-columns: 1fr; } }
