/* UniWeb home compatibility layer
   Replace: wwwroot/css/hilla-home.css
   Keep this file after eduka-home.css in Index.cshtml. */

.hl-home .bi{line-height:1}.hl-home img{max-width:100%;display:block}.hl-home [asp-controller]{text-decoration:none}.hl-home .eku-btn i,.hl-home .eku-readmore i,.hl-home .eku-link-all i{font-size:1rem}.hl-home[dir="rtl"] .eku-post-meta i,.hl-home[dir="rtl"] .eku-event-meta i{margin-left:4px}.hl-home[dir="ltr"] .eku-post-meta i,.hl-home[dir="ltr"] .eku-event-meta i{margin-right:4px}

/* Better fallback placeholders */
.hl-home .ph,.hl-home .hl-ph{background:linear-gradient(135deg,#e9f7f4,#fff7e6);border:1px solid #e8edf4}.hl-home .ph i,.hl-home .hl-ph i{filter:drop-shadow(0 8px 14px rgba(11,107,97,.18))}

/* Make CMS/layout wrappers not fight the homepage */
body:has(.hl-home){background:#fff}.hl-home .container{max-width:unset}.hl-home .row{margin:0}.hl-home h1,.hl-home h2,.hl-home h3,.hl-home h4,.hl-home h5{font-family:inherit}

/* Dark section buttons */
.hl-stats .eku-btn-ghost,.hl-conference .eku-btn-ghost,.hl-repo .eku-btn-ghost{color:#fff;border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.12)}

/* Slight RTL polish */
.hl-home[dir="rtl"] .eku-hero-title,.hl-home[dir="rtl"] .eku-hero-text{text-align:right}.hl-home[dir="ltr"] .eku-hero-title,.hl-home[dir="ltr"] .eku-hero-text{text-align:left}.hl-home[dir="rtl"] .hl-goals li,.hl-home[dir="rtl"] .hl-contest-rules li{flex-direction:row}.hl-home[dir="ltr"] .hl-goals li,.hl-home[dir="ltr"] .hl-contest-rules li{flex-direction:row}

/* Print safety */
@media print{.eku-hero{min-height:auto;padding:60px 0}.eku-reveal{opacity:1!important;transform:none!important}.eku-btn{display:none!important}.hl-home{overflow:visible}.eku-section,.hl-stats,.hl-conference,.hl-repo{page-break-inside:avoid}}

/* Google Maps API integration */
.hl-google-map-card { overflow: hidden; }
.hl-google-map-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.hl-google-map-head h4 { margin:0; }
.hl-google-map-open { display:inline-flex; align-items:center; gap:6px; font-size:.82rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.hl-google-map-frame { position:relative; width:100%; min-height:250px; overflow:hidden; border-radius:14px; background:#eef3f8; }
.hl-google-map-frame iframe { display:block; width:100%; height:100%; min-height:250px; border:0; }
.hl-google-map-fallback { width:100%; min-height:230px; object-fit:cover; border-radius:14px; }
.hl-google-map-empty { min-height:230px; border:1px dashed rgba(17,72,118,.22); border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; padding:24px; color:#65758a; background:#f7fafc; }
.hl-google-map-empty i { font-size:2rem; }
@media (max-width: 680px) {
  .hl-google-map-head { align-items:flex-start; flex-direction:column; }
  .hl-google-map-frame, .hl-google-map-frame iframe { min-height:290px; }
}

/* ═══════════════════════════════════════════════════════════════
   Home university news — centered perspective carousel
   ═══════════════════════════════════════════════════════════════ */
.uw-home-news-stage{
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(90deg,rgba(231,248,249,.88),rgba(247,251,255,.96) 50%,rgba(231,248,249,.88)),
        #f5fbfc;
    isolation:isolate;
    padding-block:88px 72px;
}
.uw-home-news-stage:before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;
    opacity:.52;
    background:
        linear-gradient(78deg,transparent 0 23%,rgba(255,255,255,.9) 23% 34%,transparent 34% 59%,rgba(255,255,255,.72) 59% 72%,transparent 72%),
        linear-gradient(104deg,transparent 0 36%,rgba(220,237,247,.55) 36% 48%,transparent 48%);
}
.uw-home-news-shape{position:absolute;z-index:-1;pointer-events:none;opacity:.66}
.uw-home-news-shape-a{width:54px;height:54px;border-radius:50%;background:#bce6df;top:80px;left:calc(50% + 120px)}
.uw-home-news-shape-b{width:78px;height:78px;border-radius:50%;background:#cfeafb;bottom:46px;inset-inline-start:7%}
.uw-home-news-shape-c{width:0;height:0;border-left:46px solid transparent;border-right:46px solid transparent;border-bottom:78px solid #d6e5f1;top:72px;inset-inline-end:31%;transform:rotate(35deg)}
.uw-home-news-heading{text-align:center;max-width:760px;margin:0 auto 40px}
.uw-home-news-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--eku-primary);font-weight:900;font-size:14px;margin-bottom:8px}
.uw-home-news-heading h2{margin:0;color:#082a55;font-size:clamp(31px,4vw,48px);font-weight:950;letter-spacing:-.7px}
.uw-home-news-heading p{margin:12px auto 0;color:#617286;line-height:1.8;font-weight:650}
.uw-home-news-carousel{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:10px;max-width:1260px;margin-inline:auto}
.uw-home-news-viewport{position:relative;overflow:hidden;min-height:438px;padding:20px 0 30px;perspective:1200px;touch-action:pan-y}
.uw-home-news-track{position:relative;height:388px;transform-style:preserve-3d}
.uw-home-news-card{position:absolute;top:0;left:50%;width:min(354px,74vw);height:388px;opacity:0;pointer-events:none;transform:translateX(-50%) scale(.72);transition:transform .58s cubic-bezier(.2,.8,.2,1),opacity .45s ease,filter .45s ease;filter:saturate(.75);z-index:1}
.uw-home-news-card.is-active{opacity:1;pointer-events:auto;transform:translateX(-50%) translateZ(80px) scale(1);filter:none;z-index:5}
.uw-home-news-card.is-prev{opacity:.48;transform:translateX(calc(-50% - 330px)) rotateY(13deg) scale(.86);z-index:3}
.uw-home-news-card.is-next{opacity:.48;transform:translateX(calc(-50% + 330px)) rotateY(-13deg) scale(.86);z-index:3}
.uw-home-news-card.is-far-prev{opacity:.17;transform:translateX(calc(-50% - 525px)) rotateY(18deg) scale(.72);z-index:2}
.uw-home-news-card.is-far-next{opacity:.17;transform:translateX(calc(-50% + 525px)) rotateY(-18deg) scale(.72);z-index:2}
.uw-home-news-card-link{display:block;height:100%;overflow:hidden;border-radius:12px;background:#fff;color:inherit;text-decoration:none;border:1px solid rgba(20,64,102,.10);box-shadow:0 18px 44px rgba(9,42,78,.18);transition:box-shadow .28s ease,transform .28s ease}
.uw-home-news-card.is-active .uw-home-news-card-link:hover{transform:translateY(-6px);box-shadow:0 26px 58px rgba(9,42,78,.24)}
.uw-home-news-media{height:222px;position:relative;overflow:hidden;background:#eaf2f7}
.uw-home-news-media img{width:100%;height:100%;object-fit:cover;transition:transform .55s ease}
.uw-home-news-card.is-active:hover .uw-home-news-media img{transform:scale(1.055)}
.uw-home-news-placeholder{height:100%;display:grid;place-items:center;font-size:54px;color:var(--eku-primary);background:linear-gradient(145deg,#edf7f7,#e6eef8)}
.uw-home-news-wave{position:absolute;left:-2%;right:-2%;bottom:-1px;height:35px;background:#fff;clip-path:polygon(0 52%,4% 68%,8% 45%,12% 70%,16% 48%,20% 72%,24% 50%,28% 70%,32% 47%,36% 69%,40% 45%,44% 70%,48% 48%,52% 72%,56% 50%,60% 70%,64% 47%,68% 69%,72% 45%,76% 70%,80% 48%,84% 72%,88% 50%,92% 70%,96% 47%,100% 64%,100% 100%,0 100%)}
.uw-home-news-body{padding:19px 21px 20px;min-height:166px;display:flex;flex-direction:column;align-items:flex-start}
.uw-home-news-category{display:inline-flex;background:#e7eef8;color:#27466e;border-radius:4px;padding:4px 10px;font-size:12px;font-weight:900;margin-bottom:10px}
.uw-home-news-body h3{font-size:20px;line-height:1.55;font-weight:900;color:#263746;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:start}
.uw-home-news-body time{margin-top:auto;color:#9aa7b5;font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px}
.uw-home-news-nav{width:44px;height:44px;border:1px solid rgba(9,58,102,.12);border-radius:50%;background:rgba(255,255,255,.86);color:#0b5274;box-shadow:0 10px 24px rgba(17,61,93,.12);display:grid;place-items:center;transition:.25s;z-index:8}
.uw-home-news-nav:hover{background:var(--eku-primary);color:#fff;transform:scale(1.07)}
.uw-home-news-dots{display:flex;justify-content:center;gap:10px;min-height:14px;margin-top:-6px}
.uw-home-news-dot{width:8px;height:8px;border:0;border-radius:50%;padding:0;background:#aeb8c2;transition:.25s}
.uw-home-news-dot.is-active{width:22px;border-radius:999px;background:#7e8d9d}
.uw-home-news-footer{text-align:center;margin-top:28px}
.uw-home-news-all{display:inline-flex;align-items:center;gap:9px;padding:12px 21px;border-radius:999px;background:#fff;color:var(--eku-primary);border:1px solid rgba(11,107,97,.18);font-weight:900;text-decoration:none;box-shadow:0 10px 25px rgba(9,42,78,.08);transition:.25s}
.uw-home-news-all:hover{background:var(--eku-primary);color:#fff;transform:translateY(-2px)}
@media(max-width:1050px){.uw-home-news-card.is-prev{transform:translateX(calc(-50% - 260px)) rotateY(11deg) scale(.82)}.uw-home-news-card.is-next{transform:translateX(calc(-50% + 260px)) rotateY(-11deg) scale(.82)}.uw-home-news-card.is-far-prev,.uw-home-news-card.is-far-next{opacity:0}}
@media(max-width:720px){.uw-home-news-stage{padding-block:62px 54px}.uw-home-news-heading{margin-bottom:24px}.uw-home-news-heading p{font-size:14px}.uw-home-news-carousel{grid-template-columns:1fr}.uw-home-news-nav{position:absolute;top:48%;transform:translateY(-50%);z-index:10}.uw-home-news-nav:hover{transform:translateY(-50%) scale(1.04)}.uw-home-news-nav.is-prev{inset-inline-start:4px}.uw-home-news-nav.is-next{inset-inline-end:4px}.uw-home-news-viewport{min-height:416px}.uw-home-news-track{height:370px}.uw-home-news-card{height:370px;width:min(330px,82vw)}.uw-home-news-card.is-active{transform:translateX(-50%) scale(1)}.uw-home-news-card.is-prev{opacity:.12;transform:translateX(calc(-50% - 210px)) scale(.78)}.uw-home-news-card.is-next{opacity:.12;transform:translateX(calc(-50% + 210px)) scale(.78)}.uw-home-news-media{height:210px}.uw-home-news-body{min-height:160px}.uw-home-news-body h3{font-size:18px}}
@media(prefers-reduced-motion:reduce){.uw-home-news-card,.uw-home-news-card-link,.uw-home-news-media img,.uw-home-news-nav{transition:none!important}}
