body {
  background: linear-gradient(135deg, #125670, #163057) no-repeat fixed; 
  background-size: cover; /* Ensures full coverage without repetition */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh; /* Ensure at least full viewport height */
  margin: 0;
  font-family: Arial, sans-serif;
}

.highlight {
  background-color: rgba(150, 150, 0, 0.90); /* Yellow with 50% opacity */
  padding: 8px 8px;
  font-size: 150%; /* Doubles the text size */
  font-weight: bold; /* Optional: Makes it stand out more */
  line-height: 1.65em;
}

.decorative-divider {
  border: none; /* Remove default border */
  height: 2px; /* Set thickness */
  background: linear-gradient(to right, #6dbbd9, #7fb3ea, #3e68cb); /* Gradient effect */
  margin: 30px 0; /* Add spacing above and below */
}


.audio-player {
  position: sticky;
  top: 80px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background-color: #125670;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  transition: padding 0.5s ease, top 0.5s ease;
  margin-bottom: 20px; /* Add some space between audio player and content */
}

.audio-player p {
  font-size: 13px;
  color: white;
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin: 0;
  padding-top: 1px;
  opacity: 1; /* Ensure it's visible by default */
}

.audio-player.scrolled {
  top: 50px;
  height: 40px;
  padding: 3px 0;
}

.audio-player.scrolled p {
  font-size: 11px;
  opacity: 0; /* Fade out completely when scrolled */
  transform: translateY(-10px); /* Optional: Move up slightly while fading */
}

.audio-player audio {
  width: 260px;
  margin: 0;
  display: block;
}

.nav-item {
  position: relative; /* Ensure ripple effect is positioned correctly */
  overflow: hidden; /* Ensure ripple effect is contained */
}

.nav-item:active .ripple {
  animation: ripple 6s ease-out; /* Slow down the animation to 1/4 speed */
}

.nav-item .ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.7); /* Make it more visible */
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none; /* Ensure ripple doesn't interfere with clicks */
}

@keyframes ripple {
  to {
    transform: scale(15); /* Increase the size */
    opacity: 0;
  }
}
/* Ensure all main content is centered */
.main-content {
  display: block;
  width: 100%; /* Changed from 80% to ensure full width */
  max-width: 1600px;
  padding: 0;
  text-align: center;
  margin: 0 auto;
}

/* Ensure the navbar stretches full width but content inside is centered */
#navbar {
  width: 100%; /* Use 100% instead of 100vw */
  max-width: 100%; /* Prevent it from exceeding viewport width */
  box-sizing: border-box; /* Ensure padding is included in width */
  display: flex;
  justify-content: center; /* Center items inside */
  position: relative; /* Prevent interference with sticky */
}

#gameContainer {
  overflow: hidden;
}
#gameCanvas {
  display: block;  /* removes small gaps around inline elements */
  width: 100%;
  height: 100%;
}

.game-instructions {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 10;
  transition: opacity 0.5s ease;
  pointer-events: none;
  margin: 0 auto;
  width: 90%;
}

/* Update the fade-out class to use opacity */
.fade-out {
  opacity: 0 !important;
  transition: opacity 1.5s ease; /* Match the transition time in JS */
  pointer-events: none !important; /* Stop capturing clicks when faded */
}

.hidden {
  display: none !important;
}


.top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #125670;
  padding: 15px 0;
  z-index: 1000;
  transition: padding 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-nav-bar.scrolled {
  padding: 5px 0;
}

.top-nav-bar.scrolled .nav-item {
  font-size: 0.8em;
  padding: 5px 10px;
}

/* Ensure global <a> styles do not override nav styles */
.top-nav-bar a, .menu-links a {
  text-decoration: none !important;
  color: inherit !important;
}


/* Ensure nav items and links inside do not get underlined or recolored */
.nav-item {
  position: relative; /* Ensure ripple effect is positioned correctly */
  font-family: "Avenir Next", Arial, sans-serif;
  font-size: 1rem;
  color: white;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  white-space: pre-wrap;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add a small white line as a divider */
/* Add a divider after every nav-item except the last one */
.nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -5px; /* Move slightly left so it's centered between buttons */
  top: 50%;
  transform: translateY(-50%);
  height: 60%; /* Adjust height to match the button height */
  width: 1px;
  background-color: rgba(255, 255, 255, 0.5); /* White with transparency */
  pointer-events: none; /* Prevents the line from being affected by hover */
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  transform: scale(1.05);
}

.nav-divider {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  height: 50%;
  margin: 0 10px;
  transition: height 0.3s ease;
}

.nav-item:hover ~ .nav-divider {
  height: 70%;
}

/* Quad Grid Layout */
.quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
  justify-items: center;
  max-width: 1080px;
  margin: 0 auto; /* Centers the entire grid */
}

.quad-grid .card {
  width: 540px; /* 1.5 times the original width */
  height: 540px; /* 1.5 times the original height */
}

.quad-grid .card-inner {
  transition: transform 0.8s;
}

.quad-grid .card:hover .card-inner {
  transform: rotateY(180deg);
}


.hamburger-menu {
  display: flex;
  align-items: center;
}

.hamburger-icon {
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

/* Menu Links Styling */
.menu-links {
  position: fixed;
  background: linear-gradient(135deg, #125670, #163057);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  display: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  width: 280px;
  max-height: 90vh;
  overflow-y: auto;
}

.menu-links.active {
  opacity: 1;
  visibility: visible;
  display: block;
  transform: translateY(0);
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}

.menu-links a {
  color: white !important; /* Force white color for available items */
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.menu-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-links a.disabled {
  color: rgba(255, 255, 255, 0.4) !important; /* Grey color for disabled items */
  opacity: 1; /* Reset opacity to use color instead */
  pointer-events: none;
  cursor: not-allowed;
  background-color: transparent !important; /* Prevent hover effect */
}

.menu-links .icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* Mobile Styles */
@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }

  .top-nav-bar {
    justify-content: flex-start;
    padding: 10px 15px;
  }

  .hamburger-menu {
    margin-right: auto;
  }

  /* Hide the nav-divider in mobile mode */
  .nav-divider {
    display: none;
  }

  .menu-links {
    width: auto;
    max-width: 320px;
  }

  .menu-links a {
    padding: 12px 15px;
    font-size: 16px;
  }
}

/* Scrollbar styling for menu */
.menu-links::-webkit-scrollbar {
  width: 6px;
}

.menu-links::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.menu-links::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.menu-links::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.9); /* Increase visibility */
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 3s ease-out; /* Extend the animation duration */
}

@keyframes ripple {
  to {
    transform: scale(20); /* Further increase the size */
    opacity: 0;
  }
}



/* Overlay Content */
.overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  height: auto;
  padding: 0;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 cards per row */
  gap: 10px;
  padding: 5px;
  text-align: center;
  justify-content: center;
}



.card {
  perspective: 1000px;
  width: 540px; /* Adjusted size */
  height: 360px;
}

header {
  margin-bottom: 20px;
  margin-top: 120px;
  text-align: center;
}

header h1 {
  font-family: "Avenir Next", Arial, sans-serif;
  font-size: 3rem;
  color: white;
  margin-bottom: 10px;
  margin-top: 40px; /* Adjusted to match other pages */
}

header h2 {
  font-family: "Avenir Next", Arial, sans-serif;
  font-size: 1.5rem;
  color: #f5b71a;
  margin-bottom: 20px;
}

header p {
  font-family: "Avenir Next", Arial, sans-serif;
  font-size: 1rem;
  color: white;
  max-width: 600px;
  margin: 0 auto;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

/* Remove the direct hover style */
/* .card:hover .card-inner {
  transform: rotateY(180deg);
} */

/* Add new class for flippable state */
.card.flippable:hover .card-inner {
  transform: rotateY(180deg);
}

/* Add new class for clickable state */
.card.clickable {
  cursor: pointer;
}

.card.clickable .card-inner {
  transition: transform 0.6s;
}

/* No hover effect for clickable cards */
.card.clickable:hover .card-inner {
  transform: none;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.card-front {
  background-color: #125670; /* Front color */
  color: white;
  transform: rotateY(0deg);
}

.card-back {
  background-color: #F5B71A; /* Back color */
  color: #125670;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
  position: relative;
  font-size: 1rem; /* Base font size */
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.play-pause-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 11;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  display: none;
}

.play-pause-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.button-container {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.small-button {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

.small-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Responsive Design */

/* Medium Screens: 2 cards per row */
@media (max-width: 1600px) {

  .card-grid {
    display: grid;
    grid-template-columns: 485px 485px;
    gap: 5px; /* Always the same */
    justify-content: center;
    max-width: calc(540px * 2 + 5px); /* Ensures no extra space */
    margin: 0 auto; /* Centers the grid in the viewport */
}

  .card {
    width: 480px; 
    height: 320px;
  }
  
}

@media (max-width:1500px) {
    /* Quad Grid Layout */
    .quad-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      padding: 8px;
      justify-items: center;
    }
  
    .quad-grid .card {
      width: 480px; /* 1.5 times the original width */
      height: 480px; /* 1.5 times the original height */
    }
  
}

@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: 1fr; /* Single-column layout */
    justify-content: center; /* Center the grid itself */
    align-items: center; /* Center items inside the grid */
    display: flex; /* Change to flexbox for better centering */
    flex-direction: column; /* Stack cards vertically */
    width: 100%; /* Ensure it spans full width */
    margin: 0 auto; /* Centers the grid in the viewport */
  }

  .card {
    width: 480px; /* Ensure card size is reasonable */
    height: 320px;
  }

  .top-nav-bar {
    font-size: 0.8em;  /* Reduce overall font size */
    padding: 5px 10px; /* Reduce navbar padding */
    height: 50px;
    /*padding: 5px 0px;*/
    box-sizing: border-box; 
    background: linear-gradient(90deg, #022935, #2a1a38);
  }

  .nav-item {
    font-size: 0.8em;  /* Shrink individual nav items */
    padding: 5px 10px; /* Adjust spacing */
  }

  .nav-item:not(:last-child)::after {
    height: 40%; /* Reduce divider height */
  }

  .audio-player {
    /* Remove top/bottom padding so it "looks" shorter */
    top: 50px; /* Moves up with the shrunken navbar */
    height: 60px; /* Ensure consistency when scrolling */
    padding: 3px 0;
  }

}

@media (max-width: 500px) {
  /* Center text content */
  .overlay {
      width: 85%; /* Reduce width slightly to fit mobile screens */
      max-width: 360px; /* Prevent excessive stretching */
      margin: 0 auto; /* Fully center the content */
      text-align: center;
  }

  /* Keep a single-column layout and force centering */
  .card-grid {
      grid-template-columns: 1fr;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      margin: 0 auto;
  }

  .card {
    width: 360px !important; 
    height: 250px !important;
  }

  .small-button {
    border-radius: 3px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
  }

  /* Quad Grid Layout (if used on mobile) */
  .quad-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      padding: 8px;
      justify-items: center;
  }

  .quad-grid .card {
      width: 80%;
      max-width: 340px;
      height: auto;
  }

  /* Improve navbar appearance for mobile */
  .top-nav-bar {
      font-size: 0.7em;  /* Further reduce font size */
      padding: 1px 1px; /* Adjust padding for better fit */
      display: flex;
      flex-wrap: wrap; /* Allow items to break into multiple rows */
      justify-content: center;
  }

  /* Reduce nav item size */
  .nav-item {
      font-size: 0.7em;
      padding: 1px 1px; /* Minimize padding */
      flex: 1 1 auto; /* Allow flexible spacing */
      text-align: center;
  }

  .nav-item:not(:last-child)::after {
      height: 25%; /* Further shrink dividers */
  }

  /* Ensure hamburger menu looks right */
  .hamburger-menu {
      display: flex;
      align-items: center;
      justify-content: center;
  }
}


.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: black;
}

.close-popup:hover {
  color: rgb(255, 230, 0);
}

.fullscreen-button {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
}

.fullscreen-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Remove border from the outer .card */
.card:first-child {
  border: none; /* No border here */
}

/* Add the border directly to the flipping card faces */
.card:first-child .card-front,
.card:first-child .card-back {
  border: 3px solid #d6d5d1; /* Add border to front and back so it flips properly */
  border-radius: 14px; /* Ensure it stays rounded */
}

.featured-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #F5B71A;
  color: black;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px; /* Rounded edges for the label */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4); /* Optional: Adds a subtle shadow */
  max-width: 100%; /* Ensure it doesn't exceed the container's width */
}


/* Framework Page Specific Styles */
.framework-header {
  margin-top: 120px;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.framework-header h1 {
  font-family: "Avenir Next", Arial, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #F5B71A;
}

.framework-header p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.flip-instruction {
  font-weight: bold;
  color: #F5B71A;
}

.flip-btn {
  background-color: #F5B71A;
  color: #163057;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.flip-btn:hover {
  background-color: #ffca4d;
  transform: scale(1.05);
}

/* Framework Container Styles */
.framework-container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto 20px auto;
  perspective: 3000px;
}

.framework-front,
.framework-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.framework-front {
  background-color: white;
  transform: rotateY(0deg);
}

.framework-back {
  background-color: white;
  transform: rotateY(180deg);
}

.framework-card.flipped {
  transform: rotateY(180deg);
}

.framework-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hotspot Styles */
.hotspot {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.hotspot-indicator {
  width: 20px;
  height: 20px;
  background-color: rgba(245, 183, 26, 0.7);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 183, 26, 0.7);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(245, 183, 26, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 183, 26, 0);
  }
}

.hotspot:hover .hotspot-indicator {
  background-color: rgba(245, 183, 26, 1);
  transform: scale(1.2);
}

/* Position the hotspots based on the framework image */
/* Front Side Hotspots */
#keen_framework_overview {
  top: 6%;
  left: 25%;
  width: 25%;
  height: 15%;
}

#keen_engineer_we_need {
  top: 2%;
  left: 39%;
  width: 30%;
  height: 15%;
}

#keen_framework_skills {
  top: 40%;
  left: 15%;
  width: 25%;
  height: 30%;
}

#keen_EM {
  top: 30%;
  right: 34%;
  width: 25%;
  height: 15%;
}

#keen_mindset {
  top: 52%;
  right: 24%;
  width: 25%;
  height: 15%;
}

#keen_skills_and_mindset {
  top: 82%;
  left: 18%;
  width: 40%;
  height: 15%;
}

/* Back Side Hotspots */
#keen_continuum {
  top: 15%;
  left: 28%;
  width: 30%;
  height: 10%;
}

#keen_em_to_business {
  top: 43%;
  left: 13%;
  width: 80%;
  height: 20%;
}

#keen_as_a_process {
  top: 70%;
  left: 10%;
  width: 80%;
  height: 20%;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: auto;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #104b60, #1e3969);
  margin: 5% auto;
  padding: 25px;
  width: 80%;
  max-width: 800px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: white;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #F5B71A;
  transform: scale(1.2);
}

#modalTitle {
  color: #F5B71A;
  font-size: 1.8rem;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
}

.modal-description {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
  max-height: 300px; /* Increased from 200px to align with video controls */
  overflow-y: auto;
  padding-right: 10px;
  /* Add custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #F5B71A rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar styling for webkit browsers */
.modal-description::-webkit-scrollbar {
  width: 8px;
}

.modal-description::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.modal-description::-webkit-scrollbar-thumb {
  background-color: #F5B71A;
  border-radius: 4px;
}

.video-player-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circular-video-mask {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  background-color: #163057;
  border: 5px solid #F5B71A;
  box-shadow: 0 0 20px rgba(245, 183, 26, 0.5);
}

.circular-video-mask video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
}

/* First, ensure the default video controls are fully hidden */
.circular-video-mask video::-webkit-media-controls,
.circular-video-mask video::-webkit-media-controls-panel,
.circular-video-mask video::-webkit-media-controls-play-button,
.circular-video-mask video::-webkit-media-controls-volume-slider,
.circular-video-mask video::-webkit-media-controls-timeline,
.circular-video-mask video::-webkit-media-controls-current-time-display,
.circular-video-mask video::-webkit-media-controls-time-remaining-display,
.circular-video-mask video::-webkit-media-controls-fullscreen-button,
.circular-video-mask video::-webkit-media-controls-mute-button,
.circular-video-mask video::-webkit-media-controls-toggle-closed-captions-button,
.circular-video-mask video::-webkit-media-controls-enclosure,
.circular-video-mask video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  appearance: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hide Firefox controls */
.circular-video-mask video::-moz-media-controls,
.circular-video-mask video::-moz-media-controls-panel {
  display: none !important;
}

/* Ensure the video has no default controls attribute */
.circular-video-mask video {
  /* Add this to your existing styles */
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none; /* This prevents clicks on the video from toggling play/pause */
}

/* Remove the video play overlay completely */
.video-play-overlay {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Remove the play button icon */
.play-button-icon, 
.play-button-icon::before,
.play-button-icon.playing::before {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.video-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.video-control-btn {
  padding: 8px 16px;
  background-color: #F5B71A;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.video-control-btn:hover {
  background-color: #e0a800;
}

.modal-footer {
  margin-top: 20px;
  text-align: center;
}

.modal-btn {
  background-color: #F5B71A;
  color: #163057;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background-color: #ffca4d;
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .framework-header h1 {
    font-size: 2rem;
  }
  
  .modal-content {
    width: 90%;
    padding: 15px;
  }
  
  .circular-video-mask {
    width: 220px;
    height: 220px;
  }
  
  .modal-description {
    font-size: 1rem;
  }
  
  #modalTitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .framework-header h1 {
    font-size: 1.8rem;
  }
  
  .framework-header p {
    font-size: 0.9rem;
  }
  
  .circular-video-mask {
    width: 180px;
    height: 180px;
  }
  
  .video-control-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  .modal-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

/* Base font size for card backs */
.card-back {
  /* Keep all existing properties */
  font-size: 1rem; /* Add this line */
}

/* Responsive font sizes at breakpoints */
@media (max-width: 1600px) {
  .card-back {
    font-size: 0.95rem;
  }
}

@media (max-width: 1000px) {
  .card-back {
    font-size: 0.9rem;
  }
}

@media (max-width: 500px) {
  .card-back {
    font-size: 0.85rem;
  }
}

/* Card Quote Style - Add this entire block */
/* Revised card-quote style to ensure it's smaller than the card */
.card-quote {
  background-color: #125670;
  color: #F5B71A;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  
  /* Fixed positioning */
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  
  /* Explicit width/height values are removed */
  /* width and height will be determined by the top/left/right/bottom values */
  z-index: 10;
  
  /* Ensure content is vertically centered */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  

  font-size: 1.1rem;
  line-height: 1.4;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: opacity 1.5s ease;
}

.quote-author {
  display: block;
  margin-top: 8px;
  font-style: italic;
  font-size: 0.9em;
}

/* Adjust quote size for different screen sizes */
@media (max-width: 1600px) {
  .card-quote {
    font-size: 1rem;
    padding: 12px 16px;
  }
}

@media (max-width: 1000px) {
  .card-quote {
    font-size: 0.95rem;
    padding: 10px 14px;
  }
}

@media (max-width: 500px) {
  .card-quote {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* Add a class for the common background image */
.card-front.common-background {
  background-image: url('./images/briefcase_common.png') !important;
  display: none; /* Hidden by default in the 3-column layout */
}

/* Individual backgrounds will be shown by default (3-column layout) */
.card-front.individual-background {
  display: block;
}

/* For medium screens (2 columns) */
@media (max-width: 1600px) {
  /* Hide individual backgrounds */
  .card-front.individual-background {
    display: none;
  }
  
  /* Show common background */
  .card-front.common-background {
    display: block;
  }
}

/* For small screens (1 column) - ensure common background */
@media (max-width: 1000px) {
  .card-front.individual-background {
    display: none;
  }
  
  .card-front.common-background {
    display: block;
  }
}

.quartz-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.quartz-modal-content {
  background-color: #fff;
  border-radius: 12px;
  width: 90%;
  height: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.quartz-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
  z-index: 1010;
}

.quartz-modal-iframe-container {
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.quartz-modal-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .quartz-modal-content {
    background-color: #222;
  }
  
  .quartz-modal-close {
    color: #ddd;
  }
}

/* Promo image in framework */
.promo-image-container {
  position: absolute;
  top: 2%;
  left: 1%; 
  width: 8%; 
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.promo-image-container:hover {
  transform: scale(1.05);
}

.promo-image {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; /* Kept your 20px width */
  height: 20px; /* Kept your 20px height */
  background-color: rgba(245, 183, 26, 0.8);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-icon:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px; /* Smaller triangle */
  border-color: transparent transparent transparent white;
}

.promo-image-container:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(245, 183, 26, 1); /* Brighter on hover */
}

/* Promo Video Modal Styles */
.promo-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.promo-modal.show {
  display: block;
  opacity: 1;
}

.promo-modal-content {
  position: relative;
  background: linear-gradient(135deg, #104b60, #1e3969);
  margin: 2% auto; /* Reduced from 5% to 2% */
  padding: 25px;
  width: 90%; /* Increased from 80% to 90% */
  max-width: 1400px; /* Increased from 800px */
  height: 85vh; /* Added to make it fill most of the viewport height */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: white;
  transform: scale(0.9);
  transition: all 0.5s ease;
  display: flex; /* Added for flexible layout */
  flex-direction: column; /* Stack children vertically */
}

.promo-modal.show .promo-modal-content {
  transform: scale(1);
}

.promo-close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-close-modal:hover {
  color: #F5B71A;
  transform: scale(1.2);
}

#promoModalTitle {
  color: #F5B71A;
  font-size: 1.8rem;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.promo-modal-body {
  margin: 10px 0; /* Reduced from 20px to 10px */
  flex-grow: 1; /* Added to allow this to expand */
  display: flex; /* Added for flexible layout */
  flex-direction: column; /* Stack children vertically */
}

.promo-video-container {
  width: 100%;
  position: relative;
  padding-bottom: 0; /* Removed 16:9 aspect ratio */
  height: 100%; /* Changed from 0 to fill container */
  overflow: hidden;
  flex-grow: 1; /* Added to allow this to expand */
}

.promo-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  outline: none;
  object-fit: contain; /* Added to maintain aspect ratio */
}

.promo-modal-footer {
  margin-top: 10px; /* Reduced from 20px to 10px */
  text-align: center;
}

/* Responsive styles for promo modal */
@media (max-width: 768px) {
  .promo-modal-content {
    width: 95%; /* Increased to use more screen space */
    padding: 15px;
    height: 90vh; /* Increased to use more vertical space on smaller screens */
  }
  
  #promoModalTitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .promo-modal-content {
    width: 98%; /* Increased to use almost all screen width */
    padding: 10px;
    margin: 1% auto; /* Reduced margin to position higher */
  }
  
  #promoModalTitle {
    font-size: 1.3rem;
  }
}

/* Add this to your styles.css file */

/* Add these styles to your styles.css file */

/* Hidden video container - shows placeholder until explicitly played */
.video-hidden {
  position: relative;
}

.video-hidden video {
  opacity: 0; /* Hide the video but keep its dimensions */
}

.video-hidden::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 98%;
  background-color: rgba(18, 86, 112, 0.8); /* Match your card back color with slight transparency */
  border-radius: 10px;
  z-index: 5; /* Higher than video but lower than buttons */
}

/* Placeholder text for video */
.video-hidden::after {
  content: "Use the button below to view the video";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1rem;
  text-align: center;
  z-index: 6;
  width: 80%;
}

/* Ensure buttons stay above the overlay */
.video-container button {
  z-index: 10;
}

.iframe-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: white;
  font-size: 16px;
  background-color: rgba(18, 86, 112, 0.8);
  border-radius: 8px;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(18, 86, 112, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Special styling for game containers */
.iframe-container[data-game] {
  height: 100%;
  min-height: 200px;
  padding-bottom: 0; /* Remove aspect ratio padding for games */
}

/* Special styling for insight game */
.iframe-container[data-game="insight"] {
  background-color: #f0f0f0;
  height: 100%;
  min-height: 250px;
  padding-bottom: 0;
}

/* Ensure small screens have adequate height */
@media (max-width: 500px) {
  .iframe-container[data-game] {
    min-height: 180px;
    height: 180px;
  }
  
  .iframe-container[data-game="insight"] {
    min-height: 200px;
    height: 200px;
  }
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-unloaded {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-align: center;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
}

.iframe-unloaded:hover {
  background-color: #e0e0e0;
  color: #125670;
}



/* Disruption Grid Color Gradients */
.disruption-element:nth-child(n) .card-front {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.3), 
        rgba(244, 67, 54, 0.3)
    ), linear-gradient(135deg, #125670, #163057);
}

/* Gradient intensity based on position */
.disruption-element:nth-child(-n+4) .card-front {
    /* Top row - most radical */
    background: linear-gradient(135deg, 
        rgba(244, 67, 54, 0.5), 
        rgba(204, 67, 54, 0.5)
    ), linear-gradient(135deg, #125670, #163057);
}

.disruption-element:nth-child(n+13):nth-child(-n+16) .card-front {
    /* Bottom row - least radical */
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.5), 
        rgba(76, 175, 80, 0.5)
    ), linear-gradient(135deg, #125670, #163057);
}

/* Left to right gradient for timing */
.disruption-element:nth-child(4n+1) .card-front {
    /* Leftmost column - sooner */
    background: linear-gradient(90deg, 
        rgba(76, 175, 80, 0.4), 
        transparent
    ), var(--card-gradient);
}

.disruption-element:nth-child(4n) .card-front {
    /* Rightmost column - later */
    background: linear-gradient(90deg, 
        transparent, 
        rgba(244, 67, 54, 0.4)
    ), var(--card-gradient);
}

/* Axis arrows styling */
.x-axis-arrow, .y-axis-arrow {
    font-size: 24px;
    color: white;
    opacity: 0.8;
}

.y-axis-arrow {
    transform: rotate(90deg);
    margin: 20px 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .disruption-grid {
        gap: 5px;
        padding: 10px;
    }

    .element-number {
        font-size: 0.7em;
    }

    .explore-button {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .x-axis, .y-axis {
        font-size: 0.8em;
    }
}

/* Chat Interface Styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-sizing: border-box;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.chat-header h3 {
  margin: 0;
  color: #125670;
  font-size: 1.1em;
}

.exchange-counter {
  font-size: 0.85em;
  color: #666;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 8px;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 8px;
  height: calc(100% - 120px); /* Adjust based on header and input heights */
  text-align: left;
}

.message {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 0.9em;
  line-height: 1.4;
}

.message.system {
  background-color: #e3f2fd;
  color: #125670;
  margin-right: auto;
  border-top-left-radius: 0;
  text-align: left;
}

.message.user {
  background-color: #125670;
  color: white;
  margin-left: auto;
  border-top-right-radius: 0;
}

.chat-input-container {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.chat-input-container textarea {
  flex: 1;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
  font-family: inherit;
  font-size: 0.9em;
  height: 36px;
  min-height: 36px;
}

.chat-input-container button {
  padding: 6px 12px;
  background-color: #125670;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9em;
  white-space: nowrap;
}

.chat-input-container button:hover {
  background-color: #0d3d4d;
}

.chat-input-container button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Add responsive adjustments */
@media (max-width: 1600px) {
  .chat-container {
    padding: 8px;
  }
  
  .chat-messages {
    height: calc(100% - 110px);
  }
  
  .message {
    font-size: 0.85em;
    padding: 5px 8px;
  }
}

@media (max-width: 500px) {
  .chat-container {
    padding: 6px;
  }
  
  .chat-header h3 {
    font-size: 1em;
  }
  
  .chat-messages {
    height: calc(100% - 100px);
  }
  
  .message {
    font-size: 0.8em;
    padding: 4px 6px;
  }
  
  .chat-input-container textarea {
    height: 32px;
    min-height: 32px;
  }
}

.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-item.disabled:hover {
    background-color: transparent;
    transform: none;
}

.nav-item.disabled ~ .nav-divider {
    opacity: 0.5;
}

/* Feedback Button Styles */
.feedback-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.feedback-btn {
  background-color: #125670;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.feedback-btn:hover {
  background-color: #0e4a5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Feedback Modal Styles */
#feedbackModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#feedbackModal.show {
  display: block;
  opacity: 1;
}

#feedbackModal .modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%; /* Increased from 80% */
  max-width: 900px; /* Increased from 600px */
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 2px solid white; /* Added white border */
}

#feedbackModal.show .modal-content {
  transform: scale(1);
}

#feedbackModal .close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #125670;
}

#feedbackModal .close-modal:hover {
  color: #0e4a5c;
}

#feedbackModal h2 {
  color: #125670;
  margin-bottom: 20px;
  text-align: center;
}

#feedbackModal .modal-body {
  padding: 20px;
  min-height: 200px;
  background-color: white;
  border-radius: 6px;
}

/* Add padding to the Cognito form container */
#cognitoForm {
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .feedback-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  #feedbackModal .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }
  
  #feedbackModal .modal-body {
    padding: 15px;
  }
  
  #cognitoForm {
    padding: 15px;
  }
}

/* About Page Styles */
.about-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  background-image: none;
  text-align: left;
  box-sizing: border-box;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: justify;
  margin: 0 auto 1.5em;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Form container styles */
.form-container {
  background-color: white;
  padding: 20px;
  border-radius: 4px;
  margin: 20px auto;
  width: 66.67%;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Briefcase image styles */
.briefcase-image {
  display: block;
  width: 100%;
  max-width: 590px;
  height: auto;
  margin: 40px auto 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-content {
    padding: 15px 0; /* Adjusted vertical padding */
  }
  
  .about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 20px;
  }

  .form-container {
    padding: 15px;
    margin: 15px auto;
    width: 80%;
  }

  .briefcase-image {
    max-width: 800px;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .about-content {
    padding: 10px 0; /* Adjusted vertical padding */
  }
  
  .about-content p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 20px;
  }

  .form-container {
    padding: 10px;
    margin: 10px auto;
    width: 90%;
  }

  .briefcase-image {
    max-width: 800px;
    margin-top: 20px;
  }
}

/* PDF Viewer Modal Styles */
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.pdf-modal-content {
  position: relative;
  background: linear-gradient(135deg, #104b60, #1e3969);
  margin: 2% auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
}

.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 183, 26, 0.3);
}

.pdf-modal-header h2 {
  color: #F5B71A;
  margin: 0;
  font-size: 1.5rem;
}

.pdf-close-modal {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pdf-close-modal:hover {
  color: #F5B71A;
  transform: scale(1.1);
}

.pdf-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.pdf-control-btn {
  background-color: #F5B71A;
  color: #125670;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pdf-control-btn:hover {
  background-color: #ffca4d;
  transform: scale(1.05);
}

#pageInfo {
  color: white;
  margin: 0 15px;
  font-size: 0.9rem;
}

.pdf-container {
  flex: 1;
  overflow: auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#pdfCanvas {
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdf-modal-content {
    width: 95%;
    margin: 1% auto;
    padding: 15px;
  }

  .pdf-controls {
    gap: 5px;
  }

  .pdf-control-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  #pageInfo {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .pdf-modal-content {
    width: 98%;
    margin: 1% auto;
    padding: 10px;
  }

  .pdf-controls {
    flex-direction: column;
    gap: 8px;
  }

  .pdf-control-btn {
    width: 100%;
    padding: 8px;
  }
}

.main-content > .overlay {
  width: 100%;
  margin: 0 auto;
}

.main-content header {
  width: 100%;
  text-align: center;
}

.main-content .about-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  text-align: left;
}

/* Framework Page Mobile Adjustments */
@media (max-width: 500px) {
  .framework-header {
    margin-top: 80px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }

  .framework-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .framework-header p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .framework-container {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

/* Card flipping behavior for general cards */
.card.flippable:hover .card-inner {
  transform: rotateY(180deg);
}

.card.clickable {
  cursor: pointer;
}

.card.clickable .card-inner {
  transition: transform 0.6s;
}

.card.clickable:hover .card-inner {
  transform: none;
}

/* Framework-specific card styles - independent from general card behavior */
.framework-card {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  transform-style: preserve-3d;
  transition: transform 1.5s ease;
}

/* Framework card flip class */
.framework-card.flipped {
  transform: rotateY(180deg);
}

.framework-front,
.framework-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.framework-front {
  z-index: 1;
}

.framework-back {
  transform: rotateY(180deg);
}