/* Custom styles to enhance the Tailwind classes */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.bg-red-gradient {
  background-image: linear-gradient(to right,
      #9b1c1c,
      #dc2626,
      #990000,
      #dc2626);
}

.bg-yellow-gradient {
  background-image: linear-gradient(to right,
      #f7951f,
      rgb(191, 178, 58),
      #f7941d,
      rgb(225, 137, 30));
}

/* Ensure consistent spacing and typography */
.tracking-wider {
  letter-spacing: 0.1em;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

/* Ensure proper line height for large text */
h2,
h3 {
  line-height: 1.2;
}

/* Additional responsive adjustments */
@media (max-width: 640px) {

  /* Extra small devices */
  h2.text-3xl {
    font-size: 1.75rem;
  }

  h3.text-2xl {
    font-size: 1.5rem;
  }

  .tracking-wide {
    letter-spacing: 0.03em;
  }

  /* Adjust spacing for mobile */
  .py-8 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {

  /* Small devices */
  .tracking-wide {
    letter-spacing: 0.04em;
  }
}

/* Ensure text doesn't overflow on very small screens */
@media (max-width: 320px) {

  h2,
  h3 {
    word-break: break-word;
  }
}

/* Ribbon styling to exactly match the image */
.ribbon-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.ribbon {
  background-color: #9b1c1c;
  color: white;
  font-size: 34.665px;;
  font-weight: 700;
  text-align: center;
  padding: 10px 60px;
  position: relative;
  width: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "SFProDisplay-Bold", sans-serif;
  clip-path: polygon(100% 0%, 97% 50%, 100% 100%, 0% 100%, 3% 50%, 0% 0%);
}

.ribbon .dot {
  margin: 0 4px;
  font-size: 16px;
  line-height: 0;
  position: relative;
  top: -2px;
  color: white;
}

.shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Exact color matching */
.bg-blue-500 {
  background-color: #3b82f6;
}

.bg-green-500 {
  background-color: #22c55e;
}

/* Responsive adjustments to maintain exact layout */
@media (max-width: 768px) {
  .ribbon {
    font-size: 22px;
    padding: 12px 60px;
  }

  .ribbon .dot {
    font-size: 26px;
    margin: 0 10px;
  }

  h2 {
    font-size: 28px;
  }

  h3.text-4xl {
    font-size: 28px;
  }

  .text-lg {
    font-size: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ribbon {
    font-size: 18px;
    padding: 10px 30px;
  }

  .ribbon .dot {
    font-size: 22px;
    margin: 0 8px;
  }

  h2 {
    font-size: 24px;
  }

  h3.text-4xl {
    font-size: 24px;
  }
}

/* Ensure line breaks match the image exactly */
br {
  display: inline-block;
}

/* Book cover styling */
/*img {
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}*/

/* Ensure proper spacing between elements */
.space-y-4>*+* {
  margin-top: 1rem;
}

.space-y-6>*+* {
  margin-top: 1.5rem;
}

/* Ensure proper alignment of check mark and text */
.flex-shrink-0 {
  margin-top: 0.25rem;
}

/* Base polaroid styles */
.polaroid {
  background-color: white;
  padding: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.rotate-neg-5 {
  transform: rotate(-5deg);
}

.rotate-5 {
  transform: rotate(5deg);
}

.rotate-neg-2 {
  transform: rotate(-0.2deg);
}

.rotate-nega-2 {
  transform: rotate(-2deg);
}

.rotate-2 {
  transform: rotate(6deg);
}

.rotate-neg-1 {
  transform: rotate(-1deg);
}

.rotate-1 {
  transform: rotate(1deg);
}

.rotate-neg-3-5 {
  transform: rotate(-3.5deg) !important;
}

/* Desktop polaroid positioning and rotation */
@media (min-width: 768px) {
  .polaroid-container {
    height: 500px;
    position: relative;
  }

  .polaroid:hover {
    transform: rotate(0deg) scale(1.05) !important;
    z-index: 40;
  }

  .polaroid:hover>div {
    transform: rotate(0deg) !important;
  }

  .polaroid:hover img {
    transform: scale(1.3) !important;
  }

  .polaroid-1 {
    position: absolute;
    left: calc(50% - 360px);
    bottom: 40px;
    z-index: 10;
    width: 248px;
    height: 308px;
    transition: all 0.3s ease;
  }

  .polaroid-2 {
    position: absolute;
    left: calc(50% - 120px);
    bottom: 40px;
    z-index: 20;
    width: 288px;
    height: 368px;
    transform: rotate(3deg);
    transition: all 0.3s ease;
  }

  .polaroid-3 {
    position: absolute;
    left: calc(50% + 160px);
    bottom: 60px;
    z-index: 30;
    width: 248px;
    height: 308px;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
  }

  .polaroid:hover {
    transform: rotate(0deg) scale(1.05) !important;
    z-index: 40;
  }

  .polaroid:hover>div {
    transform: rotate(0deg) !important;
  }

  .polaroid:hover img {
    transform: scale(1.3) !important;
  }
  .polaroid-1:hover img {
    transform: scale(1.5) !important;
  }

  .polaroid-1 img {
    width: 240px;
    transition: all 0.3s ease;
    object-fit: cover;
  }

  .polaroid-2 img {
    width: 280px;
    object-fit: cover;
    transition: all 0.3s ease;
  }

  .polaroid-3 img {
    width: 240px;
    transition: all 0.3s ease;
  }
}

/* Tablet polaroid styles */
@media (min-width: 640px) and (max-width: 767px) {
  .polaroid-container {
    height: 400px;
    position: relative;
  }

  .polaroid-1 {
    position: absolute;
    left: calc(50% - 284px);
    bottom: 17px;
    z-index: 10;
    width: 220px !important;
    height: 278px;
    transform: rotate(-6deg);
  }

  .polaroid-2 {
    position: absolute;
    left: calc(50% - 100px);
    bottom: 20px;
    z-index: 20;
    width: 220px;
    width: 220px;
    height: 280px;
    transform: rotate(3deg);
  }

  .polaroid-3 {
    position: absolute;
    left: calc(50% + 80px);
    bottom: 50px;
    z-index: 30;
    width: 200px;
    height: 250px;
    transform: rotate(-2deg);
  }

  .polaroid-1 img {
    width: 280px !important;
    height: 280px !important;
    object-fit: cover !important;
  }

  .polaroid-2 img {
    width: 212px;
    height: 272px;
  }

  .polaroid-3 img {
    width: 192px;
    height: 242px;
  }
}

/* Mobile polaroid styles */
@media (max-width: 639px) {
  .polaroid-container {
    display: flex;
    align-items: center;
    padding: 1rem;
  }

  .polaroid {
    max-width: 380px;
    padding: 5px;
    padding-bottom: 5px;
  }

  .polaroid-1 {
    transform: rotate(-3deg);
  }

  .polaroid-1 {
    transform: rotate(-3deg);
  }

  .polaroid-2 {
    transform: rotate(2deg);
  }

  .polaroid-3 {
    transform: rotate(-1deg);
  }

  .polaroid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
  }

  .polaroid:hover {
    transform: rotate(0deg) scale(1.02);
  }
}

.bg-gradient1 {
  background-image: linear-gradient(to right,
      rgb(47, 112, 142) 0%,
      rgb(94, 196, 221) 100%);
}

.bg-gradient2 {
  background: linear-gradient(to right, #4392b6 0%, #5eabc5 100%);
}

.bg-gradient3 {
  position: relative;
  background: #d7dada;
  overflow: visible;
}

.bg-gradient3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      #d7dada,
      transparent 25%,
      transparent 75%,
      #d7dada),
    radial-gradient(circle at left center, #f5f5f5, #d7dada 90%);
  opacity: 1;
  mix-blend-mode: normal;
  z-index: 0;
}

.bg-gradient3>* {
  position: relative;
  z-index: 1;
}

.bg-gradient4 {
  background: conic-gradient(from 72deg at 33.42% 100%,
      #f49d00 5.3999998793deg,
      #ffaf1a 196.2000060081deg,
      #fcc709 360deg);
}

.bg-gradient5 {
  background: radial-gradient(50% 50% at 50% 50%,
      rgba(254, 209, 89, 0.74) 0%,
      rgba(254, 209, 89, 0.36) 50.53%,
      rgba(254, 209, 89, 0) 100%);
}

.mes1 {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 12px 0;
}

.mes2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px 0;
  text-align: center;
  max-width: 1200px;
}

.contain {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1200px;
}

@media (max-width: 640px) {
  .contain {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.radial-gradient {
  background: radial-gradient(circle at center 20%,
      #7acdeb,
      #21acde,
      #1e9ac8,
      #1b89b1);
}

.linear-blue-gradient {
  background: linear-gradient(to left, #65c6e7 30%, #37b4e1 60%, #1e9ac8 80%);
}

.linear-blue-gradient1 {
  background: linear-gradient(to right, #65c6e7 30%, #37b4e1 60%, #1e9ac8 80%);
}

.pack-btn {
  background: conic-gradient(from 54deg at 38% 100%,
      #f49d00 5.4deg,
      #f49d00 196.20001deg,
      #fed159 360deg);
  transition: all 0.3s ease;
}

.pack-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  /* shadow-lg equivalent */
}

/* iPad Mini specific styles */
@media screen and (min-width: 768px) and (max-width: 819px) {
  .polaroid-container {
    transform: scale(0.85);
    transform-origin: center center;
    margin-left: -40px;
  }
}

/* iPad Air specific fix */
@media screen and (min-width: 820px) and (max-width: 919px) {
  .polaroid-container {
    transform: scale(0.9);
    transform-origin: center center;
    margin-left: -30px;
  }
}

/* upsell page gurantee */
.banner-section.upsell {
  background: linear-gradient(to right, #65c6e7 30%, #37b4e1 60%, #1e9ac8 80%);
  padding: 70px 16px;
  .banner-content {
    gap: 30px;
}
}

/* upsell_guarantee  */
.upsell_guarantee{
  display: flex;
  justify-content: center;
  align-items: center;

  @media (min-width: 640px) and (max-width: 1023.98px){
   justify-content: space-around;
  } 

  @media (max-width: 639.98px) {
    flex-direction: row-reverse;
  }

  .badge{
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    @media (max-width: 639.98px) {
      width: 130px;
      height: 130px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    img{
      
      height: auto;
      @media (min-width: 640px) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 200px;
      }
      @media (max-width: 639.98px) {
        max-width: 120px;
      }
    }
  }

  .text{
    width: 70%;
    text-align: center;

    @media (max-width: 1023.98px) {
      text-align: left;
      width: 50%;
    }
  }
}

.bonuse-books{
  .bonuse-price{
    padding: 14px 30px;
    background: linear-gradient(85deg, #009444 6.23%, #39B54A 77.16%);}
}
/* .offer-section{
  .CTA-btn{
    max-width: max-content;
    width: 100%;
    font-size: 18px;
    font-family: "SFProDisplay-Bold", sans-serif;
  }
} */

/* Downsell  */
.downsell-banner-belt{
  background: linear-gradient(to right top, #418fb6, #4190b6, #4291b6, #4291b6, #4392b6);
}

.gd-custom1-upsell{
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 30px;
  @media (min-width: 768px) and (max-width: 1024px){
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 767.98px){
    grid-template-columns: 1fr;
  }
}