:root {
  /* rest of the colors */
  --black: #222;
  --charcoal: #434343;
  --white: #fff;
  --blue-primary: #4f71be;
  --blue-dark: #2a6ebb;
  --blue-light: #4eadea;
  --yellow: #f5c342;
  --green: #73ab55;

  /* small text */
  --small-text: 0.875rem;
  --extra-small-text: 0.7em;

  /* rest of the vars */
  --border-radius: 0.25rem;
  --letter-spacing: 1px;
  --transition: 0.3s ease-in-out all;

  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body,
html,
header {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  width: 100%;
  color: var(--charcoal);
}

/* Anchor Links */
a {
  color: var(--charcoal);
}

a:hover {
  color: var(--green);
}

/* Global Classes */
.small-text {
  font-size: var(--extra-small-text);
  margin-top: 0;
}

.add-margin-top {
  margin-top: 2rem;
}

.add-margin-bottom {
  margin-bottom: 0.75rem;
}

/* Site Container */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Buttons */
.btn {
  cursor: pointer;
  color: var(--charcoal);
  background: var(--yellow);
  text-decoration: none;
  text-transform: uppercase;
  border: transparent;
  border-radius: var(--border-radius);
  letter-spacing: var(--letter-spacing);
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-1);
  transition: var(--transition);
  text-transform: uppercase;
  display: inline-block;
}

.btn:hover {
  background-color: #edb529;
  box-shadow: var(--shadow-3);
}

/* Navbar */
.site-nav {
  padding: 10px;
}

.site-nav {
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  position: sticky;
  top: 0; /* Stick to the top of the screen */
  z-index: 100; /* Ensure it's above other content */
}

.nav-logo img {
  max-width: 10rem;
}

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

.main-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-links li {
  margin-right: 20px;
}

.main-links li a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
}

.main-links li a:hover,
.main-links li a:active,
.main-links li a:focus,
.main-links li a:target {
  color: var(--blue-primary);
}

/* Hamburger Menu */
.hamburger {
  display: none; /* Hide by default on larger screens */
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--charcoal);
  margin: 2px 0;
}

/* Sidebar for mobile screens */
.sidebar {
  position: fixed;
  top: 0;
  right: -50%; /* Start off-screen */
  width: 50%;
  height: 100vh;
  background-color: rgba(67, 67, 67, 0.95);
  color: white;
  transition: right 0.3s ease-in-out;
}

.sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.sidebar-links li {
  padding: 10px;
}

.sidebar-links li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-links li a:hover {
  color: var(--white);
}

/* Show sidebar when active class is applied */
.sidebar.active {
  right: 0;
}

/* Media query for mobile screens */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
  }

  .hamburger {
    display: flex;
  }

  .main-links {
    display: none; /* Hide main links on mobile screens */
  }
}

/* Main layout */
.site-main {
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section {
  width: 100%;
  margin: 0;
  padding: 1rem;
}

/* Background colors for sections */
.section-blue {
  background-color: var(--blue-primary);
}

.section-light-blue {
  background-color: var(--blue-light);
  color: var(--white);
}

.section-green {
  background-color: var(--green);
}

.section-yellow {
  background-color: var(--yellow);
}

/* Content layout */
.content {
  width: 70%;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  padding: 20px;
  flex: 1; /* Grow to take up available space */
  display: flex;
  flex-direction: column;
}

.hero-content {
  width: 70%;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  flex: 1; /* Grow to take up available space */
  display: flex;
  flex-direction: column;
}

@media only screen and (max-width: 768px) {
  .content {
    width: 90%;
  }
}

@media only screen and (max-width: 816px) {
  .hero-content {
    width: 100%;
  }
}

/* Quote */
.section-quote {
  background-color: var(--green);
}

.quote {
  display: flex;
  padding: 20px;
  margin: 20px 0;
  position: relative;
}

.quote-mark-start,
.quote-mark-end {
  font-size: 3rem;
  font-weight: bold;
  color: var(--white);
  position: absolute;
}

.quote-mark-start {
  top: 10%;
  left: 0;
}

.quote-mark-end {
  bottom: 18%;
  right: 3%;
}

.quote-content {
  flex-grow: 1;
  margin: 0 10px;
}

.quote-content p {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-align: left;
  color: var(--white);
}

.quote-content p strong {
  font-size: 2rem;
}

cite a {
  font-style: italic;
  text-align: right;
  color: #ddd;
  font-size: 1.5rem;
  text-decoration: none;
}

cite a:hover {
  color: #fff;
}

/* Cause */
.cause {
  text-align: left;
  font-size: 1.5rem;
  background-color: #f4f4f4;
  color: var(--blue-primary);
}

.cause-video {
  width: 100%;
}

/* About */
.about {
  color: var(--white);
  text-align: left;
}

.about h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.about h1 span {
  text-transform: uppercase;
}

sup {
  vertical-align: middle;
  font-size: 50%;
}

.about p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-section {
  border-bottom: 30px solid #f4f4f4;
}

/* Video */
.content-video-1 {
  margin-top: 40px;
}
.section-video h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  padding-bottom: 1rem;
  text-align: left;
  text-transform: uppercase;
}

.section-video p {
  font-size: 1.25rem;
  text-align: left;
}

video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

@media only screen and (min-width: 768px) {
  .content-video-1 {
    flex-direction: row;
  }

  .video-text {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .video-text h2 {
    margin-top: 0;
    font-size: 3.5rem;
    text-transform: uppercase;
  }

  .video-text p {
    margin-top: 2rem;
    font-size: 2rem;
  }

  video {
    width: 60%;
    height: auto;
    object-fit: cover;
    display: block;
  }
}

/* Benefit */
.section-image h2 {
  text-transform: uppercase;
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Shade */
.section-image p {
  text-align: left;
  font-size: 1.5rem;
  margin-left: 0;
}

/* Cards */
.section-cards {
  border-bottom: 2rem solid #4f71be;
}

.section-cards h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: left;
}

.card-container {
  text-align: left;
  display: flex;
  flex-direction: column; /* Default to column layout on mobile */
  align-items: stretch;
  gap: 15px;
}

.card {
  width: 100%; /* Takes up 90% of width on mobile */
  margin: 0 auto;
  background-color: var(--white);
  box-shadow: var(--shadow-2);
  border-radius: 0.735rem;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.card-text-container {
  padding: 0 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card h3 {
  text-transform: uppercase;
  margin-bottom: 0;
}

.outline-button {
  background-color: transparent;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  padding: 10px 20px;
  margin: 2.5rem auto 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.outline-button:hover {
  background-color: var(--charcoal);
  color: var(--white);
}

@media only screen and (min-width: 1249px) {
  .card-container {
    flex-direction: row;
  }

  .card h3 {
    text-transform: uppercase;
    margin: 1rem 0 0 0;
    height: 3rem;
  }
}

/* FAQ */
.section-faq h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: var(--blue-primary);
}

@media only screen and (max-width: 768px) {
  .section-faq h2 {
    text-align: left;
  }
}

.faq-list {
  list-style: none;
  padding: 0;
}

.faq-item {
  margin-bottom: 20px;
}

.question {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--blue-primary);
  text-align: left;
  padding: 0;
  width: 100%;
}

.answer {
  color: var(--charcoal);
  display: none;
  padding: 5px;
  box-shadow: var(--shadow-2);
  text-align: left;
  border-radius: var(--border-radius);
}

.answer img,
.answer video {
  width: 100%;
  padding: 5px 0;
  border-radius: var(--border-radius);
}

.answer.show {
  display: block;
}

.image-desc {
  background-color: var(--blue-primary);
  color: var(--white);
  text-align: left;
  padding: 0.5rem;
  font-size: 0.95rem;
  margin: 0;
}

.a3-assets-container {
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 769px) {
  .a3-assets-container {
    flex-direction: row;
  }

  .a3-assets-container img {
    width: 60%;
  }

  .a3-assets-container video {
    width: 40%;
  }
}

/* Call to action */
.section-call-to-action a {
  color: var(--white);
}

.section-call-to-action p {
  color: var(--white);
  text-align: left;
  font-size: 1.5rem;
  line-height: 1.3;
}

.section-call-to-action h2 {
  color: var(--blue-primary);
}

/* Animation */
.section-animation figure {
  text-align: center;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0;
}

.animation {
  width: 100%;
  object-fit: fill;
  padding: 5px 0;
  border-radius: var(--border-radius);
}

.section-animation p {
  font-size: 1.25rem;
}

/* Footer */
.site-footer {
  background-color: var(--white);
  color: var(--charcoal);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-text {
  font-size: 0.75rem;
}

.footer-right img {
  max-width: 9rem;
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.social-link {
  color: white;
  margin: 0 0.25rem;
  text-decoration: none;
}

.social-link img {
  margin-left: 0.25rem;
  width: 1rem;
}

.social-link:first-child {
  margin-left: 0;
}

/* SEO */

.image-container {
  position: relative;
  width: 100%;
  padding-bottom: 44%; /* 16:9 aspect ratio (9 / 16 * 100%) */
  overflow: hidden;
}

.image-container img {
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: contain; /* or contain */
}

.loading-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f1f1f1; /* Placeholder background color */
}

.loading-indicator::before {
  content: "";
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-top: 4px solid var(--blue-primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Photo Gallery link in navbar */
.gallery-link {
  background-image: linear-gradient(to right top, #cc3dbe, #c136c3, #b430c8, #a52ccd, #942ad3, #8633d8, #763bdd, #6442e2, #554fe6, #455be8, #3564e8, #266de8);
  background-clip: text;
  -webkit-background-clip: text; /* required for Safari/Chrome */
  color: transparent; /* use this instead of var(--charcoal) */
  -webkit-text-fill-color: transparent; /* Safari */
}

.gallery-link:hover {
  background-image: linear-gradient(to right top, #d561ca, #cc60cf, #c260d4, #b760d8, #ab60dd, #9f65e1, #9369e5, #866de8, #7875ea, #6a7cec, #5c82eb, #5088ea);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


/* Banner Styles */
.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem; /* instead of margin */
  width: 100%;
  box-sizing: border-box;
}


.banner h2 {
  font-size: 2rem;
  margin-top: 0;
}

.banner-btn {
  font-size: 1.25rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-4);
}

/* Adjustments for smaller screens */
@media only screen and (max-width: 768px) {
  .banner {
    width: 100%;
  }
  .banner h2 {
    font-size: 1.5rem;
    margin-bottom: 0.15rem; /* Further reduce space on smaller screens */
  }
  .banner-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Added gallery button next to demo video */
.gallery-btn {
  color: var(--white);
  background: var(--blue-primary);
  box-shadow: var(--shadow-4);
}

.gallery-btn:hover {
  background-color: var(--blue-light);
  color: var(--white);
}

/* New position for Watch Demo button */
.watch-demo-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 40;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: var(--yellow); /* or whatever button style */
  color: #000;
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-3);
  cursor: pointer;
}

@media (max-width: 768px) {
  .watch-demo-btn {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

/* --- Hero Carousel Styles --- */
#default-carousel {
  margin: 0;
  width: 100%;
  min-height: 600px;
  position: relative; /* Make this the positioning context for absolute children */
}

#default-carousel .carousel-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow-4);
  border-radius: var(--border-radius);
}

#default-carousel .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.7s ease-in-out;
  opacity: 0;
}

#default-carousel .carousel-item.active {
  opacity: 1;
}

#default-carousel .carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* or contain */
}

#default-carousel .carousel-indicators {
  position: absolute;
  z-index: 30;
  display: flex;
  transform: translateX(-50%);
  bottom: 1.25rem;
  left: 50%;
  gap: 0.25rem; /* indicator spacing */
  flex-direction: row;
  padding-left: 0;
  margin-right: 0;
  list-style: none;
  align-items: center;
}

#default-carousel .carousel-indicators button {
  width: 0.75rem;
  height: 0.75rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 0;
  box-sizing: content-box;
}

#default-carousel .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--yellow);
}

/* Media query for mobile screens */
@media only screen and (max-width: 768px) {
  #default-carousel.relative.w-full {
    min-height: auto; /* Allow height to adjust based on content */
  }

  #default-carousel .carousel-wrapper {
    /* Set a height based on a common image aspect ratio, e.g., 16:9 or 4:3 */
    /* For 16:9 aspect ratio (height = width * 9 / 16) */
    height: calc(100vw * 3 / 4);
    /* Alternatively, for a 4:3 aspect ratio (height = width * 3 / 4) */
    /* height: calc(100vw * 3 / 4); */
  }

  #default-carousel .carousel-image {
    object-fit: cover; /* Maintain aspect ratio and cover the container */
    height: 100%; /* Ensure image fills the wrapper height */
  }

  #default-carousel .carousel-indicators {
    bottom: 0.5rem; /* Adjust indicator position on mobile */
  }

  #default-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
  }
}

/* Adjustments for even smaller screens */
@media only screen and (max-width: 480px) {
  #default-carousel .carousel-indicators {
    bottom: 0.25rem; /* Further adjust indicator position */
  }
}
