/* =====================================================================
   HOMEPAGE: CORE CANVAS (The Unchangeable Picture Frame)
   File: /css/homepage-cards/core-canvas.css
   ===================================================================== */

/* The Wrapper (Centers the cards and spaces them out) */
.homepage-portals-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem; 
  margin: 3rem 0;
  width: 100%;
}
/* THE STRICT BOUNDARIES (The Frame) */
.hp-postcard-canvas {
  width: 100%;
  max-width: 1536px; /* WIDENED for a cinematic look */
  height: 512px;     /* SHORTENED for a landscape presentation feel */
  background: #1a1c20; 
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-postcard-canvas:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

/* THE MAGIC CONTENT AREA (Handles the overflow) */
.hp-postcard-content {
  padding: 2.5rem; /* Slightly reduced so the shorter card doesn't feel cramped */
  flex-grow: 1;
  overflow-y: auto; 
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Sleek Scrollbar */
.hp-postcard-content::-webkit-scrollbar { width: 6px; }
.hp-postcard-content::-webkit-scrollbar-track { background: transparent; }
.hp-postcard-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
.hp-postcard-content::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

/* Sleek, minimalist scrollbar for the inside of the card */
.hp-postcard-content::-webkit-scrollbar { width: 6px; }
.hp-postcard-content::-webkit-scrollbar-track { background: transparent; }
.hp-postcard-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
.hp-postcard-content::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }