:root {
  --primary: #00483a;
  --accent: #BFAF80;
  --light-bg: #F4F4F2;
  --dark-text: #2C2C2C;
  --light-text: #ffffff;
  --font-main: 'Montserrat', sans-serif;
}
.hero-font {
  font-family: 'Merriweather', serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-main);
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.5;
}
h2 {
  margin: 1rem 0;
}
p {
  margin-bottom: 1rem;
}
video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.empty-space {
  padding: 1rem 1rem 2rem;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  padding: 1rem 2rem;
  background-color: var(--primary);
  position: relative;
}
.logo {
  height: 50px;
  width: 300px;
  background: url('media/logo-2.png') no-repeat center center;
  background-size: contain;
}
.center-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.main-nav {
  display: flex;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.main-nav a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}
.contact-info {
  font-size: 1rem;
}
.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-info li {
  line-height: 1.2;
}
.contact-info a {
  display: flex;
  align-items: center;
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.contact-info a:hover,
.contact-info a.active {
  color: var(--accent);
}
.menu-toggle {
  display: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--light-text);
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  background-color: var(--primary);
  position: absolute;
  top: 8vh;
  left: 0;
  right: 0;
  z-index: 10;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 1rem 0;
  margin: 0;
}
.mobile-nav a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent);
}
.hero-section {
  position: relative;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 90);
  overflow: hidden;
}
.carousel-container {
  width: 100%;
  height: 100vh;
  background: black;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 61, 23, 0.2);
  z-index: 3;
}
.scalable-box {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 100%;
  overflow: hidden;
  z-index: 4;
}
.text-fade-scale {
  position: absolute;
  font-size: clamp(3rem, 3vw, 6rem);
  color: var(--light-text);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0);
  animation: textFadeIn 1.2s ease forwards;
}
.scalable-box .text-fade-scale:nth-child(1) {
  top: 40%;
  left: 15%;
  animation-delay: 0.6s;
}
.scalable-box .text-fade-scale:nth-child(2) {
  top: 50%;
  left: 25%;
  animation-delay: 2.3s;
}
.scalable-box .text-fade-scale:nth-child(3) {
  top: 60%;
  left: 10%;
  animation-delay: 1.5s;
}
.hero-btn-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
}
.hero-section .video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.hero-section .video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.btn-hero {
  position: absolute;
  display: inline-block;
  padding: 0.8rem 1.2rem;
  margin: 0.5rem auto;
  border-radius: 6px;
  border: 2px solid var(--light-text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background-color: transparent;
  color: var(--light-text);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0);
  animation: textFadeIn 1.2s ease forwards;
}
.hero-btn-container .btn-hero:nth-child(1) {
  top: 50%;
  left: 70%;
  animation-delay: 3s;
}
.btn-hero:hover {
  color: var(--dark-text);
  background-color: var(--light-text);
}
@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 600px) {
  .scalable-box {
    width: 90%;
  }
  .text-fade-scale {
    font-size: clamp(2.5rem, 4vw, 5rem);
  }
  .hero-btn-container {
    width: 100%;
    left: 0;
    transform: none;
  }
  .hero-btn-container .btn-hero {
    top: 80%;
    left: 50%;
    transform: translateX(-50%) scale(1);
    animation-delay: 3s;
  }
  .hero-section .video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
  }
  .hero-section .video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}
@media (max-width: 1100px) {
  .hero-btn-container .btn-hero:nth-child(1) {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
  }
}
.section {
  padding: 1rem;
  text-align: center;
}
.container {
  max-width: 1100px;
  background: #ffffff;
  margin: 0 auto;
}
.services-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-top: 1rem;
  background: #f9f9f9;
  text-align: center;
  position: relative;
}
.services-section h2 {
  margin-top: 0rem;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #333;
}
.services-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 100vw;
  margin: 1rem auto;
  padding: 0 1rem;
}
.service-card {
  flex: 1 1 0;
  max-width: calc((100% - 60px) / 4);  
}
.card-content {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background-position: center;
  background-size: cover;
  border-radius: 6px;
  padding: 1rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  min-height: 300px;
  z-index: 2; 
}
.card-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 61, 23, 0.2); 
  z-index: 1;
}
.card-content h3,
.card-content p,
.card-content a {
  position: relative;
  z-index: 2;
  text-align: center;
}
.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.card-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.card-content a {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  margin-top: 1rem;
  border: 2px solid var(--light-text);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background-color: transparent;
  color: var(--light-text);
}
.card-content a:hover {
  color: var(--dark-text);
  background-color: var(--light-text);
}
@media (max-width: 1100px) {
  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
  }
  .service-card {
    flex: 0 0 100%;
    min-width: 100%;
    margin: 0 auto;
  }
  .card-content {
    min-width: 100%;
  }
}

.contact-columns-3 {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
}

.contact-left,
.contact-middle,
.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.contact-left {
  max-width: 28%;
  justify-content: center;
}

.contact-middle {
  max-width: 52%;
  justify-content: center;
}

.contact-right {
  max-width: 20%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.address-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.address-heading .material-icons {
  margin-right: 6px;
  color: var(--primary);
  font-size: 1.2rem;
}

.address-lines span {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  display: block;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--light-text);
  text-decoration: none;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  width: 100%;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s;
}

.btn-contact:hover {
  background-color: var(--accent);
}

.site-footer {
  background-color: var(--primary);
  color: var(--light-text);
  padding: 2rem 1rem;
  font-size: 0.85rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.footer-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-left .social-icon img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.footer-center {
  text-align: center;
  flex: 1;
}
.footer-abn {
  margin-bottom: 0.3rem;
}
.footer-sub-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  color: var(--accent);
}
.footer-sub-links a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}
.footer-sub-links a:hover {
    color: var(--accent);
}
.footer-sub-links .divider {
  color: #ccc;
}
.footer-bottom {
  color: #ccc;
}
.footer-right {
  display: flex;
  align-items: center;
  height: 90px;
}
.footer-right .lsnsw-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
}
.about-fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  background: url('media/about_us.jpg') center/cover no-repeat;
  padding: 6rem 1rem;
  color: #fff;
  text-align: center;
}
.about-fullwidth .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 61, 46, 0.6);
  z-index: 1;
}
.about-fullwidth .content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  width: 100%;
}
.about-fullwidth h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.about-fullwidth p {
  font-size: 1.2rem;
  line-height: 1.6;
}
.service-section {
  padding: 4rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}
.service-section:last-of-type {
  border-bottom: none;
}
.service-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}
.service-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 0.5rem auto;
}
.visa-applications h2::after {
  background: var(--accent);
}
.business-sponsorship h2::after {
  background: var(--primary);
}
.cancellations-refusals h2::after {
  background: #c0392b;
}
.additional-services h2::after {
  background: #2980b9;
}
.visa-applications,
.business-sponsorship,
.cancellations-refusals,
.additional-services {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-content {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-bottom: 2rem;
}
.service-blurb {
  position: relative;
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.blurb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 61, 46, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #fff;
}
.service-list {
  width: 100%;
  margin-bottom: 2rem;
}
.service-list .list-title {
  font-weight: 600;
  margin-bottom: 1rem;
}
.service-list ul {
  list-style: disc inside;
  column-count: 2;
  column-gap: 2rem;
  padding-left: 1rem;
  text-align: left;
}
.service-list ul li {
  margin-bottom: 0.5rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  margin: 0.5rem auto;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background-color: var(--accent);
  color: var(--light-text);
  text-align: center;
}
.btn-WWD {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  margin: 0.5rem auto;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background-color: var(--accent);
  color: var(--light-text);
  text-align: center;
}
.btn-WWD:hover {
  border: 2px solid var(--dark-text);
  color: var(--primary);
  background-color: transparent;
}
.btn-primary:hover {
  border: 2px solid var(--light-text);
  color: var(--light-text);
  background-color: transparent;
}
.button-container {
  text-align: center;
}
.consultation-section {
  position: relative;
}
.consultation-content {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.consultation-info {
  flex: 1;
  position: relative;
  min-height: 300px;
  background: url('media/consult-1.jpg') center/cover no-repeat;
  display: flex;
  align-items: stretch; 
  justify-content: center;
}
.info-overlay {
  background: rgba(15, 61, 46, 0.5);
  padding: 2rem;
  border-radius: 6px;
  color: var(--light-text);
  text-align: left;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  box-sizing: border-box;
}
.info-overlay h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.info-overlay p {
  font-size: 1rem;
  line-height: 1.5;
}
.consultation-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-consult {
   display: inline-block;
  padding: 0.8rem 1.2rem;
  margin: 0.5rem auto;
  border-radius: 6px;
  border: 2px solid var(--light-text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background-color: transparent;
  color: var(--light-text);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0);
  animation: textFadeIn 1.2s ease forwards;
}
.btn-consult:hover {
  color: var(--dark-text);
  background-color: var(--light-text);
}
@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav,
  .contact-info {
    display: none;
  }
  .hamburger {
    display: flex !important;
    position: absolute;
    right: 2rem;
    top: 50%;
    z-index: 100;
  }
  #menu-toggle:checked ~ .mobile-nav {
    display: block;
  }
   .contact-columns {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .contact-left, .contact-right {
    max-width: 100%;
    width: 100%;
  }



  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100vw;
    margin: 0 auto;
    padding: 0 1rem;
  }
  .service-card {
    max-width: 100%;
    margin: 0 auto;
  }
  .scalable-box {
    width: 90%;
  }
  .text-fade-scale {
    font-size: clamp(2.5rem, 4vw, 5rem);
  }
  .hero-btn-container .btn-hero:nth-child(1) {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
  }
}
.need-lawyer-section {
  background-color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.need-lawyer-container {
  max-width: 800px;
  margin: 0 auto;
}
.need-lawyer-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}
.need-lawyer-content strong {
  color: var(--primary);
}
.need-lawyer-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  max-width: 600px;
  text-align: left;
}
.need-lawyer-checklist li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.6rem; 
  font-size: 1rem; 
  line-height: 1.4;
  color: #fff; 
}
.checkmark {
  color: #fff;
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .need-lawyer-content p,
  .need-lawyer-checklist li {
    font-size: 1rem;
  }
}
.custom-reviews-section {
  padding: 40px 20px;
  background: #f9f9f9;
  box-sizing: border-box;
  width: 100%;
  /* allow horizontal scrolling inside */
}

.review-section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.review-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.static-tile {
  flex-shrink: 0;
  width: 260px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.business-logo {
  width: 100px;
  margin-bottom: 10px;
}

.static-tile .stars {
  font-size: 1.3rem;
  color: #fbb040;
}

.static-tile .star-score {
  font-weight: bold;
  font-size: 1.2rem;
}

.static-tile .review-count {
  font-size: 0.95rem;
  margin: 10px 0;
  color: #555;
}

.leave-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f6f6f6;
  color: var(--dark-text);
  padding: 10px 16px;
  border: 1px solid var(--dark-text);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.leave-review-btn:hover {
  background-color: var(--primary);
  color: white;
}

.google-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}

.tile-google-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  z-index: 1;
}

.review-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  align-items: center;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: #111;
  text-align: left;
}

.review-slider-container {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.grw-btn {
  background: none;
  position: absolute;
  border: none;
  font-size: 2rem;
  color: #00483a;
  cursor: pointer;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  flex-shrink: 0;
  z-index: 1;
}

.grw-btn.left {
  left: 10px;
}

.grw-btn.right {
  right: 10px;
}

.review-wrapper {
  display: flex;
  gap: 20px;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1 1 auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.review-wrapper::-webkit-scrollbar {
  height: 8px;
}

.review-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.review-wrapper:hover {
  scrollbar-width: auto;
}

.review-slider {
  display: flex;
  position: relative;
  gap: 20px;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.review-tile {
  position: relative;
  flex: 0 0 300px;
  max-width: 300px;
  min-width: 300px;
  max-height: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
  margin-top: 8px;
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.review-text::-webkit-scrollbar {
  width: 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-name a {
  font-weight: bold;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
}

.stars {
  font-size: 1rem;
  color: #fbb040;
}

.review-text:hover {
  scrollbar-width: auto;
}

.review-text:hover::-webkit-scrollbar {
  width: 6px;
}

.review-text:hover::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .review-layout {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .review-slider-container {
    width: 100%;
  }

  .review-wrapper {
    padding: 2;
    overflow: hidden;
    flex: 1;
    width: 100%;
  }

  .review-tile {
    position: relative;
    max-width: 100%;
    max-height: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
  }

  .review-wrapper {
    width: 500px !important;
    padding-left: 3rem;
    padding-right: 3rem;
    overflow: hidden;
    display: flex;
    scroll-snap-type: x mandatory;
  }

  .grw-btn.left {
    left: 0;
  }

  .grw-btn.right {
    right: 0;
  }
}


#meet-the-team {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}
#meet-the-team h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}
#meet-the-team {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}
#meet-the-team h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}
.team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
}
@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.team-card {
  perspective: 1200px;
  position: relative;
  z-index: 1;
}
.team-card.active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 600px;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 1001;
  pointer-events: none;
  overflow: hidden;
  padding: 1rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.team-member {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  border-radius: 16px;
  cursor: pointer;
}
.team-card.active .team-member {
  transform: rotateY(180deg) scale(1.05);
  transform-origin: center center;
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  display: flex;
}
.team-member .front,
.team-member .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}
.team-member .front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-member .back {
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: rotateY(180deg);
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow-y: auto;
}
.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
  gap: 1rem;
}
.profile-pic {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
}
.profile-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}
.profile-info .title {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-top: 4px;
  font-weight: 500;
}
.team-member .back p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  text-align: left;
  margin-bottom: 1rem;
}
.card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.card-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.team-card-static {
  perspective: none;
  position: relative;
  z-index: 1;
}
.team-card-static .team-member {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.team-card-static .team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  pointer-events: none;
}
@media (max-width: 800px) {
  .footer-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-left {
    margin-bottom: 1rem;
  }
  .footer-left .social-icon img {
    height: 30px;
    width: auto;
  }
  .footer-right {
    margin-top: 1rem;
  }
  .footer-right .lsnsw-logo {
    height: 60px;
    width: auto;
  }
}
@keyframes heartbeat {
  0%, 28%, 70%   { transform: scale(1); }
  14%, 42%       { transform: scale(1.3); }
}
#meet-the-team .team-member {
  transform-origin: center center;
  transition: transform 0.2s ease-out;
}
#meet-the-team .team-card .team-member:hover {
  animation: heartbeat 1s ease infinite;
}
.pulse-once {
  animation: heartbeat 1s ease;
}
.team-member.active,
.team-member.active:hover,
.team-member.active.pulse-once {
  animation: none !important;
}

}
/* MAP (responsive, full width of its column, no overflow) */
#contact-details .map-container{
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
#contact-details .map-container iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#contact-details .map-container .map-clicker{ position:absolute; inset:0; }

@media (max-width: 800px){
  /* Square on mobile: fills width without pushing into footer */
  #contact-details .map-container{ aspect-ratio: 1 / 1; }
}

/* CONTACT — desktop layout (tighter gap than 40px) */
#contact-details .contact-columns-3{
  display:flex;
  flex-wrap:nowrap;
  gap:24px;
  align-items:stretch;
  justify-content:space-between;
}
#contact-details .contact-left{  max-width:28%; }
#contact-details .contact-middle{ max-width:52%; }
#contact-details .contact-right{
  max-width:20%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 12px;                 /* side breathing room for right column */
}
#contact-details .contact-address{
  max-width:340px;
  margin:0 auto;
}

/* CONTACT — mobile layout (less vertical gap, full-width columns) */
@media (max-width: 800px){
  #contact-details .container{ padding:0 12px; }   /* keeps edges comfy */
  #contact-details .contact-columns-3{
    flex-direction:column;
    gap:10px;                                     /* tighter vertical spacing */
  }
  #contact-details .contact-left,
  #contact-details .contact-middle,
  #contact-details .contact-right{
    max-width:100%;
    width:100%;
    padding:0 !important;
  }
  #contact-details .contact-right{
    padding:0 16px !important;                    /* comfy left/right on address */
  }
  #contact-details .contact-address{
    max-width:460px;
    margin:0 auto;
  }
}
#contact-details .map-container{
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
#contact-details .map-container iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#contact-details .map-container .map-clicker{ position:absolute; inset:0; }

@media (max-width: 800px){
  /* Square on mobile: fills width without pushing into footer */
  #contact-details .map-container{ aspect-ratio: 1 / 1; }
}
@media (max-width: 800px){
  #contact-details .contact-left{  order: 1; } /* buttons/heading */
  #contact-details .contact-right{ order: 2; } /* address ABOVE the map */
  #contact-details .contact-middle{order: 3; } /* map last */
}