.photocard-container-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px auto;
  font-family: 'Noto Sans Bengali', sans-serif;
}

/* 1:1 Aspect Ratio Box */
.photocard-box {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Watermark Pattern */
.photocard-watermark-bg {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(220, 38, 38, 0.03),
    rgba(220, 38, 38, 0.03) 12px,
    transparent 12px,
    transparent 24px
  );
  z-index: 1;
  pointer-events: none;
}

/* 1. Image Frame (Fixed 50% Height) */
.photocard-image-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 3px solid #ffffff;
}

.photocard-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 2. Header Zone */
.photocard-header {
  position: relative;
  z-index: 2;
  padding: 10px 15px 0;
  text-align: center;
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dc2626;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
}

.brand-title .globe-svg {
  width: 28px;
  height: 28px;
  fill: #dc2626;
}

.meta-divider-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 4px 0;
  border-top: 2px solid #dc2626;
  border-bottom: 2px solid #1e3a8a;
  color: #111827;
  font-size: clamp(12px, 2.2vw, 15px);
  font-weight: 700;
}

.meta-separator {
  width: 2px;
  height: 14px;
  background-color: #dc2626;
}

.meta-item.domain {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #dc2626;
}

.globe-small-svg {
  width: 14px;
  height: 14px;
  fill: #dc2626;
}

/* 3. Dynamic Headline (Strict Centered & No Overlap) */
.photocard-headline-zone {
  position: relative;
  z-index: 2;
  padding: 10px 20px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.photocard-title {
  color: #0f172a;
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 4. CTA Button */
.photocard-cta-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 10px;
  flex-shrink: 0;
}

.cta-pill {
  display: inline-block;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 18px;
  border-radius: 4px;
}

/* 5. Footer Social Bar */
.photocard-footer-bar {
  position: relative;
  z-index: 2;
  background-color: #1d4ed8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 8px 5px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.social-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

/* Download Button */
.download-photocard-btn {
  background-color: #059669;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.download-photocard-btn:hover {
  background-color: #047857;
}
