/* ========================================================
   Tusher Academy — PhotoCard Styles (1080 x 1080 HD)
   ======================================================== */

/* Hidden container kept off-screen for clean rendering */
.ta-photocard-offscreen {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  z-index: -99999 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  width: 1080px !important;
  height: 1080px !important;
}

.ta-card {
  width: 1080px;
  height: 1080px;
  background: #016A3E;
  position: relative;
  overflow: hidden;
  font-family: 'Anek Bangla', 'Hind Siliguri', 'SolaimanLipi', sans-serif;
  color: #ffffff;
}

/* White top area */
.ta-card-top-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: #ffffff;
  z-index: 1;
}

/* Header */
.ta-card-header {
  position: relative;
  z-index: 10;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 60px;
  border-bottom: 2px solid #eef2f5;
  background: #ffffff;
}
.ta-card-logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
}
.ta-card-brand-info {
  display: flex;
  flex-direction: column;
}
.ta-card-brand-title {
  font-size: 34px;
  font-weight: 800;
  color: #016A3E;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.ta-card-brand-slogan {
  font-size: 20px;
  font-weight: 600;
  color: #718096;
  margin-top: 3px;
}

/* Blog Image Wrap */
.ta-card-img-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 590px;
  margin-top: -15px;
}
.ta-card-img-box {
  width: 940px;
  height: 570px;
  border: 8px solid #FFB703;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}
.ta-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Blog Title Wrap */
.ta-card-title-wrap {
  position: relative;
  z-index: 5;
  padding: 24px 60px 130px;
  text-align: center;
  background: #016A3E;
}
.ta-card-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 46px;
  line-height: 1.28;
  max-width: 95%;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Question Box Area */
.ta-card-q-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 840px;
  margin-top: 5px;
  padding: 0 60px;
}
.ta-card-q-box {
  width: 960px;
  background: #ffffff;
  border: 8px solid #FFB703;
  border-radius: 20px;
  padding: 44px 50px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: #1a202c;
}
.ta-card-q-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ta-card-q-badge {
  background: #e8f5e9;
  color: #016A3E;
  font-size: 22px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 30px;
  border: 2px solid #016A3E;
}
.ta-card-q-category {
  color: #718096;
  font-size: 22px;
  font-weight: 700;
}
.ta-card-q-heading {
  font-size: 42px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.32;
}
.ta-card-q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}
.ta-card-q-opt {
  background: #f8fafc;
  border: 3px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ta-card-q-opt-key {
  background: #016A3E;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
.ta-card-q-opt-val {
  font-size: 26px;
  font-weight: 700;
  color: #2d3748;
}
.ta-card-q-teaser {
  background: linear-gradient(90deg, #fff7ed, #fef3c7);
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #b45309;
  margin-top: 10px;
}

/* Footer (Common) */
.ta-card-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: #014f2e;
  border-top: 3px solid rgba(255,255,255,0.15);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 70px;
  z-index: 20;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}
.ta-card-footer-date { justify-self: start; }
.ta-card-footer-cta {
  justify-self: center;
  color: #FFB703;
  font-weight: 800;
  font-size: 26px;
}
.ta-card-footer-domain {
  justify-self: end;
  color: #ffffff;
  font-weight: 800;
}

/* Loading Overlay */
#ta-pc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  font-family: 'Anek Bangla', system-ui, sans-serif;
  text-align: center;
  padding: 20px;
}
.ta-pc-spinner {
  width: 55px;
  height: 55px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #FFB703;
  border-radius: 50%;
  animation: taPcSpin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes taPcSpin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   PHOTOCARD PREVIEW & SHARE MODAL
   ======================================================== */
.ta-pc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(5px);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  font-family: 'Anek Bangla', 'Hind Siliguri', system-ui, sans-serif;
}
.ta-pc-modal-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: taPcModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
@keyframes taPcModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.ta-pc-modal-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.ta-pc-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #016A3E;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ta-pc-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 6px;
  transition: 0.15s;
}
.ta-pc-modal-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}
.ta-pc-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ta-pc-preview-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 3px solid #FFB703;
  background: #016A3E;
}
.ta-pc-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ta-pc-share-tip {
  font-size: 13px;
  color: #475569;
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  width: 100%;
  line-height: 1.45;
}
.ta-pc-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.ta-pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
  font-family: inherit;
}
.ta-pc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.ta-pc-btn:active {
  transform: translateY(0);
}
.ta-pc-btn-download {
  background: #016A3E;
  color: #ffffff !important;
  grid-column: span 2;
  font-size: 16px;
  padding: 12px;
}
.ta-pc-btn-download:hover {
  background: #015230;
}
.ta-pc-btn-facebook {
  background: #1877F2;
  color: #ffffff !important;
}
.ta-pc-btn-facebook:hover {
  background: #1464cc;
}
.ta-pc-btn-whatsapp {
  background: #25D366;
  color: #ffffff !important;
}
.ta-pc-btn-whatsapp:hover {
  background: #20ba59;
}
.ta-pc-btn-copy {
  background: #f1f5f9;
  color: #334155 !important;
  grid-column: span 2;
  border: 1px solid #cbd5e1;
}
.ta-pc-btn-copy:hover {
  background: #e2e8f0;
}

@media (max-width: 480px) {
  .ta-pc-modal-actions {
    grid-template-columns: 1fr;
  }
  .ta-pc-btn-download {
    grid-column: span 1;
  }
  .ta-pc-btn-copy {
    grid-column: span 1;
  }
}
