/* Page-Specific Gift Section Styling for Page ID 169 */

/* Hero Section Layout */
body.page-id-169 .custom-gift-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px 20px;
    min-height: auto;
}

body.page-id-169 .custom-gift-section .et_pb_column {
    flex: 1;
    min-width: 300px;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
}

/* Hero H1 Styling - Maximum Specificity */
body.page-id-169 .custom-gift-card-hero-heading h1,
body.page-id-169 .custom-gift-card-hero-heading .et_pb_module_heading,
body.page-id-169 .custom-gift-card-hero-heading .et_pb_heading_0,
body.page-id-169 #page-container .custom-gift-card-hero-heading h1 {
    font-size: clamp(2.5rem, 6vw, 5rem) !important;
    line-height: 1.2 !important;
    font-family: 'Great Vibes', cursive !important;
    font-weight: 400 !important;
}

/* Fallback: Target any h1 in hero section */
body.page-id-169 .et_pb_section:first-of-type h1,
body.page-id-169 .et_pb_section:first-of-type .et_pb_text h1 {
    font-size: clamp(2.5rem, 6vw, 5rem) !important;
    font-family: 'Great Vibes', cursive !important;
}

/* Gift Card Image Positioning */
body.page-id-169 .hero-giftcard-img {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.page-id-169 .hero-giftcard-img img {
    max-width: 100%;
    height: auto;
}

.page-id-169 h2.about-h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem); /* ~29px–44px */
  line-height: 1.2;
  font-weight: 700;
  font-family: 'Open Sans', serif;
  text-align: center;
  margin: 2rem auto;
}

.page-id-169 .custom-gift-section p {
    font-family: 'Open Sans', cursive !important;
    font-weight: 400 !important;
  color: #535696
}

/* Ensure columns take up equal space */
.page-id-278638 .custom-gift-section .et_pb_column {
    flex: 1;
    min-width: 300px;
}


/* ================================
   Accordion - Angel City Styles
   For Page ID 169 Only
================================== */
.page-id-169 .et_pb_accordion {
  border-radius: 8px;
  overflow: hidden;
}

/* Accordion Toggle Title */
.page-id-169 .et_pb_toggle_title {
  color: #535697 !important;
  padding: 1rem 1.5rem;
  line-height: 1.4;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border-bottom: 1px solid #ccccff;
  transition: background-color 0.3s ease;
}

/* Accordion Content */
.page-id-169 .et_pb_toggle_content {
  color: #535697;
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid #e0e0ff;
}
/* Ensure both open and closed states match */
.page-id-169 .et_pb_toggle.et_pb_toggle_close h5.et_pb_toggle_title,
.page-id-169 .et_pb_toggle.et_pb_toggle_open h5.et_pb_toggle_title,
.page-id-169 .et_pb_toggle h5.et_pb_toggle_title:hover {
  color: #535697 !important;
}


/* Remove last border */
.page-id-169 .et_pb_accordion .et_pb_toggle:last-child .et_pb_toggle_content {
  border-bottom: none;
}



/* ================================
   #any-occasion Section - Responsive
   ================================ */

/* Tablet View - Stack vertically */
@media (max-width: 1600px) {
  /* Center text content */
  body.page-id-169 #any-occasion .et_pb_text {
    text-align: center !important;
    width: 100% !important;
  }

  /* Center buttons */
  body.page-id-169 #any-occasion .et_pb_button_module_wrapper {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Accordion adjustments */
  body.page-id-169 .et_pb_toggle_title {
    font-size: 1.1rem;
    padding: 1rem;
  }

  body.page-id-169 .et_pb_toggle_content {
    font-size: 0.95rem;
    padding: 1.2rem;
  }
}

/* Tablet/Mobile View - Single card above text */
@media (max-width: 1800px) {
  body.page-id-169 #any-occasion {
    min-height: auto !important;
    padding: 0 15px 30px 15px !important;
    overflow: visible !important;
    margin: 0 !important;
  }

  body.page-id-169 #any-occasion .et_pb_row {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  body.page-id-169 #any-occasion .et_pb_column {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Order elements: card first, then text, divider, button */
  body.page-id-169 #any-occasion .mobile-card {
    order: -1 !important;
  }

  /* Constrain divider width */
  body.page-id-169 #any-occasion .et_pb_divider {
    max-width: 100px !important;
    margin: 0.5rem auto !important;
    padding: 0 !important;
  }

  /* Hide all stacked card images */
  body.page-id-169 #any-occasion .et_pb_image {
    display: none !important;
  }

  /* Show only the mobile-card image - CENTERED */
  body.page-id-169 #any-occasion .mobile-card {
    display: inline-block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto 0.5rem auto !important;
    width: 280px !important;
    max-width: 100% !important;
  }

  body.page-id-169 #any-occasion .mobile-card .et_pb_module_inner,
  body.page-id-169 #any-occasion .mobile-card .dsm-perspective-image-wrapper {
    transform: none !important;
    perspective: none !important;
  }

  body.page-id-169 #any-occasion .mobile-card img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Text styling - tighter spacing */
  body.page-id-169 #any-occasion .et_pb_text {
    order: 0 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  body.page-id-169 #any-occasion .et_pb_text:first-of-type {
    margin-top: 1rem !important;
  }

  body.page-id-169 #any-occasion .et_pb_text h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    text-align: center !important;
  }

  /* Divider */
  body.page-id-169 #any-occasion .et_pb_divider {
    order: 1 !important;
  }

  /* Button */
  body.page-id-169 #any-occasion .et_pb_button_module_wrapper {
    order: 3 !important;
    margin-top: 0.5rem !important;
  }

  body.page-id-169 .et_pb_toggle_title {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  body.page-id-169 .et_pb_toggle_content {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body.page-id-169 #any-occasion {
    padding: 30px 10px 15px 10px !important;
    position: relative !important;
    z-index: 2 !important;
  }

  body.page-id-169 #any-occasion .mobile-card {
    max-width: 260px !important;
  }

  /* Prevent next section from overlapping */
  body.page-id-169 #any-occasion-description {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0 !important;
    padding-top: 40px !important;
  }
}

/* Fix section overlap on all mobile sizes */
@media (max-width: 980px) {
  body.page-id-169 #any-occasion {
    position: relative !important;
    z-index: 2 !important;
  }

  body.page-id-169 #any-occasion-description {
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding-top: 20px !important;
  }

  /* Fix image overlap - ensure it stays in its container */
  body.page-id-169 #any-occasion-description .et_pb_image {
    position: relative !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 767px) {
  body.page-id-169 #any-occasion .mobile-card {
    width: 250px !important;
  }
}

/* Tablet - more space below card */
@media (max-width: 980px) {
  body.page-id-169 #any-occasion .mobile-card {
    margin-bottom: 2.5rem !important;
    width: 300px !important;
  }
}

/* ================================
   #any-occasion-description Section
   ================================ */

/* Desktop */
body.page-id-169 #any-occasion-description h2 {
  font-family: 'Playfair Display', serif !important;
  color: #535696 !important;
  font-size: 32px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

body.page-id-169 #any-occasion-description p,
body.page-id-169 #any-occasion-description .et_pb_blurb_description {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

body.page-id-169 #any-occasion-description .et_pb_blurb h4,
body.page-id-169 #any-occasion-description .et_pb_module_header {
  font-size: 24px !important;
  line-height: 1.3 !important;
  margin-bottom: 0.5rem !important;
}

body.page-id-169 #any-occasion-description img {
  max-width: 100%;
  height: auto;
}

/* Tablet */
@media (max-width: 1600px) {
  body.page-id-169 #any-occasion-description h2 {
    font-size: 30px !important;
    text-align: left !important;
  }

  body.page-id-169 #any-occasion-description p,
  body.page-id-169 #any-occasion-description .et_pb_blurb_description {
    font-size: 16px !important;
  }

  body.page-id-169 #any-occasion-description .et_pb_blurb h4,
  body.page-id-169 #any-occasion-description .et_pb_module_header {
    font-size: 22px !important;
  }

  body.page-id-169 #any-occasion-description .et_pb_row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  body.page-id-169 #any-occasion-description .et_pb_column {
    width: 100% !important;
    max-width: 600px !important;
    margin-bottom: 2rem !important;
  }

  body.page-id-169 #any-occasion-description .et_pb_image {
    text-align: center !important;
  }

  body.page-id-169 #any-occasion-description img {
    max-width: 80% !important;
    margin: 0 auto !important;
  }
}

/* Phone */
@media (max-width: 767px) {
  body.page-id-169 #any-occasion-description h2 {
    font-size: 24px !important;
  }

  body.page-id-169 #any-occasion-description p,
  body.page-id-169 #any-occasion-description .et_pb_blurb_description {
    font-size: 14px !important;
  }

  body.page-id-169 #any-occasion-description .et_pb_blurb h4,
  body.page-id-169 #any-occasion-description .et_pb_module_header {
    font-size: 18px !important;
  }

  body.page-id-169 #any-occasion-description img {
    max-width: 70% !important;
  }

  body.page-id-169 #any-occasion-description .et_pb_column {
    max-width: 100% !important;
    padding: 0 15px !important;
  }
}

/* === Force Centered Icon Divider for Gift Page === */
.page-id-169 .dsm-icon-divider-wrapper.dsm-icon-divider-align-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  max-width: 300px;
}

/* Ensure the icon image doesn't distort */
.page-id-169 .dsm-icon-divider-image-wrap img {
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Fix unequal lines on left/right sides */
.page-id-169 .dsm-icon-divider-before,
.page-id-169 .dsm-icon-divider-after {
  flex: 1;
  height: 1px;
  background-color: #ccc; /* match your design */
}
