/* =========================================================
   KIIT HOMEPAGE NEWS & EVENTS — v1.2.0
   Responsive editorial layout + long event title protection
========================================================= */

.kiit-hne{
  --g:#087b3e;
  --gd:#056832;
  --b:#0b4278;
  --bd:#082f5a;
  --ink:#102942;
  --body:#536578;
  --muted:#71808f;
  --line:#dbe5e0;
  --soft:#f5f8f6;
  --white:#fff;
  --shell:min(1240px,calc(100% - 48px));
  position:relative;
  width:100vw;
  max-width:100vw;
  margin:0 0 0 calc(50% - 50vw)!important;
  padding:clamp(72px,7vw,100px) 0!important;
  color:var(--ink);
  background:var(--soft);
  font-family:inherit;
  line-height:1.6;
  overflow:hidden;
  isolation:isolate;
}

.kiit-hne,
.kiit-hne *,
.kiit-hne *::before,
.kiit-hne *::after{box-sizing:border-box}

.kiit-hne img{display:block;max-width:100%}
.kiit-hne a{text-decoration:none}
.kiit-hne :focus-visible{outline:3px solid #efbd28;outline-offset:3px}

.kiit-hne__container{width:var(--shell);margin:0 auto}

/* ---------- Header ---------- */
.kiit-hne__header{
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(340px,.70fr);
  align-items:end;
  gap:clamp(50px,7vw,105px);
  margin-bottom:clamp(40px,5vw,60px)
}

.kiit-hne__eyebrow{
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 0 15px;
  color:var(--g);
  font-size:12px;
  font-weight:800;
  letter-spacing:.15em;
  line-height:1.3;
  text-transform:uppercase
}

.kiit-hne__eyebrow span{width:26px;height:2px;flex:0 0 26px;background:currentColor}

.kiit-hne__heading h2{
  max-width:720px;
  margin:0!important;
  padding:0!important;
  color:var(--bd)!important;
  font-size:clamp(40px,3.9vw,55px)!important;
  font-weight:730!important;
  letter-spacing:-.041em!important;
  line-height:1.07!important
}

.kiit-hne__intro{max-width:500px;padding-bottom:4px}
.kiit-hne__intro p{margin:0 0 18px!important;color:var(--body)!important;font-size:16px!important;line-height:1.7!important}
.kiit-hne__header-links{display:flex;flex-wrap:wrap;gap:20px}

.kiit-hne__header-links a,
.kiit-hne__read,
.kiit-hne__fallback a,
.kiit-hne__events-empty a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--b)!important;
  font-size:14px;
  font-weight:750;
  line-height:1.4
}

.kiit-hne__header-links a span,
.kiit-hne__read span,
.kiit-hne__fallback a span,
.kiit-hne__events-empty a span{color:var(--g)}

/* ---------- Main layout ---------- */
.kiit-hne__layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(350px,390px);
  gap:24px;
  align-items:start
}

.kiit-hne__news,
.kiit-hne__events{min-width:0}

.kiit-hne__subheading,
.kiit-hne__events-top{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px
}

.kiit-hne__subheading>div>span,
.kiit-hne__events-top>div>span{
  display:block;
  margin-bottom:6px;
  color:var(--g);
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  line-height:1.35;
  text-transform:uppercase
}

.kiit-hne__subheading h3,
.kiit-hne__events-top h3{
  margin:0!important;
  color:var(--bd)!important;
  font-size:clamp(25px,2.3vw,32px)!important;
  font-weight:720!important;
  letter-spacing:-.03em!important;
  line-height:1.15!important
}

.kiit-hne__subheading small{color:var(--muted);font-size:11px;line-height:1.4}

/* ---------- News ---------- */
.kiit-hne__news-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);
  min-height:540px;
  background:var(--white);
  border:1px solid var(--line)
}

.kiit-hne__lead{display:flex;min-width:0;flex-direction:column;border-right:1px solid var(--line)}

.kiit-hne__lead-image,
.kiit-hne__support-image{
  position:relative;
  display:block;
  background:linear-gradient(135deg,#062847,var(--g));
  overflow:hidden
}

.kiit-hne__lead-image{aspect-ratio:16/9}

.kiit-hne__lead-image img,
.kiit-hne__support-image img{
  width:100%;
  height:100%;
  max-width:none!important;
  object-fit:cover;
  opacity:1!important;
  visibility:visible!important;
  transition:transform .35s ease
}

.kiit-hne__lead-image:hover img,
.kiit-hne__support-image:hover img{transform:scale(1.025)}

.kiit-hne__image-placeholder{
  position:absolute;
  inset:0;
  display:none;
  place-items:center;
  color:rgba(255,255,255,.84);
  background:linear-gradient(135deg,#062847,var(--g));
  font-size:32px;
  font-weight:800
}

.kiit-hne__lead-image>.kiit-hne__image-placeholder:only-child,
.kiit-hne__support-image>.kiit-hne__image-placeholder:only-child{display:grid}

.kiit-hne__lead-content{display:flex;flex:1;min-width:0;flex-direction:column;padding:clamp(26px,3vw,36px)}

.kiit-hne__meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:13px}
.kiit-hne__meta span{color:var(--g);font-size:11px;font-weight:800;letter-spacing:.09em;line-height:1.35;text-transform:uppercase}
.kiit-hne__meta time{color:var(--muted);font-size:11px;line-height:1.35}

.kiit-hne__lead h4{
  margin:0 0 14px!important;
  color:var(--bd)!important;
  font-size:clamp(25px,2.4vw,34px)!important;
  font-weight:720!important;
  letter-spacing:-.03em!important;
  line-height:1.18!important;
  overflow-wrap:anywhere
}

.kiit-hne__lead h4 a,
.kiit-hne__support h4 a,
.kiit-hne__event h4 a{color:inherit!important}

.kiit-hne__lead-content p{margin:0 0 20px!important;color:var(--body)!important;font-size:14px!important;line-height:1.65!important}
.kiit-hne__read{margin-top:auto;font-size:13px}

.kiit-hne__support-list{display:flex;min-width:0;flex-direction:column}

.kiit-hne__support{
  display:grid;
  min-width:0;
  min-height:0;
  flex:1;
  grid-template-columns:112px minmax(0,1fr);
  align-items:center;
  gap:17px;
  padding:18px;
  border-bottom:1px solid var(--line)
}

.kiit-hne__support:last-child{border-bottom:0}
.kiit-hne__support-image{width:112px;aspect-ratio:1/1}
.kiit-hne__support-content{display:flex;min-width:0;flex-direction:column;justify-content:center}
.kiit-hne__support-content .kiit-hne__meta{margin-bottom:7px}

.kiit-hne__support h4{
  display:-webkit-box;
  margin:0!important;
  color:var(--bd)!important;
  font-size:14px!important;
  font-weight:710!important;
  line-height:1.4!important;
  overflow:hidden;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4
}

.kiit-hne__support-arrow{display:inline-flex;margin-top:10px;color:var(--g)!important;font-size:14px;font-weight:750}

/* ---------- Events ---------- */
.kiit-hne__events{
  padding:27px 25px 25px;
  background:var(--white);
  border:1px solid var(--line);
  border-top:4px solid var(--b)
}

.kiit-hne__events-top{padding-bottom:17px;border-bottom:1px solid var(--line)}

.kiit-hne__events-top a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--b)!important;
  font-size:11px;
  font-weight:800;
  line-height:1.35;
  text-transform:uppercase
}
.kiit-hne__events-top a span{color:var(--g)}

.kiit-hne__event-list{display:block;min-width:0}

.kiit-hne__event{
  display:grid;
  min-width:0;
  grid-template-columns:68px minmax(0,1fr);
  align-items:start;
  gap:16px;
  padding:22px 0;
  border-bottom:1px solid var(--line)
}

.kiit-hne__event:last-child{padding-bottom:2px;border-bottom:0}

/* Critical fix: the date block never stretches with a long title. */
.kiit-hne__event-date{
  display:flex;
  width:68px;
  height:72px;
  min-width:68px;
  min-height:72px;
  max-height:72px;
  align-self:start;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:var(--g);
  overflow:hidden
}

.kiit-hne__event-date strong{font-size:27px;font-weight:740;letter-spacing:-.04em;line-height:1}
.kiit-hne__event-date span{margin-top:5px;font-size:9px;font-weight:800;letter-spacing:.1em;line-height:1.2;text-transform:uppercase}

.kiit-hne__event-content{min-width:0;padding-top:1px}

.kiit-hne__event-content>span{
  display:block;
  margin-bottom:7px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.035em;
  line-height:1.45;
  text-transform:uppercase;
  overflow-wrap:anywhere
}

.kiit-hne__event h4{
  min-width:0;
  margin:0!important;
  color:var(--bd)!important;
  font-size:15px!important;
  font-weight:720!important;
  letter-spacing:-.012em!important;
  line-height:1.38!important;
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto
}

.kiit-hne__event small{
  display:block;
  margin-top:8px;
  color:var(--body);
  font-size:12px;
  line-height:1.45;
  overflow-wrap:anywhere
}

/* ---------- Fallback ---------- */
.kiit-hne__fallback{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px;background:#fff;border:1px solid var(--line)}
.kiit-hne__fallback strong,.kiit-hne__events-empty strong{display:block;margin-bottom:6px;color:var(--bd);font-size:15px}
.kiit-hne__fallback p,.kiit-hne__events-empty p{margin:0!important;color:var(--body)!important;font-size:13px!important;line-height:1.55!important}
.kiit-hne__events-empty{padding-top:22px}
.kiit-hne__events-empty a{margin-top:14px;font-size:13px}

/* =========================================================
   MEDIUM / SMALL DESKTOP
   News and events become two full-width bands.
========================================================= */
@media(max-width:1180px){
  .kiit-hne__layout{grid-template-columns:1fr;gap:34px}

  .kiit-hne__events{
    display:grid;
    grid-template-columns:230px minmax(0,1fr);
    align-items:start;
    gap:28px;
    padding:27px 27px
  }

  .kiit-hne__events-top{
    display:block;
    margin:0;
    padding:0 26px 0 0;
    border-right:1px solid var(--line);
    border-bottom:0
  }

  .kiit-hne__events-top a{margin-top:18px}

  .kiit-hne__event-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 28px
  }

  .kiit-hne__event:nth-child(1),
  .kiit-hne__event:nth-child(2){padding-top:0}

  .kiit-hne__event:nth-last-child(-n+2){padding-bottom:0;border-bottom:0}
}

/* =========================================================
   TABLET
========================================================= */
@media(max-width:850px){
  .kiit-hne{--shell:min(100% - 34px,1240px);padding:66px 0!important}

  .kiit-hne__header{grid-template-columns:1fr;gap:22px;margin-bottom:40px}
  .kiit-hne__intro{max-width:680px}

  .kiit-hne__heading h2{font-size:clamp(38px,7vw,50px)!important}

  .kiit-hne__news-grid{grid-template-columns:1fr;min-height:0}
  .kiit-hne__lead{border-right:0;border-bottom:1px solid var(--line)}

  .kiit-hne__support-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}

  .kiit-hne__support{
    display:flex;
    min-width:0;
    flex-direction:column;
    align-items:stretch;
    gap:13px;
    padding:16px;
    border-right:1px solid var(--line);
    border-bottom:0
  }

  .kiit-hne__support:last-child{border-right:0}
  .kiit-hne__support-image{width:100%;aspect-ratio:16/10}

  .kiit-hne__events{grid-template-columns:1fr;gap:0;padding:26px 24px 24px}

  .kiit-hne__events-top{
    display:flex;
    align-items:end;
    margin:0 0 2px;
    padding:0 0 17px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }

  .kiit-hne__events-top a{margin-top:0}

  .kiit-hne__event-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
  .kiit-hne__event{grid-template-columns:66px minmax(0,1fr);gap:15px}
  .kiit-hne__event-date{width:66px;height:70px;min-width:66px;min-height:70px;max-height:70px}
}

/* =========================================================
   MOBILE
========================================================= */
@media(max-width:640px){
  .kiit-hne{--shell:calc(100% - 26px);padding:54px 0!important}

  .kiit-hne__header{gap:18px;margin-bottom:34px}
  .kiit-hne__eyebrow{font-size:11px}

  .kiit-hne__heading h2{font-size:clamp(34px,10vw,44px)!important;line-height:1.08!important}
  .kiit-hne__heading h2 br{display:none}

  .kiit-hne__intro p{font-size:15px!important}
  .kiit-hne__header-links{gap:14px 18px}
  .kiit-hne__header-links a{font-size:13px}

  .kiit-hne__subheading,
  .kiit-hne__events-top{align-items:flex-start;flex-direction:column;gap:8px}

  .kiit-hne__subheading h3,
  .kiit-hne__events-top h3{font-size:27px!important}

  .kiit-hne__lead-content{padding:24px 21px 26px}
  .kiit-hne__lead h4{font-size:clamp(25px,7.7vw,32px)!important}
  .kiit-hne__lead-content p{font-size:14px!important}

  .kiit-hne__support-list{grid-template-columns:1fr}

  .kiit-hne__support{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    align-items:center;
    gap:15px;
    padding:16px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }

  .kiit-hne__support:last-child{border-bottom:0}
  .kiit-hne__support-image{width:112px;aspect-ratio:1/1}
  .kiit-hne__support h4{font-size:14px!important;-webkit-line-clamp:4}

  .kiit-hne__events{display:block;padding:24px 20px 22px}
  .kiit-hne__events-top{display:flex;margin-bottom:0;padding:0 0 17px;border-bottom:1px solid var(--line)}
  .kiit-hne__events-top a{margin-top:0;font-size:11px}

  .kiit-hne__event-list{display:block}

  .kiit-hne__event{
    grid-template-columns:64px minmax(0,1fr);
    gap:15px;
    padding:20px 0
  }

  .kiit-hne__event:nth-child(1),
  .kiit-hne__event:nth-child(2){padding-top:20px}
  .kiit-hne__event:first-child{padding-top:20px}
  .kiit-hne__event:nth-last-child(-n+2){padding-bottom:20px;border-bottom:1px solid var(--line)}
  .kiit-hne__event:last-child{padding-bottom:2px;border-bottom:0}

  .kiit-hne__event-date{width:64px;height:68px;min-width:64px;min-height:68px;max-height:68px}
  .kiit-hne__event-date strong{font-size:25px}
  .kiit-hne__event h4{font-size:15px!important;line-height:1.4!important}
  .kiit-hne__event small{font-size:12px}

  .kiit-hne__fallback{align-items:flex-start;flex-direction:column;padding:24px 21px}
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media(max-width:430px){
  .kiit-hne__support{grid-template-columns:96px minmax(0,1fr);gap:13px;padding:14px}
  .kiit-hne__support-image{width:96px}
  .kiit-hne__support h4{font-size:13.5px!important}

  .kiit-hne__event{grid-template-columns:58px minmax(0,1fr);gap:13px}
  .kiit-hne__event-date{width:58px;height:64px;min-width:58px;min-height:64px;max-height:64px}
  .kiit-hne__event-date strong{font-size:23px}
  .kiit-hne__event h4{font-size:14.5px!important}
}

@media(prefers-reduced-motion:reduce){
  .kiit-hne *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
