
html{
  scroll-behavior:smooth;
}
.hero.container{
  width:100%;
  max-width:none;
  margin:0;
}
.hero{
  display:grid;
  gap:22px;
  padding-top:0;
  padding-bottom:64px;
}
.hero-slider{
  width:100%;
  border-radius:0;
  box-shadow:none;
}
.slide{
  aspect-ratio:auto;
  height:clamp(360px, calc(100vh - var(--header-h) - 220px), 680px);
}
.home-portal{
  display:grid;
  gap:34px;
  width:100%;
}
.portal-shortcuts{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  width:min(calc(100% - 40px),var(--max));
  margin:0 auto;
}
.portal-tile{
  min-height:148px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  box-shadow:var(--shadow);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.portal-tile:hover{
  transform:translateY(-3px);
  border-color:#cfe0ff;
  background:#f8fbff;
}
.portal-tile strong{
  font-size:26px;
  line-height:1.2;
  letter-spacing:0;
}
.portal-icon-image{
  width:84px;
  aspect-ratio:4 / 3;
  height:auto;
  display:grid;
  place-items:center;
}
.portal-icon-image img{
  width:72px;
  height:54px;
  object-fit:contain;
  display:block;
  transition:transform .72s cubic-bezier(.22,1,.36,1);
  transform-origin:center center;
}
.portal-tile:hover .portal-icon-image img{
  transform:rotate(360deg);
}

.home-feed-layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:26px;
  align-items:start;
}
.home-feed-layout-spaced{
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
  width:100%;
  margin-top:62px;
  padding:70px clamp(20px,4vw,58px) 0;
  scroll-margin-top:110px;
}
.home-feed-layout-spaced .feed-heading{
  display:grid;
  grid-template-columns:max-content minmax(260px,1fr) auto;
  gap:28px;
  align-items:end;
  padding-top:0;
}
.home-feed-layout-spaced .feed-title{
  margin:0;
  font-size:72px;
}
.home-feed-layout-spaced .feed-sub{
  max-width:620px;
  margin:0;
}
.feed-heading{
  padding-top:20px;
}
.feed-title{
  margin:0 0 20px;
  font-size:62px;
  line-height:1;
  font-weight:800;
  letter-spacing:0;
  color:#123f89;
}
.feed-sub{
  margin:0 0 28px;
  color:var(--muted);
  line-height:1.7;
}
.feed-more{
  display:inline-flex;
  align-items:center;
  gap:16px;
  font-weight:700;
}
.feed-more-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:999px;
  background:#0f4f8f;
  color:#fff;
  font-size:26px;
  line-height:1;
  box-shadow:0 10px 22px rgba(15,79,143,.22);
  transition:transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.feed-more:hover .feed-more-arrow,
.feed-more:focus-visible .feed-more-arrow{
  background:#1769b3;
  transform:translateY(-3px);
  box-shadow:0 16px 30px rgba(15,79,143,.3);
}
.feed-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:0;
}
.gallery-feed-cards{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:22px;
}
.feed-card{
  --accent:#b3042b;
  --accent-rgb:179,4,43;
  --hover-color-shift:-36%;
  --hover-image-shift:34%;
  --content-hover-top:11%;
  --action-hover-top:52%;
  position:relative;
  display:block;
  aspect-ratio:1 / 1;
  min-height:0;
  padding:0;
  overflow:hidden;
  border-radius:0;
  color:#fff;
  isolation:isolate;
  transform:translateZ(0);
  background:var(--accent);
  box-shadow:none;
}
.feed-card::before{
  content:"";
  position:absolute;
  pointer-events:none;
  inset:0;
  z-index:2;
  background:var(--accent);
  opacity:.76;
  transition:transform .58s cubic-bezier(.22,1,.36,1), opacity .58s ease;
}
.feed-card::after{
  display:none;
}
.feed-card-red{
  --accent:#ad0029;
  --accent-rgb:173,0,41;
}
.feed-card-blue{
  --accent:#07599c;
  --accent-rgb:7,89,156;
  --hover-color-shift:36%;
  --hover-image-shift:-34%;
  --content-hover-top:43%;
  --action-hover-top:83%;
}
.feed-card-yellow{
  --accent:#d89b09;
  --accent-rgb:216,155,9;
}
.feed-card-media{
  position:absolute;
  inset:-8%;
  z-index:1;
  overflow:hidden;
  background:#111827;
  transition:transform .58s cubic-bezier(.22,1,.36,1);
}
.feed-card-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(var(--accent-rgb),.14) 0%,rgba(0,0,0,.18) 48%,rgba(0,0,0,.42) 100%);
  transition:opacity .46s ease;
}
.feed-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:blur(2.4px) saturate(.86) contrast(.94);
  transform:scale(1.06);
  transition:transform .64s cubic-bezier(.22,1,.36,1), filter .54s ease;
}
.feed-card-frame{
  position:absolute;
  inset:28px;
  z-index:4;
  pointer-events:none;
}
.feed-card-frame::before,
.feed-card-frame::after{
  content:"";
  position:absolute;
  width:0;
  height:0;
  opacity:0;
  transition:width .34s cubic-bezier(.22,1,.36,1), height .34s cubic-bezier(.22,1,.36,1), opacity 0s linear;
}
.feed-card-frame::before{
  top:0;
  left:0;
  border-top:1px solid rgba(255,255,255,.82);
  border-left:1px solid rgba(255,255,255,.82);
}
.feed-card-frame::after{
  right:0;
  bottom:0;
  border-right:1px solid rgba(255,255,255,.82);
  border-bottom:1px solid rgba(255,255,255,.82);
}
.feed-card-content{
  position:absolute;
  left:clamp(22px,3vw,42px);
  right:clamp(22px,3vw,42px);
  top:52%;
  z-index:5;
  display:flex;
  flex-direction:column;
  gap:12px;
  color:#fff;
  pointer-events:none;
  transform:translateY(-8%);
  transition:top .58s cubic-bezier(.22,1,.36,1), transform .58s cubic-bezier(.22,1,.36,1);
}
.feed-card .feed-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.feed-card .feed-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  color:#fff;
  font-size:14px;
  font-weight:800;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
}
.feed-card .feed-date{
  color:rgba(255,255,255,.86);
  font-size:14px;
  font-weight:700;
}
.feed-card .feed-card-title{
  margin:0;
  color:#fff;
  font-size:30px;
  line-height:1.18;
  font-weight:850;
  letter-spacing:0;
  word-break:keep-all;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-shadow:0 2px 16px rgba(0,0,0,.22);
}
.feed-card-desc{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:rgba(255,255,255,.94);
  font-size:16px;
  line-height:1.55;
  font-weight:650;
  text-shadow:0 2px 14px rgba(0,0,0,.24);
}
.feed-card-action{
  position:absolute;
  left:clamp(22px,3vw,42px);
  right:clamp(22px,3vw,42px);
  top:var(--action-hover-top);
  z-index:5;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:3px;
  background:#fff;
  color:var(--accent);
  font-size:16px;
  font-weight:800;
  opacity:0;
  transform:translateY(18px);
  pointer-events:none;
  transition:opacity .34s ease .08s, transform .48s cubic-bezier(.22,1,.36,1);
}
.feed-card:hover,
.feed-card:focus-visible{
  transform:none;
  box-shadow:none;
}
.feed-card:hover::before,
.feed-card:focus-visible::before{
  opacity:1;
  transform:translateY(var(--hover-color-shift));
}
.feed-card:hover .feed-card-frame::before,
.feed-card:focus-visible .feed-card-frame::before,
.feed-card:hover .feed-card-frame::after,
.feed-card:focus-visible .feed-card-frame::after{
  opacity:1;
  width:100%;
  height:100%;
}
.feed-card:hover .feed-card-media,
.feed-card:focus-visible .feed-card-media{
  transform:translateY(var(--hover-image-shift));
}
.feed-card:hover .feed-card-media::after,
.feed-card:focus-visible .feed-card-media::after{
  opacity:.18;
}
.feed-card:hover .feed-card-media img,
.feed-card:focus-visible .feed-card-media img{
  transform:scale(1);
  filter:blur(0) saturate(1.08) contrast(1.03);
}
.feed-card:hover .feed-card-content,
.feed-card:focus-visible .feed-card-content{
  top:var(--content-hover-top);
  transform:translateY(0);
}
.feed-card:hover .feed-card-desc,
.feed-card:focus-visible .feed-card-desc{
  -webkit-line-clamp:2;
}
.feed-card:hover .feed-card-action,
.feed-card:focus-visible .feed-card-action{
  opacity:1;
  transform:translateY(0);
}
.gallery-feed-card{
  display:flex;
  min-height:240px;
  padding:26px 26px 24px;
  border-radius:24px;
  background:#f5f7fb;
  color:#123f89;
  box-shadow:none;
  transition:background-color .18s ease, color .18s ease, transform .18s ease;
}
.gallery-feed-card:hover{
  background:#1146a3;
  color:#fff;
  transform:translateY(-3px);
}
.feed-card-inner{
  display:flex;
  flex-direction:column;
  width:100%;
  gap:20px;
}
.feed-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.gallery-feed-card .feed-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid #b8c9e6;
  color:inherit;
  font-size:14px;
  font-weight:700;
  background:rgba(255,255,255,.38);
}
.gallery-feed-card:hover .feed-badge{
  border-color:rgba(255,255,255,.45);
  background:rgba(255,255,255,.12);
}
.gallery-feed-card .feed-date{
  font-size:14px;
  color:inherit;
  opacity:.9;
}
.gallery-feed-card .feed-card-title{
  margin:0;
  font-size:22px;
  line-height:1.5;
  letter-spacing:0;
  word-break:keep-all;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.feed-empty{
  grid-column:2 / -1;
  padding:40px;
  border-radius:20px;
  border:1px dashed var(--line);
  background:#fff;
  color:var(--muted);
  text-align:center;
}
.home-feed-layout-spaced .feed-empty{
  grid-column:auto;
}

/* academic section */
.home-academic-band{
  margin-top:34px;
  padding:38px 34px 28px;
  border-radius:36px;
  background:#f5f7fb;
  display:grid;
  grid-template-columns:minmax(0,1fr) 380px;
  gap:28px;
  align-items:start;
  scroll-margin-top:110px;
}
.academic-left{
  min-width:0;
}
.academic-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:24px;
}
.academic-head h2{
  margin:0;
  font-size:56px;
  line-height:1;
  letter-spacing:-.05em;
  color:#111827;
}
.academic-navs{
  display:flex;
  align-items:center;
  gap:12px;
}
.academic-circle-btn{
  width:56px;
  height:56px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  text-decoration:none;
  cursor:pointer;
  border:1px solid #7f8ea8;
  background:#fff;
  color:#6b778c;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease;
}
.academic-circle-btn:hover,
.academic-circle-btn:focus-visible{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(15,23,42,.16);
}
.academic-prev{
  background:#7f8ea8;
  color:#fff;
  border-color:#7f8ea8;
}
.academic-link{
  border:0;
  color:#fff;
  background:linear-gradient(135deg, #1248c9 0%, #0a8fd8 100%);
  box-shadow:0 10px 22px rgba(18,72,201,.24);
}
.academic-link:hover,
.academic-link:focus-visible{
  background:linear-gradient(135deg, #0f3da8 0%, #0878b8 100%);
  box-shadow:0 16px 30px rgba(18,72,201,.32);
}
.academic-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.academic-card{
  min-height:276px;
  padding:40px 40px 32px;
  border-radius:28px;
  background:#fff;
  box-shadow:0 18px 40px rgba(15,23,42,.08);
  display:flex;
  flex-direction:column;
  gap:18px;
  transition:transform .22s ease, box-shadow .22s ease;
}
.academic-card:hover{
  transform:translateY(-8px);
  box-shadow:0 24px 48px rgba(15,23,42,.14);
}
.academic-card-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:40px;
  padding:0 18px;
  border-radius:999px;
  background:#1248c9;
  color:#fff;
  font-size:20px;
  font-weight:700;
}
.academic-card-period{
  margin:0;
  font-size:34px;
  line-height:1.1;
  letter-spacing:-.04em;
  color:#111827;
  font-weight:800;
}
.academic-card-title{
  margin:0;
  font-size:18px;
  line-height:1.6;
  color:#4b5563;
  word-break:keep-all;
}
.academic-calendar-box{
  background:#fff;
  border:1px solid #dde5f2;
  border-radius:44px;
  padding:48px 42px 40px;
  min-height:462px;
}
.academic-calendar-box h3{
  margin:0 0 34px;
  text-align:center;
  font-size:30px;
  letter-spacing:-.04em;
  color:#111827;
}
.academic-weekdays,
.academic-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
  text-align:center;
}
.academic-weekdays{
  margin-bottom:10px;
  font-size:14px;
  font-weight:800;
  color:#123f89;
}
.academic-weekdays .sun{color:#df1738}
.academic-weekdays .sat{color:#0037c5}
.academic-day{
  min-height:42px;
  border:0;
  background:transparent;
  border-radius:14px;
  cursor:pointer;
  position:relative;
  font-size:16px;
  color:#111827;
}
.academic-day.is-muted{opacity:.32}
.academic-day.is-sun:not(.is-selected){color:#df1738}
.academic-day.is-sat:not(.is-selected){color:#0037c5}
.academic-day.is-selected{
  background:#1248c9;
  color:#fff !important;
}
.academic-day-dots{
  display:flex;
  justify-content:center;
  gap:4px;
  margin-top:2px;
  min-height:8px;
}
.academic-day-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#1248c9;
}
.academic-day.is-selected .academic-day-dot{
  background:#fff;
}
.academic-empty{
  grid-column:1 / -1;
  margin-top:4px;
  background:#fff;
}

.home-gallery-band{
  position:relative;
  margin-top:26px;
  padding:76px 0 56px;
  background:#e8f0ff;
  border-top:1px solid rgba(18,63,137,.08);
  scroll-margin-top:110px;
}
.home-gallery-band::before{
  display:none;
}
.gallery-feed-layout{
  align-items:start;
}
@media (min-width: 961px){
  .home-gallery-band > .container{
    width:100%;
    max-width:none;
  }
  .gallery-feed-layout{
    grid-template-columns:1fr;
    gap:30px;
    padding:0 clamp(20px,4vw,58px);
  }
  .gallery-feed-layout .feed-heading{
    display:grid;
    grid-template-columns:max-content minmax(260px,1fr) auto;
    gap:28px;
    align-items:end;
    padding-top:0;
  }
  .gallery-feed-layout .feed-title{
    margin:0;
    font-size:72px;
  }
  .gallery-feed-layout .feed-sub{
    max-width:620px;
    margin:0;
  }
}
.gallery-feed-heading .feed-title{
  color:#0f3e7a;
}
.gallery-feed-card{
  background:rgba(255,255,255,.68);
  backdrop-filter:blur(2px);
}
.gallery-feed-card:hover{
  background:#1146a3;
}
.gallery-card-thumb{
  width:100%;
  aspect-ratio:4 / 3;
  border-radius:18px;
  overflow:hidden;
  background:#dbe7fb;
}
.gallery-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.gallery-card-body{
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
}
.gallery-feed-card .feed-card-title{
  -webkit-line-clamp:3;
}
.gallery-feed-empty{
  background:rgba(255,255,255,.78);
}

@media (max-width: 1400px){
  .home-academic-band{
    grid-template-columns:1fr;
  }
  .academic-calendar-panel{
    max-width:420px;
    margin-left:auto;
  }
}
@media (max-width: 1200px){
  .portal-shortcuts{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .home-feed-layout{
    grid-template-columns:1fr;
  }
  .feed-empty{
    grid-column:auto;
  }
  .home-feed-layout-spaced .feed-heading{
    grid-template-columns:1fr auto;
  }
  .home-feed-layout-spaced .feed-title{
    font-size:56px;
  }
  .home-feed-layout-spaced .feed-sub{
    grid-column:1 / -1;
    max-width:760px;
  }
}
@media (max-width: 960px){
  .feed-cards,
  .gallery-feed-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .feed-title{
    font-size:48px;
  }
  .portal-tile strong{
    font-size:22px;
  }
  .feed-card .feed-card-title{
    font-size:26px;
  }
  .academic-head{
    flex-direction:column;
    align-items:flex-start;
  }
}
@media (max-width: 720px){
  .feed-cards,
  .gallery-feed-cards,
  .academic-cards{
    grid-template-columns:1fr;
  }
  .hero{
    gap:16px;
    padding-bottom:46px;
  }
  .slide{
    height:clamp(300px, calc(100vh - var(--header-h) - 238px), 500px);
  }
  .portal-shortcuts{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    width:min(calc(100% - 28px),var(--max));
  }
  .portal-tile{
    min-height:76px;
    flex-direction:row;
    justify-content:flex-start;
    gap:10px;
    padding:12px 13px;
    border-radius:16px;
    text-align:left;
  }
  .portal-tile strong{
    font-size:15px;
    line-height:1.25;
    letter-spacing:0;
  }
  .portal-icon-image{
    width:42px;
    flex:0 0 42px;
  }
  .portal-icon-image img{
    width:38px;
    height:30px;
  }
  .home-feed-layout-spaced{
    gap:22px;
    margin-top:42px;
    padding:48px 14px 0;
  }
  .home-feed-layout-spaced .feed-heading{
    grid-template-columns:1fr;
    gap:14px;
  }
  .home-feed-layout-spaced .feed-title{
    font-size:40px;
  }
  .home-feed-layout-spaced .feed-sub{
    grid-column:auto;
  }
  .feed-title{
    font-size:40px;
  }
  .gallery-feed-card{
    min-height:200px;
    padding:22px 20px;
  }
  .feed-card{
    padding:0;
    --hover-color-shift:36%;
    --hover-image-shift:-34%;
    --content-hover-top:45%;
    --action-hover-top:74%;
  }
  .feed-card-blue{
    --content-hover-top:45%;
    --action-hover-top:74%;
  }
  .feed-card,
  .feed-card::before,
  .feed-card-media,
  .feed-card-media::after,
  .feed-card-media img,
  .feed-card-content,
  .feed-card-action,
  .feed-card-frame::before,
  .feed-card-frame::after{
    transition:none;
  }
  .feed-card::before{
    opacity:1;
    transform:translateY(var(--hover-color-shift));
  }
  .feed-card-media{
    transform:translateY(var(--hover-image-shift));
  }
  .feed-card-media::after{
    opacity:.18;
  }
  .feed-card-media img{
    transform:scale(1);
    filter:blur(0) saturate(1.08) contrast(1.03);
  }
  .feed-card-frame{
    inset:22px;
  }
  .feed-card-frame::before,
  .feed-card-frame::after{
    opacity:1;
    width:100%;
    height:100%;
  }
  .feed-card-content{
    left:38px;
    right:38px;
    top:var(--content-hover-top);
    transform:translateY(0);
    gap:10px;
  }
  .feed-card-title{
    font-size:20px;
  }
  .feed-card .feed-card-title{
    font-size:22px;
    -webkit-line-clamp:1;
  }
  .feed-card-desc{
    font-size:14px;
    -webkit-line-clamp:1;
  }
  .feed-card-action{
    left:38px;
    right:38px;
    top:var(--action-hover-top);
    height:42px;
    font-size:14px;
    opacity:1;
    transform:translateY(0);
  }
  .home-academic-band{
    padding:26px 18px 20px;
    border-radius:26px;
  }
  .academic-head h2{
    font-size:42px;
  }
  .academic-navs{
    gap:10px;
  }
  .academic-circle-btn{
    width:48px;
    height:48px;
    font-size:24px;
  }
  .academic-card{
    min-height:220px;
    padding:28px 24px;
  }
  .academic-card-period{
    font-size:28px;
  }
  .academic-calendar-box{
    min-height:auto;
    padding:30px 22px 24px;
    border-radius:30px;
  }
  .home-gallery-band{
    padding:64px 0 42px;
  }
}
