/*FoundationsIntro*/


.planet {
  position: relative;
  bottom: -50px;
  left: 52%;
  transform: translateX(-50%);
  width: 700px;
  height: auto;
}

/*Foundation intro Ends*/

/* Background styling for space map */
.space-map-background {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /*background: url('Images/Foudations background.png') no-repeat center center fixed;*/
  background-size: cover;
  perspective: 1000px;
  /* Adds depth to the scene */
}

.space-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Enables 3D transformations */
}

/* General styling for planet text */
.planet-text {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-align: center;
}

/* Common styling for planet images */
.planet-img {
  border-radius: 50%;
  display: block;
}

/* Unique classes for each planet container with specific sizes, scattered positions, and depth */
.planet-investing {
  position: absolute;
  top: 35%;
  left: 40%;
  transform: translate(-50%, -50%) translateZ(-100px);
  /* Moves the planet deeper into the scene */

}

.planet-investing .planet-img {
  width: 200px;
  height: 200px;
}

.planet-economics {
  position: absolute;
  top: 20%;
  left: 70%;
  transform: translate(-50%, -50%) translateZ(-300px);
}

.planet-economics .planet-img {
  width: 100px;
  height: 100px;
}

.planet-personal-finance {
  position: absolute;
  bottom: 20%;
  right: 80%;
  transform: translate(500%, -80%) translateZ(-250px);
}

.planet-personal-finance .planet-img {
  width: 120px;
  height: 120px;
}

.planet-financial-institutions {
  position: absolute;
  top: 10%;
  left: 20%;
  transform: translate(-500%, 100%) translateZ(-500px);
}

.planet-financial-institutions .planet-img {
  width: 80px;
  height: 80px;
}

.planet-financial-services {
  position: absolute;
  bottom: 30%;
  left: 25%;
  transform: translate(-650%, 70%) translateZ(-600px);
}

.planet-financial-services .planet-img {
  width: 70px;
  height: 70px;
}

.planet-trading-analysis {
  position: absolute;
  top: 70%;
  right: 25%;
  transform: translate(600%, -500%) translateZ(-800px);
}

.planet-trading-analysis .planet-img {
  width: 50px;
  height: 50px;
}

/* Spacemap ends*/

/* Background styling for Investing page */
.investing-background {
  height: 100vh;
  display: flex;
  align-items: center;
  background: url('Images/Foudations background.png') no-repeat center center fixed;
  background-size: cover;
  padding: 20px;
}

/* Left Panel with Planet and Vertical Title */
.left-panel {
  position: relative;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.planet-and-title {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Space between the planet and the title */
  padding-left: 20px;
}

.planet-left {
  width: 100%;
  height: auto;
  left: 30%;
  transform: translateX(-45%);
  position: relative;
  bottom: 20px;
}

.vertical-title {
  font-size: 3.3rem;
  color: #FFFFFF;
  position: relative;
  writing-mode: vertical-lr;
  /* text-orientation: upright; */
  transform: rotate(180deg);
  /* font-family: 'Poppins', sans-serif; */
  letter-spacing: 2rem;
  left: -15%;
  padding-top: 40%;
}

.foundation-search-grid {
  inline-size: 90%;
  max-inline-size: 24em;
}


.foundation-search-field {
  position: relative;
  z-index: 100;
}

.foundation-search-label {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAQAAAC1QeVaAAAAxElEQVR4AXXPIUuDcRDA4Zv4AUSwTLEKVoNlySyCYLO98CCsahGrX0AW/QhmBRHEJghLS4JFBBXDgrJi2In78w8v4v3S8XDh4nd0DTxLEzd2RC2EnrH07trQVDrXqbhs7FvfnBDWDKWTigOpL2oWvZpYKPjio1zVHEt7BdOtaLUtHRX8MmqjRjooeCVttPBOWi+4JT1aLaDjVLpU/5ytn840Dj1IaWSpYmi8yVlTF54qh9K8nn27usJK5fC3yvfhPx7a/AE9dYwDEfKrlAAAAABJRU5ErkJggg==);
  background-position-y: 50%;
  background-repeat: no-repeat;
  color: #b2b2b2;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  transition: left 0.4s, transform 0.4s;
  padding-left: 1.25em;
}

.foundation-search-input {
  border: 1px solid #dfdfdf;
  border-radius: 0.25em;
  box-shadow: 0 1px 0 #bfbebf;
  display: block;
  padding: 0.5em 1.75em;
  width: 100%;
}

.foundation-search-input:focus+.foundation-search-label,
.foundation-search-input:valid+.foundation-search-label {
  left: 0.5em;
  transform: translate(0, -50%);
}

.foundation-search-input:valid+.foundation-search-label {
  text-indent: -9999px;
}


/* Back Button Styling - Top Right 
.back-button-container {
  position: absolute;
  top: 50px;
  right: 100px;
}

.back-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.back-icon {
  width: 30px;
  height: 30px;
}
*?
/* Button Grid Styling */
.button-grid {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-20%);
  bottom: -20px;
  left: -50px;
  height: 100%;
  margin-left: 100px;
  /* Offset for the left panel */
}

.foundation-category-container {
  display: flex;
  flex-wrap: wrap;
  /* Wrap buttons to the next row */
  justify-content: flex-start;
  /* Align buttons to the left */
  gap: 15px;
  /* Add consistent spacing between buttons */
}

.foundation-category-btn {
  flex: 0 0 calc(33.33% - 15px);
  /* 3 buttons per row with spacing */
  padding: 10px 20px;

  border: 1px solid #00202c;
  background-color: #00202c;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  color: #FFFFFF;
  text-align: left;
  border-left: 5px solid #FFFFFF;
  text-decoration: none;
  font-size: 18px;
  margin-bottom: 2%;
  max-width: 75%;
  margin-right: 2%;
}

.foundation-category-btn:hover {
  background-color: #FFFFFF;
  color: #000000;
}


/* Background styling for video page */
.video-page-background {
  height: 100vh;
  display: flex;
  align-items: center;
  background: url('Images/Foudations background.png') no-repeat center center fixed;
  background-size: cover;
  padding: 20px;
}

/* Left Panel with Planet and Vertical Title */
.video-page-left-panel {
  position: absolute;
  display: flex;
  align-items: center;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.video-planet-left {
  width: 300px;
  height: 300px;
  left: -50px;
  transform: translateX(-50%);
  position: relative;
  bottom: -20px;
}

.video-vertical-title {
  font-size: 2rem;
  color: #FFFFFF;
  transform: translateX(-50%);
  margin-left: -150px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  position: relative;
  bottom: -20px;
}

/* Back Button Styling - Top Right */
.back-button-container {
  position: absolute;
  top: 5%;
  right: 16%;
}

.home-button-container {
  position: absolute;
  top: 5%;
  right: 20%;
}

.back-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.back-icon {
  width: 30px;
  height: 30px;
}

/* Video Section */
.video-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 100px;
}

.video-title {
  font-size: 1.2rem;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 10px;
  border-left: 2px solid #FFFFFF;
  padding-left: 10px;
}

.video-container {
  position: relative;
  width: 600px;
  height: 400px;
  border: 1px solid #FFFFFF;
}

.video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.foundation-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  border: 1px solid white;
  background-color: transparent;
  color: #FFFFFF;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  margin-top: 30px;
  letter-spacing: 7px;
}

.foundation-btn:hover {
  background-color: #FFFFFF;
  color: black;
}

.foundation-head {
  letter-spacing: 20px;
}

.foundation-bg-img {
  margin: 0;
  padding: 0;
  background: url('../../assets/images/foundation/bg.png') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  width: 100%;
}

.foundation-back-arrow {
  top: 10%;
  left: 10%;
}




/* Planets.css */
/* Universe Background */
/*.universe-container {*/
/*  min-height: 100vh;*/
/*  position: relative;*/
/*  overflow: hidden;*/
/*  padding-top: 50vh; !* Reduced padding-top to make use of more space *!*/
/*}*/

/*!* Stars background *!*/
/*.stars {*/
/*  position: absolute;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  z-index: -1;*/
/*}*/

/*!* Back Button *!*/
/*.back-button {*/
/*  top: 20px;*/
/*  left: 20px;*/
/*  font-size: 1.2rem;*/
/*  color: white;*/
/*}*/

/*!* Planets Layout *!*/
/*.planets-wrapper {*/
/*  display: flex;*/
/*  justify-content: space-evenly; !* Spread the planets evenly across the screen *!*/
/*  flex-wrap: wrap;*/
/*  gap: 3rem; !* Increase gap between planets *!*/
/*  padding: 2rem;*/
/*}*/

/*!* Space Map Container *!*/
/*.space-map-container {*/
/*  display: flex;*/
/*  flex-wrap: wrap;*/
/*  justify-content: space-evenly; !* Space planets across the width *!*/
/*  gap: 2rem;*/
/*  width: 100%;*/
/*}*/

/*!* Planet Link *!*/
/*.planet-link {*/
/*  text-decoration: none;*/
/*  color: white;*/
/*  text-align: center;*/
/*  display: flex;*/
/*  flex-direction: column; !* Ensure the text is below the image *!*/
/*  align-items: center;*/
/*  gap: 1rem; !* Add space between the image and the text *!*/
/*  transition: transform 0.3s ease, filter 0.3s ease;*/
/*}*/

/*!* Planet Container *!*/
/*.planet-container {*/
/*  position: relative;*/
/*  width: 180px; !* Larger planet size *!*/
/*  height: 180px;*/
/*  animation: moveUpDown 3s infinite ease-in-out; !* Animation for up and down movement *!*/
/*}*/

/*!* Planet Image *!*/
/*.planet-img {*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  object-fit: cover;*/
/*  border-radius: 50%;*/
/*  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));*/
/*}*/

/*!* Planet Text *!*/
/*.planet-text {*/
/*  font-size: 16px;*/
/*  font-weight: bold;*/
/*  color: white;*/
/*  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);*/
/*  margin-top: 10px; !* Adjust text position under the image *!*/
/*}*/

/*!* Hover Effects *!*/
/*.planet-link:hover .planet-container {*/
/*  transform: scale(1.1);*/
/*}*/

/*.planet-link:hover .planet-img {*/
/*  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));*/
/*}*/

/*.planet-img {*/
/*  transition: transform 0.3s ease-in-out; !* Smooth zoom effect *!*/
/*}*/

/*.planet-img:hover {*/
/*  transform: scale(1.2); !* Zoom in effect on hover *!*/
/*}*/

/*.planet-link:hover .planet-text {*/
/*  transform: scale(1.05);*/
/*}*/

/*!* Up and Down Animation for Planet Image *!*/
/*@keyframes moveUpDown {*/
/*  0%, 100% {*/
/*    transform: translateY(0); !* Start and end at normal position *!*/
/*  }*/
/*  50% {*/
/*    transform: translateY(-10px); !* Move up slightly in the middle of the animation *!*/
/*  }*/
/*}*/

/*!* Responsive Design *!*/
/*@media (max-width: 992px) {*/
/*  .planet-container {*/
/*    width: 150px;*/
/*    height: 150px;*/
/*  }*/

/*  .planet-text {*/
/*    font-size: 1rem;*/
/*  }*/
/*}*/

/*@media (max-width: 768px) {*/
/*  .planet-container {*/
/*    width: 120px;*/
/*    height: 120px;*/
/*  }*/

/*  .planet-text {*/
/*    font-size: 0.9rem;*/
/*  }*/
/*}*/

/*@media (max-width: 576px) {*/
/*  .planet-container {*/
/*    width: 100px;*/
/*    height: 100px;*/
/*  }*/

/*  .planet-text {*/
/*    font-size: 0.8rem;*/
/*  }*/
/*}*/


/* Background styling for space map */
.space-map-background {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('Images/Foudations background.png') no-repeat center center fixed;
  background-size: cover;
  perspective: 1000px;
  /* Adds depth to the scene */
}

.space-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Enables 3D transformations */
  z-index: 1;
  /* Ensure it is above the background */
}

.investing-text {
  font-size: 43px !important;
  top: 88% !important;
  font-weight: 200 !important;
}

/* General styling for planet text */
.planet-text {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #FFFFFF;
  font-weight: 500;
  text-align: center;
}

/* Common styling for planet images */
.planet-img {
  border-radius: 50%;
  display: block;
}

/* Unique classes for each planet container with specific sizes, scattered positions, and depth */
.planet-investing {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(-100px);
  /* Moves the planet deeper into the scene */

}

.planet-investing .planet-img {
  width: 570px;
  height: 570px;
}

.planet-economics {
  position: absolute;
  top: 42%;
  left: 46%;
  transform: translate(-50%, -50%) translateZ(-300px);
}

.planet-economics .planet-img {
  width: 250px;
  height: 250px;
}

.planet-personal-finance {
  position: absolute;
  bottom: -70%;
  right: 100%;
  transform: translate(500%, -80%) translateZ(-250px);
}

.planet-personal-finance .planet-img {
  width: 350px;
  height: 350px;
}

.planet-financial-institutions {
  position: absolute;
  top: 25%;
  left: 67%;
  transform: translate(-500%, 100%) translateZ(-500px);
}

.planet-financial-institutions .planet-img {
  width: 150px;
  height: 150px;
}

.planet-financial-services {
  position: absolute;
  bottom: -25%;
  left: 75%;
  transform: translate(-650%, 70%) translateZ(-600px);
}

.planet-financial-services .planet-img {
  width: 140px;
  height: 140px;
}

.planet-trading-analysis {
  position: absolute;
  top: 210%;
  right: 67%;
  transform: translate(600%, -500%) translateZ(-800px);
}

.planet-trading-analysis .planet-img {
  width: 120px;
  height: 120px;
}

.planet-empty-1 {
  position: absolute;
  top: 155%;
  right: 67%;
  transform: translate(600%, -500%) translateZ(-800px);
}

.planet-empty-1 .planet-img {
  width: 120px;
  height: 120px;
}

.planet-empty-2 {
  position: absolute;
  bottom: 8%;
  left: 70%;
  transform: translate(-650%, 70%) translateZ(-600px);
}

.planet-empty-2 .planet-img {
  width: 200px;
  height: 200px;
}

.planet-img {
  transition: transform 0.3s ease-in-out;
  /* Smooth zoom effect */
}

.planet-img:hover {
  transform: scale(1.2);
  /* Zoom in effect on hover */
}


/* General styling remains unchanged */

/* For large laptops (screen width between 1280px and 1440px) */
@media (max-width: 1440px) and (min-width: 1280px) {
  .planet-container {
    width: clamp(150px, 15vw, 350px);
    height: clamp(150px, 15vw, 350px);
  }

  .planet-text {
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  }
}

/* For MacBook Air/Pro (screen width between 1024px and 1280px) */
@media (max-width: 1280px) and (min-width: 1024px) {
  .planet-container {
    width: clamp(120px, 12vw, 300px);
    height: clamp(120px, 12vw, 300px);
  }

  .planet-text {
    font-size: clamp(0.5rem, 1.2vw, 0.8rem);
  }
}

/* For tablets (screen width between 768px and 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  .space-map-container {
    gap: 1rem;
  }

  .planet-container {
    width: clamp(100px, 10vw, 250px);
    height: clamp(100px, 10vw, 250px);
  }

  .planet-text {
    font-size: clamp(0.4rem, 1.2vw, 0.7rem);
  }
}

/* For mobile devices (screen width below 768px) */
@media (max-width: 768px) {
  .space-map-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .planet-container {
    width: clamp(80px, 20vw, 200px);
    height: clamp(80px, 20vw, 200px);
  }

  .planet-text {
    font-size: clamp(0.3rem, 1vw, 0.6rem);
  }
}

/* For small mobile devices (screen width below 480px) */
@media (max-width: 480px) {
  .planet-container {
    width: clamp(60px, 25vw, 150px);
    height: clamp(60px, 25vw, 150px);
  }

  .planet-text {
    font-size: clamp(0.3rem, 0.8vw, 0.5rem);
  }
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  z-index: 1000 !important;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 4px;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  z-index: 2000 !important;
  position: relative;
  pointer-events: auto !important;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}


/* ---------------------------------------------------------- */
/* Foundation planets row (lightweight, no external carousel) */
/* ---------------------------------------------------------- */
.orbit-hero {
  margin-top: 7vh;
}

.orbit-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 5vh 4vw 8vh;
}

.planet-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.75rem;
  width: 100%;
  perspective: 1200px;
}

.planet-card {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 150px;
}

.planet-shell {
  position: relative;
  width: clamp(96px, 14vmin, 170px);
  height: clamp(96px, 14vmin, 170px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.planet-shell .planet-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: planet-spin-axis-y 14s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.planet-card:hover .planet-shell {
  transform: translateY(-8px);
}

.planet-card:hover .planet-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.6));
}

.planet-label {
  text-align: center;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  line-height: 1.3;
  max-width: 10ch;
}

@keyframes planet-spin-axis-y {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

@media (max-width: 768px) {
  .orbit-wrapper {
    min-height: 50vh;
    padding: 4vh 3vw 6vh;
  }

  .planet-label {
    max-width: 12ch;
  }
}

/* ---------------------------------------------------------- */
/* Foundation cards grid layout */
/* ---------------------------------------------------------- */
.foundation-page-grid {
  padding-top: 6vh;
  padding-bottom: 6vh;
  padding-left: 3rem;
  padding-right: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.foundation-page-shell {
  max-width: 1240px;
  padding-left: clamp(20px, 4vw, 72px);
  padding-right: clamp(20px, 4vw, 72px);
  margin: 0 auto;
}

.foundation-top-wrapper {
  max-width: 1240px;
  padding-left: clamp(20px, 4vw, 72px);
  padding-right: clamp(20px, 4vw, 72px);
  margin: 0 auto;
  padding-top: 32px;
}

.foundation-top-row {
  display: grid;
  grid-template-columns: auto minmax(360px, 460px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.foundation-actions {
  display: flex;
  gap: 12px;
}

.foundation-search-inline {
  display: flex;
  justify-content: flex-start;
}

.foundation-search-inline .foundation-search-input {
  width: 100%;
}

.foundation-title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.1;
  color: var(--text-white);
}

.foundation-hero-text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.foundation-search-row {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.foundation-search-row .foundation-search-input {
  width: min(540px, 100%);
}

.foundation-planet-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.foundation-planet-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.5));
}

.foundation-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}

.foundation-search-input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
}

.foundation-search-input input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
}

.foundation-search-input input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.foundation-search-icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.foundation-sort select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  min-width: 140px;
}

.foundation-sort select:focus {
  outline: none;
  border-color: #4dd0ff;
}

.foundation-hero-text {
  margin: 0 1.5rem 1.5rem 1.5rem;
}

.foundation-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.foundation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
  background: linear-gradient(145deg, rgba(6, 46, 63, 0.9), rgba(3, 34, 48, 0.9));
  border: 1px solid rgba(77, 208, 255, 0.12);
  border-radius: 16px;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(77, 208, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 170px;
}

.foundation-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 208, 255, 0.35);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(77, 208, 255, 0.28);
}

.foundation-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(77, 208, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #4dd0ff;
}

.foundation-card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.foundation-card-body p {
  font-size: 0.92rem;
  line-height: 1.4;
}

.foundation-card-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

@media (max-width: 1200px) {
  .foundation-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .foundation-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .foundation-card-grid {
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foundation-planet-img {
    display: none;
  }
}

@media (max-width: 540px) {
  .foundation-card-grid {
    grid-template-columns: 1fr;
  }

  .foundation-page-grid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ---------------------------------------------------------- */
/* Theme alignment overrides (match global LMS look & feel)   */
/* ---------------------------------------------------------- */
.foundation-bg-img {
  background: var(--background);
  min-height: 100vh;
  width: 100%;
  padding: 40px 0 64px;
}

.back-button,
.home-button-container .back-button {
  background-color: var(--widget-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: var(--black);
}

.back-button:hover {
  background-color: var(--widget-bg-white);
  color: var(--black);
}

.foundation-hero-text h2,
.foundation-hero-text p {
  color: var(--black);
}

.foundation-card {
  background: var(--widget-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  color: var(--black);
}

.foundation-card-body h4 {
  color: var(--black);
}

.foundation-card-body p {
  color: var(--text-secondary);
}

.foundation-card-arrow {
  color: var(--primary);
}

.foundation-search-input {
  background: var(--widget-bg);
  border: 1px solid var(--border-color);
  color: var(--black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.foundation-search-input input {
  color: var(--black);
}

.foundation-search-input input::placeholder {
  color: var(--text-secondary);
}

.foundation-search-icon {
  color: var(--primary);
}

.foundation-category-btn {
  background: var(--widget-bg);
  border: 1px solid var(--border-color);
  color: var(--black);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.foundation-category-btn:hover {
  background: var(--widget-bg-white);
  color: var(--black);
}

.foundation-category-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.foundation-categories-shell {
  max-width: 1240px;
  padding-left: clamp(20px, 4vw, 72px);
  padding-right: clamp(20px, 4vw, 72px);
  margin: 0 auto;
}

.foundation-category-btn {
  width: 100%;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  box-sizing: border-box;
}

.foundation-category-btn span {
  margin-left: auto;
}

.foundation-btn {
  background: linear-gradient(90deg, var(--theme-primary), #ff00cc);
  border: none;
  color: #fff;
  letter-spacing: 2px;
}

.foundation-btn:hover {
  background: linear-gradient(90deg, #ff00cc, var(--theme-primary));
  color: #fff;
}

.foundation-layout {
  position: relative;
  min-height: 100vh;
  overflow: auto;
}

.foundation-layout .blur-background {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.foundation-layout .content {
  position: relative;
  z-index: 1;
}

.foundation-surface {
  min-height: 100vh;
  padding: 0 0 80px;
  background:
    radial-gradient(circle at 18% 22%, rgba(87, 185, 255, 0.20), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255, 0, 204, 0.20), transparent 34%),
    radial-gradient(circle at 48% 65%, rgba(104, 30, 235, 0.18), transparent 40%),
    linear-gradient(135deg, #15102b 0%, #1a1235 45%, #0f0b22 100%);
  color: var(--text-primary);
}

.foundation-bg-img {
  background: transparent;
}

.foundation-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.foundation-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.foundation-card-body h4 {
  color: var(--text-white);
}

.foundation-card-body p {
  color: rgba(255, 255, 255, 0.78);
}

.foundation-search-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.foundation-search-input input {
  color: var(--text-white);
}

.foundation-search-input input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}