/* (keyframes moved near usage below for clarity) */
/* ==========================================================================
   FONTS
   ========================================================================== */

@font-face {
  font-family: 'Editorial';
  src: url('fonts/PP Editorial New-normal-400-100.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.hero-text p,
.hero-text .cta-wrap,
.hero-text .support {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  animation-fill-mode: forwards;
}

/* Sequence timing */
.hero-text p:nth-of-type(1) { animation: glowDrift 1.6s cubic-bezier(.45,0,.15,1) 3.4s forwards; }
.hero-text p:nth-of-type(2) { animation: glowDrift 1.6s cubic-bezier(.45,0,.15,1) 5.4s forwards; }
.hero-text p:nth-of-type(3) { animation: glowDrift 1.6s cubic-bezier(.45,0,.15,1) 6.6s forwards; }
.hero-text .cta-wrap        { animation: glowDrift 1.6s cubic-bezier(.45,0,.15,1) 7.2s forwards; }
.hero-text p.support        { animation: glowDrift 1.6s cubic-bezier(.45,0,.15,1) 8.6s forwards; }

/* Core animation */
@keyframes glowDrift {
  0%   { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  15%  { opacity: .5; transform: translateY(10px); filter: blur(2px); }
  25%  { opacity: .7; transform: translateY(6px);  filter: blur(0); }
  100% { opacity: 1;  transform: translateY(0);    filter: blur(0); }
}

/* Fine-tune vertical spacing between hero lines */
.hero-text p { margin-bottom: 0; }
.hero-text p:nth-of-type(2) { margin-top: 0.25rem; }
.hero-text p:nth-of-type(3) { margin-top: 2rem !important; }
.hero-text p.support { margin-top: 3.5rem !important; }

@font-face {
  font-family: 'Editorial-italic';
  src: url('fonts/PP Editorial New-italic-400-100.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'inter';
  src: url('fonts/Inter_28pt-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Hatton';
  src: url('/css/fonts/Hatton-normal-100-100.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ==========================================================================
   BASE STYLES & RESETS
   ========================================================================== */

/* Prevent horizontal scroll on all devices */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}

/* Ensure all sections and containers stay within viewport */
section, div, img, svg, object {
  max-width: 100%;
  box-sizing: border-box;
}

a, input, textarea, select {
  outline: none;
  text-decoration: none !important;
  color: #09162E;
}

a.text-link {
  color: #9877E4;
  text-decoration: underline !important;
  font-weight: 500;
}

a.text-link:hover {
  color: #7a5bb8;
  text-decoration: underline !important;
}

button {
  border-radius: 30px;
}

h2 {
  font-family: 'Hatton', serif;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.section-color {
  overflow-x: hidden !important;
  background: #E4E4E4 !important;
  width: 100%;
  max-width: 100vw;
}

.container, .container-fluid {
  overflow-x: hidden;
  max-width: 100%;
}

.shrink-section {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  padding-bottom: 8rem;
}

.custom-container {
  margin: 1%;
}

.container-tarot {
  margin-left: 4%;
  margin-right: 4%;
  overflow-x: hidden;
}

.container-CTA {
  margin-top: 70%;
}

.custom-mx {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
  flex-direction: column;
}

.m6 {
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 0%;
  margin-bottom: 5%;
}

.space {
  margin: auto;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.h1 {
  font-family: 'Hatton';
  font-size: 60px;
  text-transform: uppercase;
}

.h2 {
  font-family: 'Editorial';
  font-size: 600%;
  color: #9877E4;
  text-transform: uppercase;
  text-align: right;
}

.h23 {
  font-family: 'Editorial';
  font-size: 300%;
  color: #9877E4;
  text-transform: uppercase;
  text-align: right;
}

.h3 {
  font-family: 'Hatton';
  font-size: 70px;
  color: #E4E4E4;
  text-transform: uppercase;
}

.h4 {
  font-family: 'inter';
  font-size: 150%;
}

.h5 {
  font-family: 'Editorial';
  font-size: 40%;
}

.h51 {
  font-family: 'Editorial';
  font-size: 180%;
}

.h6 {
  font-family: 'Hatton';
  font-size: 250%;
  text-transform: uppercase;
}

.h7 {
  font-family: 'Hatton';
  font-size: 35px;
  color: #E4E4E4;
}

.TH5 {
  font-family: 'Editorial';
  font-size: 60px;
  color: #E4E4E4;
}

.inter-white {
  font-family: 'inter';
  color: #E4E4E4;
}

.golden-lovelace {
  font-family: 'inter';
  color: #E1C340;
  font-size: 18px;
}

.p2 {
  font-family: 'inter';
  font-size: 20px;
}

.p3 {
  font-family: 'inter';
  font-size: 20px;
}

.p4 {
  font-family: 'inter';
  color: #0D1B33;
  font-size: 16px;
}

.p5 {
  font-family: 'Editorial';
  color: #E4E4E4;
  font-size: small;
}

.content-paragraph {
  font-family: 'inter';
  font-size: 130%;
  color: #0D1B33;
  margin-bottom: 20px;
}

.italic-editorial {
  font-family: 'Editorial-italic';
  font-size: 25px;
  color: #0D1B33;
}

.italic-editorial-white {
  font-family: 'Editorial-italic';
  font-size: 1.2rem;
  font-style: italic;
  color: white;
  margin-top: 2rem;
  max-width: 90%;
  z-index: 2;
}

.txt-rotate > .wrap {
  border-right: 0.08em solid #0D1B33;
  text-align: center;
}

.center-text {
  text-align: center;
}

.lavender {
  color: #9877E4;
}

.highlight {
  color: #9877E4;
}

.tag-text {
  color: #E4E4E4;
  font-family: 'inter';
  font-size: 12px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.primary-btn {
  color: #0D1B33;
  background-color: #9877E4;
  font-family: 'inter';
  font-size: 90%;
  padding: 5%;
}

.sec-btn {
  color: #E4E4E4;
  background-color: #9877E4;
  font-family: 'inter';
  padding-top: 2%;
  padding-bottom: 2%;
  padding-right: 5%;
  padding-left: 5%;
}

.third-btn {
  color: #0D1B33;
  background-color: #9877E4;
  font-family: 'inter';
  font-size: 90%;
  padding: 2%;
}

.quat-btn {
  color: #0D1B33;
  background-color: #9877E4;
  font-family: 'inter';
  font-size: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 6px 19px;
  gap: 12px;
}

.fifth-btn {
  background-color: #E4E4E4;
  color: #09162E;
  font-family: 'inter';
  padding-top: 1%;
  padding-bottom: 1%;
  padding-right: 2%;
  padding-left: 2%;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.schedule-btn {
  cursor: pointer;
}

/* ==========================================================================
   MAIN SECTIONS
   ========================================================================== */

/* Shrink Section */
.shrink-section {
  min-height: 100vh;
  padding: 2rem 0;
  background-image: url("/img/Background.svg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0D1B33;
  overflow: hidden;
  position: relative;
}

/* Story Section */
.story {
  background-image: url("/img/background2.png");
  background-size: cover;
}

.story .h3 {
  width: 50%;
  margin-top: 5%;
  margin-left: 5%;
}

/* Why Section */
.why-section {
  background-image: url("/img/why-background.png");
  background-size: cover;
}

.why-container {
  width: 50%;
  height: 70%;
  margin-top: 0%;
  margin-left: 0%;
  background-color: #E4E4E4;
}

/* What to Expect Section */
.what-expect {
  height: 300vh;
  background-color: #0D1B33;
  color: #E4E4E4;
}

/* Events Section */
.Events {
  background-color: #E4E4E4;
  color: #0D1B33;
}

/* Testimonials Section */
.testemonials-section {
  background-image: url("/img/background2.png");
  margin-top: 5%;
  padding-top: 5%;
  padding-bottom: 5%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Add padding to testimonials container to reduce overall width */
.testemonials-section .container-md {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Testimonial Item Styling */
.testimonial-item {
  margin-bottom: 2rem;
}

.testimonial-separator {
  width: 100%;
  height: 2px;
  background-color: #919191;
  margin-bottom: 1rem;
}

/* Adjust column alignment for testimonials */
.testimonial-item .row {
  margin-left: 0;
  margin-right: 0;
}

.testimonial-item .col-md-3 {
  padding-left: 0;
  padding-right: 1rem; /* Reduce space between name and text */
  display: flex;
  align-items: flex-start;
}

.testimonial-item .col-md-9 {
  padding-right: 0;
  padding-left: 0.5rem; /* Reduce space between name and text */
  display: flex;
  align-items: center;
}

/* Ensure testimonial text wraps properly within the container bounds */
.testimonial-item .golden-lovelace {
  word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .testemonials-section .container-md {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .testimonial-item .col-md-3,
  .testimonial-item .col-md-9 {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Modalities Section */
.modalities {
  background-color: #e4e4e4;
}

/* Blue Sections */
.blue-section {
  background-color: #09162E;
}

.blue-section .p4 {
  color: #E4E4E4 !important; /* Light gray text for blue background sections */
}

.blue-section .h3 {
  color: #E4E4E4 !important; /* Light gray heading to match body text */
}

.Frame-10 {
  padding: 10%;
  background-color: #0D1B33;
}

/* ==========================================================================
   HEADERS
   ========================================================================== */

.centered-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  color: #09162E;
  font-family: 'inter';
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-white {
  background-color: #E4E4E4;
  color: #0D1B33;
}

.header-blue {
  background-color: #09162E;
  color: #E4E4E4 !important;
}

/* ==========================================================================
   BLOG STYLES
   ========================================================================== */

.blog-body {
  background-color: #09162E;
  color: #FFFFFF;
  font-family: 'Georgia', serif;
}

.blog-title {
  color: #FFFFFF;
  font-size: 90px;
  font-family: 'Hatton';
  text-transform: uppercase;
  margin-bottom: 50px;
}

.main-article {
  border-radius: 8px;
}

.main-title {
  font-family: 'Editorial';
  font-size: 50px;
  color: #FFFFFF;
}

.sidebar .article-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.sidebar .article-card h5 {
  font-size: 20px;
  color: #FFFFFF;
  font-family: 'Editorial';
}

.sidebar .article-card small {
  font-size: 12px;
}

/* ==========================================================================
   SVG & ANIMATIONS
   ========================================================================== */

.center-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.shrink-svg {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Keep star same size across screens */
  width: 150px;
  height: 150px;
  transition: transform 0.3s ease;
  z-index: 1;
  will-change: transform;
}

.line-svg {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: block;
  width: 90%;
  max-width: 90vw;
  height: auto;
  z-index: 2;
  will-change: transform;
}

.breathe-svg {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Fixed butterfly size so star remains just a bit larger */
  width: 140px;
  height: 140px;
  transition: transform 0.3s ease;
  z-index: 0;
  display: block;
  animation: breathe 2s ease-in-out infinite;
}

.shrink {
  transform: scale(0.5);
}

.svg-button {
  position: absolute;
  top: 40%;
  left: 40%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  animation: breathing 3s ease-in-out infinite;
  display: block;
}

.svg-button svg {
  width: 73px;
  height: 73px;
}

/* Breathing Animations */
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes breathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Text Animations */
.breathe-text,
.breathe-text-1,
.breathe-text-2 {
  font-family: 'Hatton';
  font-size: 5rem;
  color: #FFFFFF;
  position: relative;
  margin: 0.5rem 0;
  display: block;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              visibility 0s linear;
  z-index: 2;
}

.breathe-text-2 {
  margin-top: 0.5rem;
}

.breathe-text-1 {
  margin-top: 12rem; /* Desktop baseline spacing below butterfly/logo */
}

/* Precise timing windows for headline transitions */
.breathe-text-1 {
  transition-duration: 0.4s, 0.4s, 0s; /* 1.8–2.2s window */
}
.breathe-text-2 {
  transition-duration: 0.6s, 0.6s, 0s; /* 2.4–3.0s window */
}

/* Mobile responsive spacing */
@media (max-width: 768px) {
  .breathe-text-1 {
    margin-top: 8rem; /* More spacing on small screens to avoid overlap */
  }
}

/* Desktop-wide refinements: reduce large white area near butterfly and add more headroom */
@media (min-width: 1200px) {
  .breathe-text-1 {
    margin-top: 14rem; /* Extra breathing room on big monitors */
  }
  /* Move the SVG trio slightly higher to balance the composition */
  .shrink-svg,
  .breathe-svg,
  .line-svg {
    top: 18%;
  }
  /* Thin the white line on large screens */
  .line-svg line {
    stroke-width: 5 !important;
  }
}

@media (min-width: 1600px) {
  .breathe-text-1 {
    margin-top: 16rem; /* More spacing on ultra-wide */
  }
  .shrink-svg,
  .breathe-svg,
  .line-svg {
    top: 16%;
  }
}

.breathe-text-1.hidden,
.breathe-text-2.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

.breathe-text-1.show,
.breathe-text-2.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.breathe-text-3 {
  font-family: 'Editorial-italic' !important;
  font-size: 1.2rem !important;
  font-style: italic;
  margin-top: 2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.breathe-text-typewriter {
  font-family: 'inter';
  font-size: 1.2rem;
  color: white;
  width: 500px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  line-height: 1.5;
  min-height: 4rem;
  position: relative;
  font-style: italic;
}

.breathe-text-typewriter.show {
  opacity: 1;
  visibility: visible;
}

.breathe-text-typewriter .wrap {
  border-right: 0.08em solid #ffffff;
  animation: blink-caret 1s step-end infinite;
}

.offerings-typewriter {
  font-family: 'inter';
  font-size: 18px;
  color: white;
  width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  line-height: 1.5;
  min-height: 2rem;
  position: relative;
}

.offerings-typewriter.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.offerings-typewriter .wrap {
  border-right: 0.08em solid #ffffff;
  animation: blink-caret 1s step-end infinite;
}

/* Hover Effects for SVG */
.hover-text {
  font-size: 16px;
  fill: #E1C340;
  text-anchor: middle;
  transform: translate(5, 0) !important;
  font-family: 'Hatton';
  visibility: hidden;
  text-transform: uppercase;
}

.hover-target {
  pointer-events: all;
}

.hover-hide {
  visibility: visible;
}

.hover-target:hover .hover-hide {
  visibility: hidden;
}

.hover-target:hover .hover-text {
  visibility: visible;
}

/* Center vertical lines in offerings section */
.offerings-section svg {
  display: block;
  margin: 0 auto;
}

/* Specific styling for vertical line SVGs */
.vertical-line {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   IMAGES & GALLERY
   ========================================================================== */

.img-fluid {
  max-width: 90%;
  height: auto;
}

.img-fluid1 {
  width: 110% !important;
  height: auto;
}

.img-fluid2 {
  max-width: 100%;
  height: 100%;
}

.testemonial-img {
  width: 60%;
  height: auto;
}

.center-image {
  width: 100%;
  height: auto;
  position: relative;
  max-width: 150px;
}

.gallery img {
  width: 150px;
  height: auto;
  object-fit: cover;
  flex-shrink: 1;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallery {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  flex-wrap: nowrap;
}

/* ==========================================================================
   CUSTOM COLUMNS & GRID
   ========================================================================== */

.custom-column {
  position: relative;
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.custom-column h4, .custom-column p {
  margin: 0;
  color: #9877E4;
  font-family: 'inter';
}

.custom-column .default-content {
  transition: opacity 0.3s;
}

.custom-column .hover-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.custom-column:hover .default-content {
  opacity: 0;
}

.custom-column:hover .hover-content {
  opacity: 1;
}

.custom-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 1.5px;
  background-color: #0D1B33;
}

.custom-row {
  justify-content: center;
  height: 250px;
}

.position-relative {
  position: relative;
}

/* ==========================================================================
   SCROLL SECTIONS
   ========================================================================== */

.scroll-section {
  height: 12vh;
  width: auto;
  display: flex;
  font-size: 1.5rem;
  text-align: left;
}

/* ==========================================================================
   FOOTER & CTA
   ========================================================================== */

.footer {
  background-color: #0D1B33;
  padding: 20px 10px;
  font-family: Arial, sans-serif;
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer .logo img {
  width: 40px;
}

.footer .links a {
  color: white;
  text-decoration: none;
  margin-right: 10px;
}

.footer .links a:hover {
  text-decoration: underline;
}

.footer .contact-info {
  color: white;
}

.footer .contact-info a {
  color: white;
  text-decoration: none;
}

.footer .contact-info a:hover {
  text-decoration: underline;
}

.footer .cta-button {
  font-family: 'Hatton';
  font-size: 20px;
  line-height: 120%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-title {
  font-family: 'inter';
  font-size: 30px;
  color: white;
}

.footer .row {
  margin: 1.5rem;
}

.cta-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
  max-width: 1150px;
  height: auto;
  background: rgb(13, 27, 51);
  border-radius: 30px;
  margin: auto;
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */

.cart-drawer {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.cart-drawer.drawer-open {
  transform: translateX(0);
}

.cart-toggle-button {
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  width: auto;
  min-width: 180px;
  height: 60px;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-toggle-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cart-toggle-button .badge {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Tablet and Small Desktop */
@media (max-width: 768px) {
  .custom-column {
    margin-bottom: 20px;
  }
  
  .custom-column:not(:last-child)::after {
    display: none;
  }
  
  .gallery {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  
  .gallery img {
    width: 100px;
    max-width: calc(50% - 0.25rem);
  }
  
  .container-tarot {
    margin-left: 2%;
    margin-right: 2%;
  }
  
  .container-tarot .h1 {
    font-size: 2.5rem;
  }
  
  .container-tarot .italic-editorial {
    font-size: 1rem;
  }
}

/* Mobile Landscape */
@media (max-width: 767.98px) {
  .hover-target {
    width: 160px;
    height: 250px;
  }

  .h2 {
    font-size: 500%;
  }
  
  .content-paragraph {
    font-size: 20px;
  }

  .primary-btn {
    font-size: 90%;
    padding: 3%;
  }
      
  .custom-override {
    justify-content: start !important;
  }

  .TH5 {
    font-size: 250%;
  }

  .p2 {
    font-size: 20px;
  }

  .container-CTA {
    margin-top: 0%;
  }

  .cta-container {
    height: 80px;
    flex-direction: row;
    padding-bottom: 20%;
    padding-top: 0;
    border-radius: 30px;
  }

  .cta-button {
    font-size: 20px !important;
  }

  .logo-svg {
    width: 80px; 
    height: 70px; 
    margin-top: 10px;
  }

  .footer-logo-title {
    margin: 2%;
    font-size: 30px;
  }

  .breathe-svg {
    width: 100px;
    height: 100px;
  }

  .breathe-text {
    font-size: 70px;
    margin-right: 2%;
    margin-left: 2%;
  }

  .story .h3 {
    width: 100%;
    font-size: 60px;
    margin-left: 0;
  }

  .horizontal-line {
    display: none !important;
  }

  .p4 {
    text-align: center;
  }

  .why-container {
    width: 80%;
  }

  .text-center .h1 {
    margin: 0% !important;
    font-size: 50px;
  }

  .content-paragraph {
    margin-right: 0% !important;
    margin-left: 0% !important;
    font-size: 20px;
    margin-top: 3% !important;
    margin-bottom: 3% !important;
  }

  .m6 {
    margin-bottom: 15% !important;
  }

  .custom-row .custom-column {
    width: 100%;
  }
  
  .custom-column {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .custom-row {
    margin-bottom: 100%;
  }

  .custom-row:last-child {
    margin-bottom: 50%;
  }

  .img-fluid2 {
    margin: 5%;
    width: 90vh;
    height: 45vh;
    object-fit: cover;
    object-position: center;
  }

  .button-container {
    justify-content: start;
  }

  .footer .row {
    margin: 0;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  .breathe-text-1 {
    margin-top: 9rem; /* Extra spacing on the smallest screens */
  }
  .gallery {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem !important;
    overflow: hidden !important;
  }
  
  .gallery img {
    width: 200px;
    height: 250px;
    flex-shrink: 1;
  }

  .h2 {
    font-size: 350%;
  }

  .content-paragraph {
    margin-right: 4% !important;
    margin-left: 3% !important;
    font-size: 20px;
    margin-top: 10% !important;
    margin-bottom: 10% !important;
  }

  .primary-btn {
    margin: 3%;
  }

  .h1 {
    font-size: 40px !important;
  }

  .h3 {
    font-size: 50px;
  }

  .centered-header {
    font-size: 15px;
    gap: 20px;
  }

  .hidden-on-small {
    display: none;
  }

  .fifth-btn {
    padding-top: 2%;
    padding-bottom: 2%;
    padding-right: 5%;
    padding-left: 5%;
    margin: 10%;
  }

  .TH5 {
    font-size: 180%;
    padding: 10%;
  }

  .p2 {
    font-size: 20px;
  }

  .sec-btn {
    margin-bottom: 10%;
    margin-top: 5%;
  }

  .h6 {
    font-family: 'Hatton';
    font-size: 200%;
    text-transform: uppercase;
  }

  .logo-svg {
    width: 120px;
    height: 100px;
    margin-top: 10px;
  }

  .cta-button {
    margin-bottom: 10%;
  }

  .svg-button {
    position: absolute;
    top: 30%;
    left: 30%;
  }

  .story .h3 {
    width: 100%;
    margin-left: 0;
    font-size: 250%;
  }

  .h7 {
    font-size: 170%;
  }

  .WTE {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 250%;
    text-align: center;
    margin: 20px auto;
    width: 100%;
    box-sizing: border-box;
  }

  .WTE .col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .WTE .col-md-4 svg {
    margin: auto;
  }

  .WTE .col-md-4 h6 {
    margin-top: 10px;
    font-size: 1rem;
  }

  .WTE .col-md-4 p {
    font-size: 0.9rem;
  }

  .what-to-expect {
    height: auto;
    padding: 20px;
  }

  .h23 {
    font-size: 200%;
  }

  .custom-row {
    justify-content: center;
    height: 250px;
  }

  .custom-row:last-child {
    margin-top: 140% !important;
  }

  .row {
    width: 100%;
  }

  .hover-target {
    width: 160px;
    height: 250px;
  }

  .mobile-justify-center {
    display: flex;
    justify-content: center;
  }
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
  .breathe-text-1,
  .breathe-text-2 {
    font-size: 4rem;
  }
}

@media (max-width: 992px) {
  .breathe-text-1,
  .breathe-text-2 {
    font-size: 3.5rem;
  }
  
  .italic-editorial-white {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .shrink-section {
    padding: 4rem 1rem;
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .breathe-text-1,
  .breathe-text-2 {
    font-size: 3rem;
    word-wrap: break-word;
    max-width: 100%;
  }
  
  .italic-editorial-white {
    font-size: 1rem;
    margin-top: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    word-wrap: break-word;
    max-width: 100%;
  }
  
  .shrink-svg, .breathe-svg {
    max-width: 80vw;
  }

  .line-svg {
    max-width: 80vw;
  }

  /* Move SVGs higher on mobile to ensure they stay above text */
  .shrink-svg {
    top: 15%;
  }
  .line-svg {
    top: 15%;
  }

  .line-svg {
    top: 15%;
  }

  .breathe-svg {
    top: 15%;
  }
}

@media (max-width: 576px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .breathe-text-1,
  .breathe-text-2 {
    font-size: 2.5rem;
    max-width: 100%;
    word-wrap: break-word;
  }
  
  .italic-editorial-white {
    font-size: 0.9rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 100%;
    word-wrap: break-word;
  }
  
  .line-svg {
    width: 80%;
    max-width: 80vw;
    height: auto;
  }

  .shrink-svg {
    max-width: 80vw;
  }

  .shrink-svg { width: 130px; height: 130px; }
  .breathe-svg { width: 120px; height: 120px; }

  /* Move SVGs even higher on smallest screens */
  .shrink-svg {
    top: 12%;
  }

  .line-svg {
    top: 12%;
  }

  .breathe-svg {
    top: 12%;
  }
}

@media (max-width: 400px) {
  .shrink-section {
    padding: 2.5rem 0.25rem;
  }
  
  .breathe-text-1,
  .breathe-text-2 {
    font-size: 1.8rem;
    padding: 0 0.25rem;
  }
  
  .italic-editorial-white {
    font-size: 0.85rem;
    padding: 0 0.25rem;
  }
  
  .line-svg {
    max-width: 280px;
  }

  .shrink-svg {
    max-width: 400px;
  }

  .breathe-svg {
    width: 140px;
    height: 140px;
    max-width: 140px;
  }
}

/* Star intro animation: start fully expanded, then shrink in place (center-anchored) */
@keyframes starIntro {
  0%   { transform: translate(-50%, -50%) scale(6.5); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.shrink-svg.star-intro {
  animation: starIntro 1.5s ease-out both;
}

/* Subtext and CTA reveal helpers */
#welcome-subtext {
  opacity: 1; /* Keep container stable; fade lines individually for smoothness */
}

#kickoff-button {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  will-change: opacity, transform, box-shadow;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.7s ease;
}

#kickoff-button.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  /* Removed container glow to avoid rectangular box effect */
}

/* Button-specific glow (round, conforms to pill shape) */
.hero-text .cta-wrap .btn {
  border-radius: 999px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hero-text .cta-wrap .btn-lavender {
  box-shadow: 0 0 0 rgba(152, 119, 228, 0.0);
}
.hero-text .cta-wrap .btn-lavender:hover,
.hero-text .cta-wrap .btn-lavender:focus {
  box-shadow: 0 0 22px rgba(152, 119, 228, 0.35);
}
.hero-text .cta-wrap .btn-gold {
  box-shadow: 0 0 0 rgba(225, 195, 64, 0.0);
}
.hero-text .cta-wrap .btn-gold:hover,
.hero-text .cta-wrap .btn-gold:focus {
  box-shadow: 0 0 22px rgba(225, 195, 64, 0.35);
}

/* Horizontal line fade-out after intro */
.line-svg {
  opacity: 1;
  transition: opacity 0.6s ease;
}
.line-svg.fade-out {
  opacity: 0;
}

/* Horizontal line gradual reduction (contracts toward center) */
@keyframes lineContract {
  0%   { transform: translate(-50%, -50%) scaleX(1); }
  100% { transform: translate(-50%, -50%) scaleX(0); }
}
.line-svg.contract {
  animation: lineContract 1.5s ease-out forwards;
}

/* Subtext line smoother fade/slide */
.welcome-line {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.welcome-line.show {
  opacity: 1;
  transform: translateY(0);
}

/* Line intro animation removed; line will follow star via JS for perfect alignment */

/* Star pulse after settle */
.shrink-svg.pulse {
  animation: breathe 2.2s ease-in-out infinite;
}

/* ==========================================================================
   TAROT CARDS STYLES
   ========================================================================== */

.tarot-card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.tarot-card svg {
  max-width: 100%;
  height: auto;
  width: 184px;
  max-height: 320px;
}

/* Responsive Tarot Cards */
@media (max-width: 1200px) {
  .tarot-card svg {
    width: 160px;
    max-height: 280px;
  }
}

@media (max-width: 992px) {
  .tarot-card svg {
    width: 140px;
    max-height: 245px;
  }
}

@media (max-width: 768px) {
  .tarot-card svg {
    width: 110px;
    max-height: 190px;
  }
  
  .tarot-card {
    padding: 0.5rem 0.1rem !important;
  }
}

@media (max-width: 576px) {
  .tarot-card svg {
    width: 90px;
    max-height: 155px;
  }
  
  .tarot-card {
    padding: 0.3rem 0.05rem !important;
  }
}

@media (max-width: 400px) {
  .tarot-card svg {
    width: 75px;
    max-height: 130px;
  }
  
  .tarot-card {
    padding: 0.25rem 0.02rem !important;
  }
}

/* Container responsiveness */
.container-tarot {
  margin-left: auto;
  margin-right: auto;
  max-width: 95%;
  overflow-x: hidden;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 768px) {
  .container-tarot {
    max-width: 98%;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .container-tarot .h1 {
    font-size: 2.5rem;
  }
  
  .container-tarot .italic-editorial {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .container-tarot {
    max-width: 99%;
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .container-tarot .h1 {
    font-size: 2rem;
  }
  
  .container-tarot .italic-editorial {
    font-size: 0.9rem;
  }
}

/* Hover text responsiveness */
@media (max-width: 768px) {
  .hover-text {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .hover-text {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .hover-text {
    font-size: 8px;
  }
}

/* For-you section positioning */
.for-you {
  position: relative;
  overflow-x: hidden;
}

.for-you .container-tarot {
  position: relative;
}

/* Ensure proper centering for tarot cards row */
.tarotcards-row {
  margin-left: auto;
  margin-right: auto;
  justify-content: center !important;
}

/* Remove Bootstrap gutters that might cause alignment issues */
.tarotcards-row > .tarot-card {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

@media (max-width: 576px) {
  .tarotcards-row > .tarot-card {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }
}
