/* ==========================================================
   AISEL — NEWS & BREAKTHROUGHS
   Hero + animated news carousel
========================================================== */

#news {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  background: #f7f9fc;
}

#news,
#news * { box-sizing: border-box; }

/* ==========================================================
   HERO
========================================================== */

#news .news-hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(74, 102, 188, .42), transparent 31%),
    radial-gradient(circle at 18% 84%, rgba(42, 91, 201, .18), transparent 30%),
    linear-gradient(135deg, #0a1327 0%, #111e38 48%, #1d2e57 100%);
}

#news .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(125, 153, 230, .08) 50%, transparent 54%),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 100%, 54px 54px, 54px 54px;
  animation: newsGridMove 18s linear infinite;
}

#news .news-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  animation: newsGridDrift 24s linear infinite;
}

#news .news-hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

#news .news-hero-glow-1 {
  width: 520px;
  height: 520px;
  top: -330px;
  right: -120px;
  background: radial-gradient(circle, rgba(110, 143, 235, .18), transparent 68%);
  animation: newsGlowFloat 11s ease-in-out infinite;
}

#news .news-hero-glow-2 {
  width: 430px;
  height: 430px;
  bottom: -300px;
  left: -100px;
  background: radial-gradient(circle, rgba(45, 101, 229, .14), transparent 68%);
  animation: newsGlowFloat 13s ease-in-out -3s infinite reverse;
}

#news .news-hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(146, 170, 238, .12);
  border-radius: 50%;
  pointer-events: none;
}

#news .news-hero-orbit-1 {
  width: 390px;
  height: 390px;
  top: -240px;
  right: -80px;
  box-shadow: 0 0 0 45px rgba(146,170,238,.025), 0 0 0 90px rgba(146,170,238,.018);
  animation: newsOrbit 12s ease-in-out infinite;
}

#news .news-hero-orbit-2 {
  width: 260px;
  height: 260px;
  bottom: -180px;
  left: -55px;
  box-shadow: 0 0 0 35px rgba(80,126,230,.025);
  animation: newsOrbit 10s ease-in-out -2s infinite reverse;
}

#news .news-hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#news .news-hero-particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8da8ff;
  box-shadow: 0 0 16px rgba(141,168,255,.8);
  opacity: .4;
  animation: newsParticle 5s ease-in-out infinite;
}

#news .news-hero-particles span:nth-child(1) { left: 12%; top: 28%; animation-delay: -.5s; }
#news .news-hero-particles span:nth-child(2) { left: 21%; top: 68%; animation-delay: -2.1s; transform: scale(.7); }
#news .news-hero-particles span:nth-child(3) { right: 16%; top: 26%; animation-delay: -3.2s; transform: scale(.8); }
#news .news-hero-particles span:nth-child(4) { right: 25%; bottom: 22%; animation-delay: -1.4s; transform: scale(.65); }
#news .news-hero-particles span:nth-child(5) { left: 34%; top: 18%; animation-delay: -4s; transform: scale(.55); }
#news .news-hero-particles span:nth-child(6) { left: 8%; bottom: 27%; animation-delay: -2.8s; transform: scale(.8); }
#news .news-hero-particles span:nth-child(7) { right: 8%; bottom: 34%; animation-delay: -1.1s; transform: scale(.6); }
#news .news-hero-particles span:nth-child(8) { right: 38%; top: 15%; animation-delay: -3.8s; transform: scale(.45); }
#news .news-hero-particles span:nth-child(9) { left: 43%; bottom: 17%; animation-delay: -2.5s; transform: scale(.6); }
#news .news-hero-particles span:nth-child(10) { right: 45%; bottom: 30%; animation-delay: -4.5s; transform: scale(.5); }

#news .news-hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  padding: 72px 0 86px;
  text-align: center;
  animation: newsHeroEnter 1.05s cubic-bezier(.22,.8,.25,1) both;
}

#news .news-hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 22px;
  color: #b5c3df;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.8px;
}

#news .news-hero-line {
  width: 32px;
  height: 1px;
  background: #8299d8;
  transform-origin: center;
  animation: newsLinePulse 2.8s ease-in-out infinite;
}

#news .news-hero-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  color: #ffd23f;
  background: rgba(255,255,255,.055);
  box-shadow: 0 0 38px rgba(255,210,63,.13), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  animation: newsIconFloat 4.5s ease-in-out infinite;
}

#news .news-hero-icon i { font-size: 30px; }

#news .news-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -3.8px;
}

#news .news-hero h1 span {
  color: #819cff;
  text-shadow: 0 0 34px rgba(129,156,255,.22);
}

#news .news-hero-divider {
  width: 94px;
  height: 6px;
  margin: 25px auto 23px;
  border-radius: 99px;
  background: #8197d6;
  box-shadow: 0 0 24px rgba(129,151,214,.3);
  animation: newsDividerPulse 3s ease-in-out infinite;
}

#news .news-hero-content > p {
  max-width: 720px;
  margin: 0 auto;
  color: #c1cbe0;
  font-size: 15px;
  line-height: 1.85;
}

#news .news-hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

#news .news-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(180,198,240,.18);
  border-radius: 999px;
  color: #d7e0f3;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 600;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

#news .news-hero-tags span:hover {
  transform: translateY(-4px);
  border-color: rgba(139,162,235,.45);
  background: rgba(255,255,255,.095);
}

#news .news-hero-tags i { color: #8da6ff; }

#news .news-hero-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 12px 18px;
  color: #dce5ff;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(180,198,240,.22);
  border-radius: 10px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

#news .news-hero-button i { color: #91aaff; transition: transform .3s ease; }
#news .news-hero-button:hover {
  color: #fff;
  background: rgba(255,255,255,.11);
  border-color: rgba(150,174,245,.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0,0,0,.2);
}
#news .news-hero-button:hover i { transform: translateY(4px); }

#news .news-hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  transform: translateX(-50%);
}

#news .news-hero-scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  border-radius: 10px;
  background: #fff;
  transform: translateX(-50%);
  animation: newsScrollDot 1.7s ease-in-out infinite;
}

/* ==========================================================
   CONTENT / HEADER
========================================================== */

#news .news-content-section {
  position: relative;
  padding: 105px 0 92px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

#news .news-header {
  max-width: 850px;
  margin: 0 auto 52px;
  text-align: center;
}

#news .news-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #68758a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

#news .news-kicker span { width: 26px; height: 1px; background: #9aa7b9; }

#news .news-header h2 {
  margin: 0;
  color: #121a2c;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2.2px;
}

#news .news-title-line {
  width: 80px;
  height: 6px;
  margin: 22px auto 21px;
  border-radius: 99px;
  background: #27344b;
  box-shadow: 0 7px 22px rgba(39,52,75,.13);
}

#news .news-header p {
  max-width: 760px;
  margin: 0 auto;
  color: #5d6a7d;
  font-size: 14px;
  line-height: 1.85;
}

/* ==========================================================
   SLIDER
========================================================== */

#news .news-slider {
  position: relative;
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#news .news-window {
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  outline: none;
}

#news .news-track {
  display: flex;
  width: 100%;
  transform: translate3d(0,0,0);
  transition: transform .75s cubic-bezier(.22,.75,.22,1);
  will-change: transform;
}

#news .news-card {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  padding: 4px;
  opacity: .55;
  transform: scale(.985);
  transition: opacity .55s ease, transform .75s cubic-bezier(.22,.75,.22,1);
}

#news .news-card.is-active {
  opacity: 1;
  transform: scale(1);
}

#news .news-card-inner {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 43px 48px 34px;
  overflow: hidden;
  border: 1px solid #dce2eb;
  border-radius: 25px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 55px rgba(24,37,61,.10), 0 2px 8px rgba(24,37,61,.04);
}

#news .news-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #819cff, #263752, transparent);
  transform: translateX(-100%);
  transition: transform .9s ease;
}

#news .news-card.is-active .news-card-inner::before { transform: translateX(0); }

#news .news-card-glow {
  position: absolute;
  inset: 10% 10% -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,111,210,.16), transparent 65%);
  filter: blur(28px);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

#news .news-card.is-active .news-card-glow { opacity: 1; }

#news .news-card-shine {
  position: absolute;
  top: -50%;
  left: -30%;
  width: 45%;
  height: 200%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  transform: rotate(18deg) translateX(-170%);
  transition: transform 1s ease;
}

#news .news-card:hover .news-card-shine { transform: rotate(18deg) translateX(440%); }

#news .news-top,
#news .news-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#news .news-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #e0e5ec;
  border-radius: 999px;
  color: #344258;
  background: #f3f5f8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
}

#news .news-type i { color: #6f82aa; }

#news .news-year {
  color: #8a96a8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

#news .news-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 28px auto 30px 0;
}

#news .news-label {
  display: block;
  margin-bottom: 11px;
  color: #8a96a8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

#news .news-content h3 {
  margin: 0 0 14px;
  color: #151e31;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -1.4px;
}

#news .news-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: #6c788b;
  font-size: 12px;
}

#news .news-date i { color: #7d8ba1; }

#news .news-content p {
  max-width: 780px;
  margin: 0;
  color: #59677b;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
}

#news .news-footer {
  padding-top: 23px;
  border-top: 1px solid #edf0f4;
  color: #69768a;
  font-size: 11px;
}

#news .news-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#news .news-footer > span i { color: #5e83e8; }

#news .news-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #263650;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .25s ease, gap .25s ease;
}

#news .news-link:hover { color: #5d7ee0; gap: 13px; }

#news .news-btn {
  position: absolute;
  z-index: 5;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e5ed;
  border-radius: 50%;
  color: #536175;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 34px rgba(31,45,69,.12);
  cursor: pointer;
  transition: transform .3s ease, color .3s ease, box-shadow .3s ease, background .3s ease;
}

#news .news-btn.prev { left: -32px; }
#news .news-btn.next { right: -32px; }
#news .news-btn:hover {
  color: #fff;
  background: #1e2d46;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 18px 40px rgba(31,45,69,.2);
}
#news .news-btn:active { transform: scale(.96); }

/* ==========================================================
   CONTROLS
========================================================== */

#news .news-controls {
  width: min(850px, calc(100% - 40px));
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 25px auto 0;
}

#news .news-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

#news .news-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #cbd2dc;
  cursor: pointer;
  transition: width .35s ease, background .35s ease, transform .35s ease;
}

#news .news-dot:hover { transform: scale(1.3); }
#news .news-dot.active { width: 27px; background: #263650; }

#news .news-progress {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e2e6ec;
}

#news .news-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #607ee0, #263650);
  transition: width .7s cubic-bezier(.22,.75,.22,1);
}

#news .news-counter {
  min-width: 52px;
  color: #69768a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

#news .news-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 62px;
}

#news .news-bottom > span {
  flex: 1;
  height: 1px;
  background: #e1e6ed;
}

#news .news-bottom p {
  margin: 0;
  color: #7a8698;
  font-size: 11px;
  text-align: center;
}

#news .news-bottom strong { color: #334158; font-weight: 600; }

/* ==========================================================
   REVEAL
========================================================== */

#news .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,.75,.22,1);
}

#news .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   KEYFRAMES
========================================================== */

@keyframes newsHeroEnter {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes newsGridMove {
  0% { background-position: 0 0; }
  50% { background-position: 100% 30%; }
  100% { background-position: 0 0; }
}

@keyframes newsGridDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

@keyframes newsGlowFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-20px,25px,0) scale(1.05); }
}

@keyframes newsOrbit {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(-18px,22px,0) rotate(8deg); }
}

@keyframes newsParticle {
  0%, 100% { opacity: .25; transform: translate3d(0,0,0) scale(1); }
  50% { opacity: .9; transform: translate3d(0,-18px,0) scale(1.35); }
}

@keyframes newsIconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes newsDividerPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(129,151,214,.13); }
  50% { box-shadow: 0 0 32px rgba(129,151,214,.4); }
}

@keyframes newsLinePulse {
  0%, 100% { transform: scaleX(1); opacity: .6; }
  50% { transform: scaleX(1.25); opacity: 1; }
}

@keyframes newsScrollDot {
  0% { opacity: 0; transform: translate(-50%,0); }
  35% { opacity: 1; }
  75%, 100% { opacity: 0; transform: translate(-50%,11px); }
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
  #news .news-slider { width: min(100%, calc(100% - 28px)); }
  #news .news-btn { width: 54px; height: 54px; }
  #news .news-btn.prev { left: -15px; }
  #news .news-btn.next { right: -15px; }
  #news .news-card-inner { padding: 38px 34px 30px; }
}

@media (max-width: 700px) {
  #news .news-hero { min-height: 560px; }
  #news .news-hero-content { width: min(100% - 28px, 650px); padding: 65px 0 75px; }
  #news .news-hero-kicker { font-size: 8px; letter-spacing: 1.8px; }
  #news .news-hero-kicker .news-hero-line { width: 18px; }
  #news .news-hero-icon { width: 58px; height: 58px; border-radius: 17px; }
  #news .news-hero-icon i { font-size: 24px; }
  #news .news-hero h1 { font-size: clamp(42px, 12vw, 58px); letter-spacing: -2.4px; }
  #news .news-hero-content > p { font-size: 13px; line-height: 1.75; }
  #news .news-content-section { padding: 78px 0 68px; }
  #news .news-header { margin-bottom: 38px; }
  #news .news-header h2 { font-size: 34px; letter-spacing: -1.5px; }
  #news .news-header p { font-size: 13px; }
  #news .news-card-inner { min-height: 420px; padding: 28px 23px 24px; border-radius: 21px; }
  #news .news-content h3 { font-size: 27px; }
  #news .news-content p { font-size: 13px; line-height: 1.8; }
  #news .news-footer { align-items: flex-end; }
  #news .news-footer > span { max-width: 58%; line-height: 1.5; }
  #news .news-btn { width: 44px; height: 44px; }
  #news .news-btn.prev { left: -8px; }
  #news .news-btn.next { right: -8px; }
  #news .news-controls { width: calc(100% - 28px); }
  #news .news-bottom { margin-top: 45px; }
  #news .news-bottom > span { display: none; }
  #news .news-bottom p { width: 100%; line-height: 1.7; }
}

@media (max-width: 430px) {
  #news .news-hero { min-height: 590px; }
  #news .news-hero-tags { gap: 7px; }
  #news .news-hero-tags span { padding: 8px 10px; font-size: 9px; }
  #news .news-card-inner { min-height: 450px; }
  #news .news-top { gap: 8px; }
  #news .news-type { padding: 8px 10px; font-size: 9px; }
  #news .news-year { font-size: 10px; }
  #news .news-footer { gap: 10px; }
  #news .news-link { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #news *,
  #news *::before,
  #news *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
