﻿html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  background-color: rgb(0, 0, 0);
  color: #111111;
  overflow-x: hidden;
  background-image: linear-gradient(
    160deg,
    #000000 20%,
    rgb(255, 217, 0) 50%,
    rgb(0, 0, 0) 85%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px;
  box-sizing: border-box;
  background: hsla(0, 0%, 0%, 0.798);
  backdrop-filter: blur(10px);
  z-index: 99999999;
}

.unihome {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.bing {
  height: 70px;
  margin-left: 10px;
  transition: 0.2s ease;
  margin-top: 5px;
  display: block;
}

.bing:hover {
  transform: scale(1.1);
}

.navlink {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 0 28px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.navlink:hover {
  background: rgba(255, 255, 255, 0.12);
}

.Top {
  position: relative;
  width: 100%;
  height: 500px;
  background-color: black;
  overflow: hidden;
}

.Title {
  position: absolute;
  inset: 0;
  margin-left: 80px;
  color: rgb(255, 225, 0);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin-top: 110px;
  font-size: 50px;
  letter-spacing: -0.02em;
  z-index: 1111;
  text-shadow: 0 4.5px 100px rgb(255, 225, 0);
}

.Title h1 {
  margin: 0;
}

.wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 42%,
    rgba(0, 0, 0, 0.42) 62%,
    rgba(0, 0, 0, 0.72) 77%,
    rgba(0, 0, 0, 0.93) 87%,
    rgb(0, 0, 0) 100%
  );
}

.vidback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.menuToggle {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 10000;
  background: #ffcc00;
  color: black;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.menuToggle:hover {
  transform: translateY(-50%) scale(1.05);
}

.sideMenu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100vh;
  background: #111111;
  border-right: 2px solid #ffcc00;
  padding: 120px 20px 20px 20px;
  box-sizing: border-box;
  z-index: 9998;
  transition: left 0.3s ease;
}

.sideMenu.open {
  left: 0;
}

.sideMenu h2 {
  color: #ffcc00;
  margin-top: 0;
  margin-bottom: 20px;
}

.sortBtn {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 204, 0, 0.15);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sortBtn:hover {
  background: rgba(255, 204, 0, 0.3);
  transform: scale(1.02);
}

.newsPage {
  padding-top: 50px;
  padding-bottom: 50px;
}

.feed {
  width: min(900px, 92%);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.post {
  background: #111111;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(255, 204, 0, 0.14);
}

.postHeader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.profilePic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffcc00;
  flex-shrink: 0;
}

.postMeta h3 {
  margin: 0;
  color: white;
  font-size: 18px;
}

.postMeta p {
  margin: 4px 0 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.postBody p {
  margin-top: 0;
  line-height: 1.6;
  color: white;
  font-size: 16px;
}

.postImage {
  width: 100%;
  margin-top: 14px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 204, 0, 0.2);
  height: 500px;
  display: block;
}

.linkedinEmbed {
  width: 100%;
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
}

.linkedinEmbed iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgb(255, 238, 0),
    rgba(113, 117, 0, 0.765)
  );
  border-radius: 80px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 255, 255);
}

.footer {
  background: rgba(35, 35, 35, 0.84);
  color: white;
  padding: 50px 60px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgb(255, 234, 0);
  flex-wrap: wrap;
  gap: 20px;
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 550;
  font-size: 17px;
}

/* 3 equal sections */
.footerLeft,
.footerCenter,
.footerSocial {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Left */
.footerLeft {
  justify-content: flex-start;
  opacity: 0.8;
}

/* Center (THIS is the fix) */
.footerCenter {
  justify-content: center;
}

/* Right */
.footerSocial {
  justify-content: flex-end;
  gap: 40px;
}

/* Links */
.footerLinks {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Anchor styling */
.footer a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 550;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.75;
}

.logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo2 {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-right: -14px;
  flex-shrink: 0;
}

/* ----------- Large tablets / smaller laptops ----------- */
@media (max-width: 1200px) {
  .topbar {
    justify-content: center;
    padding: 12px 18px;
    min-height: 90px;
    height: auto;
    gap: 8px;
  }

  .unihome {
    margin-right: 0;
  }

  .bing {
    margin-left: 0;
  }

  .navlink {
    margin: 0 12px;
    padding: 10px 10px;
    font-size: 15px;
  }

  .Top {
    height: 460px;
  }

  .Title {
    margin-left: 60px;
    margin-top: 95px;
  }

  .Title h1 {
    font-size: 88px;
    line-height: 1;
  }

  .newsPage {
    padding-top: 40px;
  }

  .feed {
    width: min(860px, 90%);
  }

  .menuToggle {
    left: 16px;
    padding: 11px 16px;
  }

  .footer {
    padding: 50px 60px;
  }
}

/* ----------- iPad Pro / Surface Pro portrait ----------- */
@media (max-width: 1100px) and (min-width: 850px) and (min-height: 1000px) {
  .Top {
    height: 470px;
  }

  .Title {
    margin-left: 45px;
    margin-top: 150px;
  }

  .Title h1 {
    font-size: 76px;
    line-height: 1;
  }

  .newsPage {
    padding-top: 22px;
    padding-left: 70px;
  }

  .menuToggle {
    top: 50%;
    padding: 10px;
    margin-left: 8px;
  }

  .menuToggle:hover {
    transform: scale(1.05);
  }

  .feed {
    width: min(760px, 92%);
    gap: 42px;
  }

  .postImage {
    height: 430px;
  }

  .linkedinEmbed iframe {
    height: 500px;
  }
}

/* ----------- Nest Hub Max ----------- */
@media (max-width: 1280px) and (min-width: 1000px) and (max-height: 850px) {
  .topbar {
    justify-content: center;
    padding: 10px 18px;
    min-height: 90px;
    height: auto;
    gap: 8px;
  }

  .unihome {
    margin-right: 0;
  }

  .bing {
    margin-left: 0;
    height: 62px;
    margin-top: 0;
  }

  .navlink {
    margin: 0 10px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .Top {
    height: 430px;
  }

  .Title {
    margin-left: 50px;
    margin-top: 145px;
  }

  .Title h1 {
    font-size: 80px;
    line-height: 1;
  }

  .menuToggle {
    top: 52%;
    left: 14px;
    padding: 10px 14px;
  }

  .feed {
    width: min(860px, 88%);
    gap: 36px;
  }

  .postImage {
    height: 380px;
  }

  .linkedinEmbed iframe {
    height: 460px;
  }

  .footer {
    padding: 38px 40px;
  }

  .footerLinks {
    gap: 26px;
  }

  .footerSocial {
    gap: 26px;
  }
}

/* ----------- Nest Hub ----------- */
@media (max-width: 1050px) and (max-height: 650px) {
  .Top {
    height: 390px;
  }

  .Title {
    margin-left: 30px;
    margin-top: 130px;
  }

  .Title h1 {
    font-size: 62px;
    line-height: 1;
  }

  .menuToggle {
    top: 50%;
    left: 12px;
    transform: none;
    padding: 9px 12px;
    font-size: 14px;
  }

  .menuToggle:hover {
    transform: scale(1.05);
  }

  .newsPage {
    padding-top: 30px;
  }

  .feed {
    width: min(820px, 90%);
    gap: 30px;
  }

  .post {
    padding: 16px;
  }

  .postImage {
    height: 320px;
  }

  .linkedinEmbed iframe {
    height: 400px;
  }
}

/* ----------- Tablets ----------- */
@media (max-width: 900px) {
  .topbar {
    position: fixed;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
  }

  .unihome {
    width: 100%;
    justify-content: center;
  }

  .bing {
    height: 62px;
    margin-top: 0;
  }

  .navlink {
    font-size: 14px;
    padding: 8px 10px;
    margin: 0 6px;
  }

  .Top {
    height: 430px;
  }

  .Title {
    margin-left: 40px;
    margin-top: 155px;
  }

  .Title h1 {
    font-size: 70px;
    line-height: 1;
  }

  .newsPage {
    padding-left: 70px;
  }

  .menuToggle {
    top: 50%;
    padding: 10px;
    margin-left: -2px;
  }

  .menuToggle:hover {
    transform: scale(1.05);
  }

  .sideMenu {
    width: 220px;
    left: -240px;
    padding-top: 130px;
  }

  .newsPage {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .feed {
    width: 94%;
    gap: 34px;
  }

  .post {
    padding: 16px;
  }

  .profilePic {
    width: 52px;
    height: 52px;
  }

  .postMeta h3 {
    font-size: 17px;
  }

  .postMeta p {
    font-size: 13px;
  }

  .postBody p {
    font-size: 15px;
  }

  .postImage {
    height: 360px;
  }

  .linkedinEmbed iframe {
    height: 460px;
  }

  .footer {
    padding: 35px 30px;
    flex-direction: column;
    text-align: center;
  }

  .footerLinks,
  .footerSocial {
    justify-content: center;
  }
}

/* ----------- Phones ----------- */
@media (max-width: 600px) {
  .topbar {
    padding: 10px 10px 14px;
    gap: 4px;
  }

  .bing {
    height: 54px;
  }

  .navlink {
    font-size: 13px;
    padding: 7px 8px;
    margin: 0 4px;
  }

  .Top {
    height: 380px;
  }

  .Title {
    margin-left: 20px;
    margin-top: 165px;
  }

  .Title h1 {
    font-size: 50px;
    line-height: 1;
  }

  .newsPage {
    padding-left: 60px;
  }

  .menuToggle {
    top: 50%;
    padding: 6px;
    margin-left: 0px;
    font-size: 10px;
  }

  .menuToggle:hover {
    transform: scale(1.05);
  }

  .sideMenu {
    width: min(82vw, 220px);
    left: calc(-1 * min(82vw, 220px) - 20px);
    padding: 120px 16px 16px;
  }

  .sideMenu.open {
    left: 0;
  }

  .sideMenu h2 {
    font-size: 20px;
  }

  .sortBtn {
    font-size: 14px;
    padding: 11px;
  }

  .newsPage {
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .feed {
    width: 95%;
    gap: 26px;
  }

  .post {
    padding: 14px;
    border-radius: 18px;
  }

  .postHeader {
    gap: 12px;
    margin-bottom: 12px;
  }

  .profilePic {
    width: 48px;
    height: 48px;
  }

  .postMeta h3 {
    font-size: 16px;
  }

  .postMeta p {
    font-size: 12px;
  }

  .postBody p {
    font-size: 14px;
    line-height: 1.55;
  }

  .postImage {
    height: 260px;
    border-radius: 14px;
  }

  .linkedinEmbed {
    border-radius: 10px;
  }

  .linkedinEmbed iframe {
    height: 390px;
  }

  .footer {
    padding: 28px 20px;
    gap: 18px;
    font-size: 15px;
  }

  .footerLeft {
    font-size: 15px;
  }

  .footerLinks {
    gap: 18px;
  }

  .footerSocial {
    gap: 18px;
  }

  .logo2 {
    width: 48px;
    height: 48px;
    margin-right: -8px;
  }
}

/* ----------- Surface Duo ----------- */
@media (max-width: 540px) and (max-height: 720px) {
  .Top {
    height: 360px;
  }

  .Title {
    margin-left: 16px;
    margin-top: 155px;
  }

  .Title h1 {
    font-size: 46px;
  }

  .newsPage {
    padding-top: 22px;
    padding-left: 60px;
  }

  .menuToggle {
    top: 50%;
    padding: 8px;
    margin-left: -5px;
  }
  
  .feed {
    gap: 22px;
  }

  .post {
    padding: 12px;
  }

  .postBody p {
    font-size: 13px;
  }

  .postImage {
    height: 220px;
  }

  .linkedinEmbed iframe {
    height: 340px;
  }

  
}

/* ----------- Very small phones ----------- */
@media (max-width: 380px) {
  .Title h1 {
    font-size: 42px;
  }

  .navlink {
    font-size: 12px;
    padding: 6px 7px;
  }

  .bing {
    height: 50px;
  }

  .newsPage {
    padding-top: 22px;
    padding-left: 60px;
  }

  .menuToggle {
    top: 50%;
    padding: 8px;
    margin-left: -7px;
    font-size: 10px;
  }

  .sideMenu {
    width: 84vw;
    left: -90vw;
    padding-top: 115px;
  }

  .feed {
    width: 96%;
    gap: 20px;
  }

  .post {
    padding: 11px;
    border-radius: 16px;
  }

  .postHeader {
    gap: 10px;
  }

  .profilePic {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }

  .postMeta h3 {
    font-size: 15px;
  }

  .postMeta p {
    font-size: 11px;
  }

  .postBody p {
    font-size: 13px;
  }

  .postImage {
    height: 200px;
  }

  .linkedinEmbed iframe {
    height: 300px;
  }

  .footerLinks {
    gap: 14px;
  }

  .footerSocial {
    gap: 14px;
  }
}