/* News Update Container — Liquid Glass */
.news-update-container {
  position: relative;
  width: clamp(320px, 75vw, 960px);
  min-height: clamp(260px, 40vh, 440px);
  border-radius: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(200, 200, 210, 0.35);
  overflow: visible;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.news-update-container::after {
  content: '';
  position: absolute; z-index: -1; inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  filter: url(#news-update-glass); -webkit-filter: url(#news-update-glass);
  overflow: hidden; isolation: isolate;
}
.news-update-container::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; border-radius: inherit;
  box-shadow: inset 1px 1px 0px -1px rgba(255,255,255,0.5), inset 0 0 2px 0.5px rgba(255,255,255,0.4);
  background-color: rgb(200 200 210 / 10%);
}
/* Top row — laptop + heading side by side */
.news-update-container-content {
  position: relative; z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
  padding: clamp(12px, 1.5vw, 20px) clamp(16px, 2vw, 24px) 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
  color: #636e72;
}
.news-update-heading {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4a4a4a;
  margin: 0;
}

/* Update list — below the top row, full width */
.news-update-content {
  position: relative; z-index: 5;
  flex: 1;
  overflow-y: auto;
  padding: clamp(6px, 1vw, 12px) clamp(16px, 2vw, 24px) clamp(12px, 1.5vw, 20px);
}
.news-update-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 10px);
}
.news-update-list li {
  font-size: clamp(0.7rem, 0.95vw, 0.85rem);
  line-height: 1.5;
  color: #555;
  padding-left: 16px;
  position: relative;
}
.news-update-list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: #888;
  font-size: 0.75em;
  top: 2px;
}
.news-update-list li strong {
  color: #3a3a3a;
}
.news-update-list li em {
  font-style: italic;
  color: #5a7a9a;
}
.news-update-list li code {
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Consolas', monospace;
}
/* Scrollbar styling */
.news-update-content::-webkit-scrollbar {
  width: 4px;
}
.news-update-content::-webkit-scrollbar-track {
  background: transparent;
}
.news-update-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

/* ======================================
   MacBook Animation (small, top-left)
   ====================================== */

.news-update-macbook {
  position: relative;
  width: 100px;
  height: 110px;
  flex-shrink: 0;
  transform: scale(0.55);
  transform-origin: top left;
}

/* From Uiverse.io by Ashon-G */
.news-update-macbook .macbook {
  width: 150px;
  height: 96px;
  position: relative;
  left: 0;
  top: 0;
  margin: 0;
  perspective: 500px;
}

.news-update-macbook .shadow {
  position: absolute;
  width: 60px;
  height: 0px;
  left: 40px;
  top: 160px;
  transform: rotateX(80deg) rotateY(0deg) rotateZ(0deg);
  box-shadow: 0 0 60px 40px rgba(0,0,0,0.3);
  animation: shadow infinite 7s ease;
}

.news-update-macbook .inner {
  z-index: 20;
  position: absolute;
  width: 150px;
  height: 96px;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(0deg) rotateZ(0deg);
  animation: rotate infinite 7s ease;
}

.news-update-macbook .screen {
  width: 150px;
  height: 96px;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 7px;
  background: #ddd;
  transform-style: preserve-3d;
  transform-origin: 50% 93px;
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  animation: lid-screen infinite 7s ease;
  background-image: linear-gradient(45deg, rgba(0,0,0,0.34) 0%,rgba(0,0,0,0) 100%);
  background-position: left bottom;
  background-size: 300px 300px;
  box-shadow: inset 0 3px 7px rgba(255,255,255,0.5);
}

.news-update-macbook .screen .logo {
  position: absolute;
  width: 20px;
  height: 24px;
  left: 50%;
  top: 50%;
  margin: -12px 0 0 -10px;
  transform: rotateY(180deg) translateZ(0.1px);
}

.news-update-macbook .screen .back-text {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  margin-top: -10px;
  text-align: center;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #888;
  transform: rotateY(180deg) translateZ(0.1px);
}

.news-update-macbook .screen .face-one {
  width: 150px;
  height: 96px;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 7px;
  background: #d3d3d3;
  transform: translateZ(2px);
  background-image: linear-gradient(45deg,rgba(0,0,0,0.24) 0%,rgba(0,0,0,0) 100%);
}

.news-update-macbook .screen .face-one .camera {
  width: 3px;
  height: 3px;
  border-radius: 100%;
  background: #000;
  position: absolute;
  left: 50%;
  top: 4px;
  margin-left: -1.5px;
}

.news-update-macbook .screen .face-one .display {
  width: 130px;
  height: 74px;
  margin: 10px;
  background-color: #000;
  background-size: 100% 100%;
  border-radius: 1px;
  position: relative;
  box-shadow: inset 0 0 2px rgba(0,0,0,1);
}

.news-update-macbook .screen .face-one .display .shade {
  position: absolute;
  left: 0;
  top: 0;
  width: 130px;
  height: 74px;
  background: linear-gradient(-135deg, rgba(255,255,255,0) 0%,rgba(255,255,255,0.1) 47%,rgba(255,255,255,0) 48%);
  animation: screen-shade infinite 7s ease;
  background-size: 300px 200px;
  background-position: 0px 0px;
}

.news-update-macbook .macbody {
  width: 150px;
  height: 96px;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 7px;
  background: #cbcbcb;
  transform-style: preserve-3d;
  transform-origin: 50% bottom;
  transform: rotateX(-90deg);
  animation: lid-macbody infinite 7s ease;
  background-image: linear-gradient(45deg, rgba(0,0,0,0.24) 0%,rgba(0,0,0,0) 100%);
}

.news-update-macbook .macbody .face-one {
  width: 150px;
  height: 96px;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 7px;
  transform-style: preserve-3d;
  background: #dfdfdf;
  animation: lid-keyboard-area infinite 7s ease;
  transform: translateZ(-2px);
  background-image: linear-gradient(30deg, rgba(0,0,0,0.24) 0%,rgba(0,0,0,0) 100%);
}

.news-update-macbook .macbody .touchpad {
  width: 40px;
  height: 31px;
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 4px;
  margin: -44px 0 0 -18px;
  background: #cdcdcd;
  background-image: linear-gradient(30deg, rgba(0,0,0,0.24) 0%,rgba(0,0,0,0) 100%);
  box-shadow: inset 0 0 3px #888;
}

.news-update-macbook .macbody .keyboard {
  width: 130px;
  height: 45px;
  position: absolute;
  left: 7px;
  top: 41px;
  border-radius: 4px;
  transform-style: preserve-3d;
  background: #cdcdcd;
  background-image: linear-gradient(30deg, rgba(0,0,0,0.24) 0%,rgba(0,0,0,0) 100%);
  box-shadow: inset 0 0 3px #777;
  padding: 0 0 0 2px;
}

.news-update-macbook .keyboard .key {
  width: 6px;
  height: 6px;
  background: #444;
  float: left;
  margin: 1px;
  transform: translateZ(-2px);
  border-radius: 2px;
  box-shadow: 0 -2px 0 #222;
  animation: keys infinite 7s ease;
}

.news-update-macbook .key.space {
  width: 45px;
}

.news-update-macbook .key.f {
  height: 3px;
}

.news-update-macbook .macbody .pad {
  width: 5px;
  height: 5px;
  background: #333;
  border-radius: 100%;
  position: absolute;
}

.news-update-macbook .pad.one {
  left: 20px;
  top: 20px;
}

.news-update-macbook .pad.two {
  right: 20px;
  top: 20px;
}

.news-update-macbook .pad.three {
  right: 20px;
  bottom: 20px;
}

.news-update-macbook .pad.four {
  left: 20px;
  bottom: 20px;
}

/* MacBook Mascot Head — scoped to avoid conflicts with global mascot */
.news-update-macbook .mascot-wrapper {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 200px;
  height: 200px;
  z-index: 55;
  transform-style: preserve-3d;
  transform-origin: center center;
  pointer-events: auto;
  animation: news-macbook-squash infinite 7s ease;
}

.news-update-macbook .container-ai-input {
  --perspective: 1000px;
  --translateY: 45px;
  position: absolute;
  left: 0; right: 0; top: -2.5rem; bottom: -2.5rem;
  transform-style: preserve-3d;
}
.news-update-macbook .container-wrap {
  display: flex; align-items: center; justify-items: center;
  position: absolute; left: 50%; top: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 9; transform-style: preserve-3d;
  cursor: pointer; padding: 4px; transition: all 0.3s ease;
}
.news-update-macbook .container-wrap:hover { padding: 0; }
.news-update-macbook .container-wrap:active { transform: translateX(-50%) translateY(-50%) scale(0.95); }
.news-update-macbook .container-wrap::after { display: none; }
.news-update-macbook .container-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.news-update-macbook .card {
  width: 100%; height: 100%; transform-style: preserve-3d;
  will-change: transform; transition: transform 0.15s ease-out;
  border-radius: 3rem; display: flex; align-items: center;
  transform: translateZ(0px); justify-content: center;
}
.news-update-macbook .card:hover {
  box-shadow: 0 10px 40px rgba(0,0,60,0.25), inset 0 0 10px rgba(255,255,255,0.5);
}
.news-update-macbook .background-blur-balls {
  position: absolute; left: 50%; top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 100%; height: 100%; z-index: -10;
  border-radius: 3rem; transition: all 0.3s ease;
  background-color: rgba(255,255,255,0.8); overflow: hidden;
}
.news-update-macbook .balls {
  position: absolute; left: 50%; top: 50%;
  width: 100%; height: 100%;
  transform: translateX(-50%) translateY(-50%);
}
.news-update-macbook .mball {
  position: absolute; width: 5.5rem; height: 5.5rem;
  left: 50%; top: 50%; background-color: var(--c);
  border-radius: 50%; filter: blur(45px);
  mix-blend-mode: hard-light;
  animation: news-mball-orbit var(--d) linear infinite;
  transform-origin: center;
  --start-x: var(--x); --start-y: var(--y);
}
.news-update-macbook .mball:nth-child(even) { animation-direction: reverse; }
.news-update-macbook .content-card {
  width: 12rem; height: 12rem; display: flex;
  border-radius: 3rem; transition: all 0.3s ease; overflow: hidden;
  border: 0.5px solid rgba(140, 140, 150, 0.3);
}
.news-update-macbook .background-blur-card {
  width: 100%; height: 100%; backdrop-filter: blur(80px);
}
.news-update-macbook .eyes {
  position: absolute; left: 50%; bottom: 50%;
  transform: translateX(-50%); display: flex;
  align-items: center; justify-content: center;
  height: 52px; gap: 2rem; transition: opacity 0.25s ease;
}
.news-update-macbook .eyes .eye {
  width: 26px; height: 52px; background-color: #fff;
  border-radius: 16px; transition: height 0.08s ease;
  border: 0.5px solid rgba(140, 140, 150, 0.25);
}
.news-update-macbook .eyes .eye.blink { height: 20px; }
.news-update-macbook .eyes.happy { display: none; color: #fff; gap: 0; opacity: 0; transition: opacity 0.25s ease; }
.news-update-macbook .eyes.happy svg { width: 60px; stroke: rgba(140, 140, 150, 0.25); stroke-width: 0.3px; }
.news-update-macbook .eyes.happy.show { display: flex; opacity: 1; }
.news-update-macbook .eyes.normal.hide { opacity: 0; }

/* ======================================
   MacBook Keyframes
   ====================================== */

@keyframes rotate {
  0%   { transform: rotateX(-20deg) rotateY(0deg) rotateZ(0deg); }
  5%   { transform: rotateX(-20deg) rotateY(-20deg) rotateZ(0deg); }
  20%  { transform: rotateX(30deg) rotateY(200deg) rotateZ(0deg); }
  25%  { transform: rotateX(-60deg) rotateY(150deg) rotateZ(0deg); }
  60%  { transform: rotateX(-20deg) rotateY(130deg) rotateZ(0deg); }
  65%  { transform: rotateX(-20deg) rotateY(120deg) rotateZ(0deg); }
  80%  { transform: rotateX(-20deg) rotateY(375deg) rotateZ(0deg); }
  85%  { transform: rotateX(-20deg) rotateY(357deg) rotateZ(0deg); }
  87%  { transform: rotateX(-20deg) rotateY(360deg) rotateZ(0deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg) rotateZ(0deg); }
}

@keyframes lid-screen {
  0%   { transform: rotateX(0deg); background-position: left bottom; }
  5%   { transform: rotateX(50deg); background-position: left bottom; }
  20%  { transform: rotateX(-90deg); background-position: -150px top; }
  25%  { transform: rotateX(15deg); background-position: left bottom; }
  30%  { transform: rotateX(-5deg); background-position: right top; }
  38%  { transform: rotateX(5deg); background-position: right top; }
  48%  { transform: rotateX(0deg); background-position: right top; }
  90%  { transform: rotateX(0deg); background-position: right top; }
  100% { transform: rotateX(0deg); background-position: right center; }
}

@keyframes lid-macbody {
  0%   { transform: rotateX(-90deg); }
  50%  { transform: rotateX(-90deg); }
  100% { transform: rotateX(-90deg); }
}

@keyframes lid-keyboard-area {
  0%   { background-color: #dfdfdf; }
  50%  { background-color: #bbb; }
  100% { background-color: #dfdfdf; }
}

@keyframes screen-shade {
  0%   { background-position: -20px 0px; }
  5%   { background-position: -40px 0px; }
  20%  { background-position: 200px 0; }
  50%  { background-position: -200px 0; }
  80%  { background-position: 0px 0px; }
  85%  { background-position: -30px 0; }
  90%  { background-position: -20px 0; }
  100% { background-position: -20px 0px; }
}

@keyframes keys {
  0%   { box-shadow: 0 -2px 0 #222; }
  5%   { box-shadow: 1 -1px 0 #222; }
  20%  { box-shadow: -1px 1px 0 #222; }
  25%  { box-shadow: -1px 1px 0 #222; }
  60%  { box-shadow: -1px 1px 0 #222; }
  80%  { box-shadow: 0 -2px 0 #222; }
  85%  { box-shadow: 0 -2px 0 #222; }
  87%  { box-shadow: 0 -2px 0 #222; }
  100% { box-shadow: 0 -2px 0 #222; }
}

@keyframes shadow {
  0%   { transform: rotateX(80deg) rotateY(0deg) rotateZ(0deg); box-shadow: 0 0 60px 40px rgba(0,0,0,0.3); }
  5%   { transform: rotateX(80deg) rotateY(10deg) rotateZ(0deg); box-shadow: 0 0 60px 40px rgba(0,0,0,0.3); }
  20%  { transform: rotateX(30deg) rotateY(-20deg) rotateZ(-20deg); box-shadow: 0 0 50px 30px rgba(0,0,0,0.3); }
  25%  { transform: rotateX(80deg) rotateY(-20deg) rotateZ(50deg); box-shadow: 0 0 35px 15px rgba(0,0,0,0.1); }
  60%  { transform: rotateX(80deg) rotateY(0deg) rotateZ(-50deg) translateX(30px); box-shadow: 0 0 60px 40px rgba(0,0,0,0.3); }
  100% { box-shadow: 0 0 60px 40px rgba(0,0,0,0.3); }
}

@keyframes news-macbook-squash {
  0%   { transform: translate(-50%, -50%) translateZ(-35px) rotateX(90deg) scale(0.35); opacity: 1; }
  5%   { transform: translate(-50%, -50%) translateZ(-35px) rotateX(90deg) scale(0.35); opacity: 1; }
  12%  { transform: translate(-50%, -50%) translateZ(-35px) rotateX(90deg) scale(0.35); opacity: 1; }
  20%  { transform: translate(-50%, -50%) translateZ(-2px) rotateX(90deg) scale(0.35) scaleY(0.01) scaleZ(0.01); opacity: 0; }
  24%  { transform: translate(-50%, -50%) translateZ(-35px) rotateX(90deg) scale(0.35); opacity: 1; }
  30%  { transform: translate(-50%, -50%) translateZ(-35px) rotateX(90deg) scale(0.35); opacity: 1; }
  100% { transform: translate(-50%, -50%) translateZ(-35px) rotateX(90deg) scale(0.35); opacity: 1; }
}

@keyframes news-mball-orbit {
  0%   { transform: translate(var(--start-x), var(--start-y)) rotate(0deg) translateX(2.5rem); }
  100% { transform: translate(var(--start-x), var(--start-y)) rotate(360deg) translateX(2.5rem); }
}
