/* --- Desktop Layout Styles for Blueprint Page --- */

/* General Page Styles */
.page-wrapper {
  color: #E2E7EB; /* Parchment text color from screenshot */
  font-family: 'Times New Roman', Times, serif;
   border: 15px solid #000000;
 border-top: 0px;
}

/* Background image styling */
.page-wrapper::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #674c5b;
  background-size: contain;
  mask-image: radial-gradient(circle at center, rgb(255, 255, 255) 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, rgb(255, 255, 255) 70%, transparent 90%);
}

/* Adjusted positions for page content */
.title-container {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    text-align: center;
    font-variant: small-caps;
    font-size: 1.8rem;
    z-index: 2; /* Ensure it's above the background */
}

/* Main 3-Column Grid Layout */
.blueprint-content-grid {
    display: grid;
    grid-template-columns: 25% 1fr 25%;
    align-items: start;
    gap: 30px;
    padding: 120px 20px 0px 20px;
    position: relative;
    z-index: 1;
}

/* Side Column Styling */
.side-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}
.left-column {
    text-align: right;
}
.right-column {
    text-align: left;
}
.text-block h3 {
    font-variant: small-caps;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-align: center;
}
.text-block p {
    margin: 0;
    text-align: center;
    font-size: 1.3rem;
}

/* Center Column & Image Styling */
.center-column {
    text-align: center;
}
.blueprint-image-container {
    position: relative; /* Needed for overlay positioning */
    width: 100%;
    margin: 0 auto;
}
.blueprint-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border: 4px solid #a39589;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

.below-image-text {
    margin-top: 25px;
    padding: 0 10px;
    font-size: 1.4rem;
    text-align: center;
    width: 90%;
    margin: 0 auto 0;
}

/* Quote at the bottom */
.quote-container {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 90%;
    margin: 0px auto 0;
    Font-size: 1.3rem;
    margin-bottom: 20px;
}

.quote-container p {
  margin: 0px;
}


/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .layout-container {
    background-image: url('../images/mobile_background_dark.jpg');
  }
  
  /* Make the 'Go Back' button visible and position it */
  .go-back-button {
    display: inline-block;
    position: absolute;
    top: 10px; 
    left: 15px;
    z-index: 1002; /* Ensure it's above page content */
  }

  /* Make the page wrapper a flex container to enable ordering */
  .page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 5px 30px 5px;
  }

  .page-wrapper::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: contain;
  mask-image: radial-gradient(circle at center, rgb(255, 255, 255) 10%, transparent 950%);
  -webkit-mask-image: radial-gradient(circle at center, rgb(255, 255, 255) 40%, transparent 95%);
}

  /* Reset positions for mobile flow */
  .title-container {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 95%;
    text-align: center;
    margin: 0 auto 5px auto;
    padding-top: 20px;
    font-size: 1.5rem;
  }

  .title-container h2{
    margin: 0px;
  }

  h3 {
    margin: 0px;
  }
  
  .blueprint-content-grid {
      grid-template-columns: 1fr; /* Stack columns */
      padding: 0 0px 20px 0px;
      gap: 10px;
  }

  .blueprint-image-container {
    border: none;
    padding-bottom: 10px;
  }
  
  .side-column .left-column {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .side-column .right-column {
    padding-top: 10px;
    padding-bottom: 10px;
  }
 
  .side-column {
    text-align: center; /* Center side text on mobile */
    margin: 0;
    width: 100%;
    padding-top: 30px;
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 0px;
  }
  .left-column {
    order: 2;
    padding: 0;
    margin: 0;
    width: 100%
  }
  .right-column {
    order: 3;
  }
  .center-column {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .center-column .blueprint-image-container {
    order: 2;
  }
  
  .center-column .below-image-text {
      order: 1;
  }

  .below-image-text{
    padding: 0;
    margin: 0;
    width: auto;
    font-size: 1rem;
    padding-bottom: 10px;
  }
  .quote-container {
    width: 90%;
  }
  .overlay-title { font-size: 1.6rem; }
  .overlay-top-text { font-size: 0.9rem; }
}
