/* Polaroid download card layout grid rules */
.dl-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; 
  gap: 20px !important;
  margin-top: 20px !important;
  width: 100% !important;
}

.dl-card {
  background: #fff !important;
  border: 3px solid #1A1A1A !important;
  border-radius: 16px !important;
  width: 100% !important; 
  max-width: 100% !important;
  padding: 12px !important;
  box-shadow: 4px 4px 0 var(--yellow, #ffcc00) !important;
  cursor: pointer !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.dl-card:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 7px 7px 0 var(--yellow) !important;
}

.dl-thumb {
  width: 100%;
  height: 140px;
  border: 3px solid #1A1A1A;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}

.dl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-card-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #cc0000;
  text-decoration: underline;
  text-transform: lowercase;
  display: inline-block;
}

/* Central Expandable Lightbox Container Framework */
.dl-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* --- SEAMLESS STRIPE MARQUEE ANIMATIONS --- */
@keyframes stripe-crawl {
  from { background-position: 0 0; }
  to { background-position: 57px 0; }
}

/* --- RESTORED INNER CONTENT LIGHTBOX CARD --- */
.dl-content {
  background: repeating-linear-gradient(
    -45deg,
    #FFD21D,
    #FFD21D 20px,
    #FFDA49 20px,
    #FFDA49 40px
  ); 
  background-size: 57px 57px !important;
  border: 4px solid #1A1A1A;
  border-radius: 24px;
  width: 90%;
  max-width: 820px;
  padding: 30px;
  box-shadow: 8px 8px 0 #1A1A1A;
  position: relative;
  font-family: 'Baloo 2', 'Comic Sans MS', sans-serif;
  box-sizing: border-box;
  overflow: hidden;
  
  /* Dual Stacked Animations: Forever loops track stripes, runs spring bounce once */
  animation: stripe-crawl 1.4s linear infinite, pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
  will-change: background-position, transform;
}

.dl-layout {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

/* Left Image Box frame matching mockup wrapper */
.dl-left {
  flex: 1.1;
  background: #fff;
  border: 4px solid #1A1A1A;
  border-radius: 4px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  
  /* Stagger 1: Glides up from base with momentum shadow */
  animation: slide-up-fade 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.05s both;
}

.dl-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right text container side alignment */
.dl-right {
  flex: 1;
  color: #1A1A1A;
  text-align: left;
  display: flex;
  flex-direction: column;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: #E2021E transparent;
}

.dl-right::-webkit-scrollbar { width: 4px; }
.dl-right::-webkit-scrollbar-track { background: transparent; border: none; }
.dl-right::-webkit-scrollbar-thumb { background: #E2021E; border-radius: 99px; border: none; }
.dl-right::-webkit-scrollbar-thumb:hover { background: #FFD21C; }

/* --- DYNAMIC ROUNDED TITLE BADGE SETUP --- */
.dl-right h3 {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 30px;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  color: #E2021E;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
  z-index: 1;
  -webkit-text-stroke: 6px #1A1A1A;
  background: #FFFFFF;
  padding: 6px 18px;
  border-radius: 12px;
  border: 3px solid #1A1A1A;
  box-shadow: 4px 4px 0px #1A1A1A;

  /* Stagger 2: Badge spring expands right into point right away */
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}

/* Overlay layer that prevents the stroke from shrinking your red font */
.dl-right h3::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  color: #E2021E;
  -webkit-text-stroke: 0px transparent;
  padding: 6px 18px;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
}

.dl-right p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 25px 0;
  font-weight: 700;
  
  /* Stagger 3: Body statement glides in slightly behind */
  animation: slide-up-fade 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.14s both;
}

.dl-right h4, .dl-right ul {
  /* Stagger 4: Core features list glides up cleanly */
  animation: slide-up-fade 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.18s both;
  color: #E2021E;
  font-size: 20px;
}

/* Unordered checklist layout rules */
.dl-right ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-right ul li {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1A1A1A;
}

/* Bottom Dashed Dashboard Panel */
.dl-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  
  /* Stagger 5: Interactive tray pulls into place near terminal sequence */
  animation: slide-up-fade 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.22s both;
}

/* --- SILKY SMOOTH ROTATING DASHED BORDERS --- */
@keyframes dash-scroll {
  to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px; }
}

/* Updated Dashed track file helper info */
.dl-file-info-track {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  flex-grow: 1;
  margin-right: 20px;
  gap: 12px;
  height: 46px;
  box-sizing: border-box;
  position: relative;
  
  background-image: 
    linear-gradient(90deg, #1A1A1A 50%, transparent 50%), 
    linear-gradient(90deg, #1A1A1A 50%, transparent 50%), 
    linear-gradient(0deg, #1A1A1A 50%, transparent 50%), 
    linear-gradient(0deg, #1A1A1A 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 12px 3px, 12px 3px, 3px 12px, 3px 12px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: dash-scroll 0.4s linear infinite;
}

/* Pill format format indicators */
.dl-file-info-track .tag {
  background: #E2021E;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: lowercase;
}

.dl-file-info-track .subtext {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Text links styled directly matching inline down arrow reference link */
.dl-footer-bar .inline-dl-btn {
  color: #E2021E;
  font-weight: bold;
  font-size: 14px;
  text-decoration: underline;
  margin-left: auto;
  padding-right: 5px;
}

.dl-footer-bar .inline-dl-btn:hover {
  color: #ff0000;
}

/* Mockup Accurate Pill shaped Crimson Close button */
.dl-close-btn {
  background: #E2021E;
  color: #fff;
  border: 3px solid #1A1A1A;
  border-radius: 16px;
  padding: 8px 24px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  box-sizing: border-box;
}

.dl-close-btn:hover {
  background-color: var(--red, #E2021E) !important;
  color: #ffffff !important;
  border-color: #1A1A1A !important;
  box-shadow: 1px 1px 0 #1A1A1A !important;
  transform: translate(2px, 2px);
}

/* Updated Warning Banner Container */
.dl-warning-banner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  margin-top: 35px;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  
  /* Stagger 6: Warning system loads down right at the very finish line */
  animation: slide-up-fade 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.26s both;

  background-image: 
    linear-gradient(90deg, #1A1A1A 50%, transparent 50%), 
    linear-gradient(90deg, #1A1A1A 50%, transparent 50%), 
    linear-gradient(0deg, #1A1A1A 50%, transparent 50%), 
    linear-gradient(0deg, #1A1A1A 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 12px 3px, 12px 3px, 3px 12px, 3px 12px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: dash-scroll 0.4s linear infinite;
}

/* Red Pill Badge */
.dl-warning-banner .warn-pill {
  background: #E2021E;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  padding: 3px 14px;
  border-radius: 20px;
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

/* Warning Text Styling */
.dl-warning-banner .warn-text {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  font-family: 'Baloo 2', 'Comic Sans MS', sans-serif;
}