/* Root Variables */
:root {
  --canvas-width: 1080px;
  --canvas-height: 1350px;
  --bg-red: #9d0606;
  --accent-red: #c71919;
  --deep-red: #4e0000;
  --button-green: #17712d;
  --white: #ffffff;
  --black: #000000;
  --shadow-strong: 0 22px 55px rgba(0, 0, 0, .5);
  --font-bn: "Hind Siliguri", "SolaimanLipi", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #e5e5e5;
  font-family: var(--font-bn);
}

.card-wrapper {
  text-align: center;
}

/* Canvas Base */
.news-canvas {
  position: relative;
  overflow: hidden;
  width: var(--canvas-width);
  height: var(--canvas-height);
  margin: 0 auto;
  background:
    radial-gradient(circle at 47% 18%, rgba(255, 44, 21, .95) 0, rgba(148, 0, 0, .64) 36%, rgba(24, 0, 0, .95) 72%),
    linear-gradient(145deg, var(--deep-red), var(--bg-red) 34%, #1a0000 74%, #000000);
  color: var(--white);
  font-family: var(--font-bn);
  box-shadow: var(--shadow-strong);
}

.news-canvas::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, .15), transparent 16%);
  background-size: 44px 44px, 58px 58px, 100% 100%;
  mix-blend-mode: overlay;
  opacity: .32;
  pointer-events: none;
}

/* Top Header */
.card-header-area {
  position: relative;
  z-index: 2;
  height: 90px;
}

.date-text {
  position: absolute;
  top: 26px;
  right: 24px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .55), 0 0 10px rgba(0, 0, 0, .5);
}

.corner-line {
  position: absolute;
  top: -52px;
  right: -60px;
  width: 470px;
  height: 8px;
  background: #ffffff;
  transform: rotate(33deg);
  transform-origin: right center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .32);
}

.top-logo-card {
  position: absolute;
  top: 8px;
  left: 40px;
  display: grid;
  width: 210px;
  height: 75px;
  place-items: center;
  padding: 0;
  border: none;
  background: transparent;
  transform: rotate(0deg);
  transform-origin: center;
  z-index: 5;
  overflow: visible;
}

.top-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35));
}

/* Photo Area */
.photo-frame {
  position: absolute;
  top: 94px;
  left: 75px;
  z-index: 1;
  overflow: hidden;
  width: 930px;
  height: 700px;
  border: 8px solid #ffffff;
  border-radius: 10px;
  background: #202020;
  box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  background: #eee;
  font-size: 36px;
}

/* Center Logo */
.center-logo-wrap {
  position: absolute;
  top: 710px;
  left: 0;
  z-index: 4;
  display: grid;
  width: 100%;
  place-items: center;
  pointer-events: none;
}

.center-logo {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 260px;
  height: 168px;
  place-items: center;
  border: 7px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .52);
}

.center-logo::after {
  position: absolute;
  inset: 10px;
  border: 3px solid rgba(199, 25, 25, .88);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.center-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.02);
}

/* News Area */
.news-area {
  position: absolute;
  left: 0;
  bottom: 84px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 475px;
  padding: 128px 42px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), #000000);
}

.headline-text {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  max-height: 300px;
  margin: 0;
  color: #ffffff;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.28;
  text-align: center;
  text-shadow: 0 5px 10px rgba(0, 0, 0, .42);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* Button */
.button-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 295px;
  max-width: 760px;
  min-height: 72px;
  margin-top: 30px;
  padding: 9px 32px 12px;
  border-radius: 18px;
  background: var(--button-green);
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), 0 10px 18px rgba(0, 0, 0, .32);
}

/* Footer */
.footer-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 84px;
  padding: 0 25px;
  background: var(--accent-red);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 43px;
  font-weight: 400;
  text-align: center;
}

/* Export State */
.is-exporting {
  transform: none !important;
  zoom: 1 !important;
}

/* Download Button */
.download-button {
  margin: 25px;
  text-align: center;
}

.download-button button {
  padding: 14px 32px;
  font-size: 20px;
  background: #b91c1c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1399px) {
  .news-canvas {
    zoom: .62;
  }
}

@media (max-width: 991px) {
  .news-canvas {
    zoom: .56;
  }
}

@media (max-width: 700px) {
  .news-canvas {
    zoom: .36;
  }
}
