.site-header {
    background: transparent;
}

section.hero-section.flex-container.flex-center > div > p {
    font-size: 120%;
}


main {
    padding: 0em clamp(2em, 15vw, 30em);
    
}



.text-wrapper h1
{
  font-size: clamp(1.5rem, 3vw, 3em);
  /* clamp(min, preferred, max) scales font size between min and max depending on viewport width */
  margin: 0; /* remove default margin that might shift text */
  line-height: 1.2;
}

.text-wrapper p {
  font-size: clamp(1.5rem, 2vw, 2em);
  /* clamp(min, preferred, max) scales font size between min and max depending on viewport width */
  margin: 0; /* remove default margin that might shift text */
  line-height: 1.2;
  margin-top:  2em; /* add some space between heading and paragraph */
}


.container{
  position: relative;

}

.text-wrapper > h1 >span {
    color: var(--pink);
  }

.text-wrapper > h1 > span > span {
    background-image: url('assets/community-swiggly.svg'); 
    background-repeat: no-repeat;
    background-position: bottom center; 
    background-size:contain; 
}

.text-wrapper {
  width: 70%;
  margin: 2em auto;  /* default */
  text-align: center;
}

@media (max-width: 768px) {
  .text-wrapper {
    width: 80%; /* make text wrapper wider on smaller screens */
    margin: 1em auto; /* smaller margin on smaller screens */
  }
}

@media (max-width: 480px) {
  .text-wrapper {
    max-width: 250px; /* limit width on very small screens */
    width: 90%; /* make text wrapper wider on very small screens */
    margin: 0.5em auto; /* even smaller margin */
  }
}

  /* WhatsApp icon centered */
  .whatsapp-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%; 
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  
  .whatsapp-left-arm {
    position: absolute;
    top: 55%;
    right: 58%;
    width: 45%; 
    height: auto;
    transform: translateY(-50%);
    z-index: 1;
  }
  
  .whatsapp-right-arm {
    position: absolute;
    top: 25%;
    right: 3%;
    width: 30%; 
    height: auto;
    transform: translateY(-50%);
    z-index: 1;
  }

  .instagram-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%; 
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .instagram-legs {
    position: absolute;
    top: 78%;
    right: 25%;
    width: 50%; 
    height: auto;
    transform: translateY(-50%);
    z-index: 1;
  }

  .facebook-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%; 
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .facebook-arm {
    position: absolute;
    top: 55%;
    right: 58%;
    width: 38%; 
    height: auto;
    transform: translateY(-50%);
    z-index: 2;
  }

  .wechat-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%; 
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .wechat-left-arm {
    position: absolute;
    top: 47%;
    right: 75%;
    width: 25%; 
    height: auto;
    transform: translateY(-50%);
    z-index: 1;
  }

  .wechat-right-arm {
    position: absolute;
    top: 35%;
    right: 7%;
    width: 25%; 
    height: auto;
    transform: translateY(-50%);
    z-index: 1;
  }
  
  .youtube-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%; 
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .youtube-front-leg {
    position: absolute;
    top: 80%;
    right: 45%;
    width: 30%; 
    height: auto;
    transform: translateY(-50%);
    z-index: 1;
  }
  .tiktok-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%; 
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .tiktok-front-leg {
    position: absolute;
    top: 68%; /* Adjust this percentage to move the leg up or down */
    left: 35%; /* Adjust this to move the leg left or right */
    width: 25%; /* Adjust this to make the leg bigger or smaller */
    height: auto;
    z-index: 1; /* This makes sure the leg appears BEHIND the icon */
  }
  .youtube-back-leg {
    position: absolute;
    top: 77%;
    right: 23%;
    width: 30%; 
    height: auto;
    transform: translateY(-50%);
    z-index: 1;
  }

  .channels {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    justify-content: center;
    align-items: center;
    z-index: 2; /* ensure channels are above background */
    padding: 3vw;
  }

  @media (max-width: 1200px) {
    .channels {
      grid-template-columns: repeat(3, 1fr);
    }
  }


.channels .hug-wrapper  {
    max-width: 18vw;  /* 18% of viewport width */
    height: auto;
    flex: 1 1 auto;
    position: relative;

    aspect-ratio: 280 / 290; /* maintain container ratio */
    height: auto;      /* auto height based on aspect-ratio */
  }
  



  .sweet-logo {
    position: relative;
    width: 50vw; /* increased size */
    aspect-ratio: 3 / 2; /* optional, based on actual logo shape */
    height: auto;
    z-index: 10;
  }

  .sweet-headline {
    position: relative;
    left: 50%;              /* move element 50% from the left */
    transform: translateX(-50%);  /* pull back by half its width */
    font-size: clamp(1.5em, 4vw, 3em);
    width: 60vw;
    height: auto;
    text-align: center;
  }

.sweet-headline >span {
    color: var(--pink);
  }

.sweet-headline > span > span {
    background-image: url('assets/community-swiggly.svg'); 
    background-repeat: no-repeat;
    background-position: bottom center; 
    background-size:contain; 
}

.findout-cta-buttons {
    margin-top: 32px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
}

.sweet-credits {

    color: var(--dark-blue);
}

.sweet-credits p {

    font-size: clamp(1.2rem, 2.5vw, 2em);
    margin: 0;
    padding: 0;
}

.findout-footer-primary {
    width: auto;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    z-index: 10;
    margin-bottom: 10%;
}

.findout-footer-primary {
    background-color: var(--dark-blue);
    color: white;
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('assets/community-background.svg');
  background-repeat: no-repeat;
  background-size: 100%; /* cover the entire container */
  background-position: center 45%; /* center the image */
  margin-top: -6em; /* adjust to align with footer */
  padding-top: 10em 
} 




/* .background-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center 100%;
} */
.sweet-container {
  position: relative; /* establishes a positioning context */
  width: 100%;
  height:auto;
  text-align: center;
}

.sweet-content {
  position: relative; /* establishes a positioning context */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10; /* ensure content is above background */
  margin-top: 5em;
}


@media (max-width: 480px) {
  .sweet-logo {
    width: 70vw; /* make logo larger on smaller screens */

  }
  
  .sweet-headline, .sweet-credits p {
    font-size: 5vw; /* make text wrapper wider on smaller screens */
  }
  
  .btn-footer-primary,
  .btn-footer-secondary {
    width: 100%; /* full width buttons on smaller screens */
    padding: 12px; /* adjust padding for smaller screens */
  }

  .channels .hug-wrapper {
    width: 30vw; /* make hug wrapper larger on smaller screens */
    max-width: 30vw; /* remove max-width to allow full width */
    aspect-ratio: 1 / 1; /* maintain square aspect ratio */
    
  }
}

@media(max-width: 1130px) {
  .sweet-logo {
    margin-top: 3em;
}
}
@media(max-width:1629px)
{
  .sweet-logo {
    margin-top: 5em;
  }
}


.footer-spacer {
  position: absolute;
  bottom: -10px;
  width: 100%;
  height: 33%; /* fills 33% of parent height */
  background-color: #FFF6CA;
  left: 0;
  z-index: -1; /* behind other content */
}

.intro-page-footer {
  position: relative;
  z-index: 10;
  margin-top: -1px;
  background-color: #FFF6CA;
  padding: clamp(100px, 20vw, 200px) 20px 32px;
  text-align: center;
  color: var(--dark-blue);
}
/* .container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 20px;
} */
.footer-headline {
  position: relative;
  left: 50%;              /* move element 50% from the left */
  transform: translateX(-50%);  /* pull back by half its width */
  font-size: clamp(1.5em, 4vw, 3em);
  width: 60vw;
  height: auto;
  text-align: center;
}

.footer-cta-buttons {
  margin-top: 32px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.footer-credits {
  font-size: 14px;
  line-height: 1.5;
}

.btn-footer-primary,
.btn-footer-secondary {
    width: auto;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.btn-footer-primary img,
.btn-footer-secondary img {
    width: 24px;
    height: 24px;
}

.btn-footer-primary {
    background-color: var(--white);
    color: #1e40af;
}

.btn-footer-primary:hover {
    background-color: #f3f4f6;
}

.btn-footer-secondary {
    background-color: #15803d;
    color: var(--white);
}

.btn-footer-secondary:hover {
    background-color: #166534;
}

/* Small mobile devices (320px and below) */
@media screen and (max-width: 320px) {

    .hidden-on-small {
        display: none; 
    }

    .stepper-card {
        max-width: 90%;
        padding: 0.8em;
    }
    
    .bg-top {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        object-fit: cover;
        scale: 400%;
    }
}

.desktop-nav-links {
    display: none;
    align-items: center;
}

.desktop-nav-links>a+a {
    margin-left: 2.5rem;
}

.desktop-nav-links a {
    font-weight: 500;
    color: var(--dark-blue);
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.desktop-nav-links a:hover {
    opacity: 0.75;
}

.mobile-menu-button-wrapper {
    display: block;
}

.mobile-menu-button {
    width: 2rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 51;
}

.hamburger-line {
    display: block;
    width: 1.4rem;
    height: 2px;
    background-color: var(--dark-blue);
    transition: opacity 0.3s ease-in-out;
}
.mobile-menu-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-checkbox:checked~.mobile-menu-button::after {
    opacity: 1; /* Show the X icon */
}

/* Hide the hamburger lines when checked */
.mobile-menu-checkbox:checked~.mobile-menu-button .hamburger-line {
    opacity: 0;
}

@media (min-width: 768px) {
    .desktop-nav-links {
        display: flex;
    }

    .mobile-menu-button-wrapper {
        display: none;
    }

    .mobile-nav-links {
        display: none;
    }
}


/* --- MOBILE MENU STYLES --- */
.mobile-menu-checkbox {
    display: none;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    padding: 100px 30px 30px;
    z-index: 49;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0.3s;
}

.mobile-nav-links a {
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.mobile-nav-links a:hover {
    background-color: #f3f4f6;
}

.mobile-menu-checkbox:checked~.mobile-nav-links {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-checkbox:checked~.mobile-menu-button .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-checkbox:checked~.mobile-menu-button .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-checkbox:checked~.mobile-menu-button .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6); /* Black background with opacity */
  
  /* Use Flexbox to center the modal content */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
  max-width: 90%;
  width: 350px; /* Or adjust as needed */
  
  /* Animation */
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.modal-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem); /* Responsive font size */
  margin-top: 0; /* Override other p styles */
  margin-bottom: 1em;
}


.modal-close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
}

.modal-close-button:hover,
.modal-close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
