body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    background: #fafafa;
    color: #333;
}

/* This container will be pinned, and its height (100vh) 
is the initial state of the hero section. */
.image-wrap {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* This container will be pinned */
    overflow: hidden;
    /*padding: 0 3rem;*/
    /* Add padding to the sides */
    box-sizing: border-box;
    /* Include padding in calculations */
}

img {
    /* Starting state: large */
    width: 100%;
    /* Changed to 100% to fill padded container */
    /* max-width: 900px; */
    /* Removed, padding on parent now controls width */
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);    
}

.text {
    /* Starting state: invisible and moved down */
    text-align: center;
    margin-top: 0.75rem;
    max-width: 700px;
    padding: 0 1rem;
    /* For mobile */
}

.heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: #335D53;
    margin: 0;
    line-height: 1.2;
    margin-top:30px;
}

.subheading {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* This empty div provides scrollable space 
to trigger the animation */
.spacer {
    height: 100vh;
}
#nav-shell{            
    background-color: #315d52;
    color:#fff;
    width: 80%;
}
#nav-shell img{
    box-shadow: 0 0px 0px transparent;
}
#video{
    object-fit: cover;
    position: relative; /* container for inline video */
    display: inline-block;     /* ensure correct centering and sizing context */
    background-color: #000;
}
#video img{
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Inline Vimeo iframe sizing (force cover to avoid letterboxing) */
#video .video-iframe{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.15); /* scale up to hide bars */
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    display: block;
    border: 0;
    pointer-events: none; /* behave like a background */
}
@media (min-width: 768px) {
  /* Slightly lower scale on desktop where aspect usually matches */
  #video .video-iframe{ transform: translate(-50%, -50%) scale(1.187); }
}
/* Default: desktop/tablet visible, mobile hidden */
#video .video-iframe--mobile{ display: none; }
#video .video-iframe--desktop{ display: block; }
@media screen and (max-width: 767px) {
  #video .video-iframe--mobile{ display: block; }
  #video .video-iframe--desktop{ display: none; }
}
/* Ensure the pinned hero section doesn't cause overflow and centers content */
.video-wrap{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* anchor ::after play icon to container */
    overflow: hidden;
}
footer{
    background-color: #E5E5E5;            
    font-size: 12px;
}
#quiz{
    background-image:url(../img/quiz.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding-top: 50px;
    padding-bottom: 50px;
}
#floating-nav{
    top: 0.75rem;
}
.box{
    max-width: 70%;
    width: 70%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px !important;
    text-align: center;
}
.box h2{
    max-width: 450px;
    margin: 0px auto;
}

@media screen and (max-width: 767px) {
    .box{
        max-width: 90%;
        width: 90%;
    }
    .subheading{
      font-size: 1.8rem;
      margin-top: 30px;
    }
}

#video{
    cursor: default;
    overflow: hidden;
}

.video-wrap #video::after {
  content: none !important;
  display: none !important;
}

/* Modal styles for Vimeo popup */
.hidden { display: none !important; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.video-modal__dialog {
  position: relative;
  width: min(900px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
}
.video-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  z-index: 3;
}
.video-modal__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb; /* gray-200 */
  border-top-color: #335D53; /* brand green */
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.video-modal.video-modal--form .video-modal__dialog {
  aspect-ratio: auto;
  width: min(740px, 92vw);
  height: min(85vh, 900px);
  background: #fff;
}
.video-modal.video-modal--form .video-modal__loader { background: rgba(255,255,255,0.9); }
.video-modal__frame, .video-modal__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.video-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.video-modal__close:hover {
  background: rgba(0,0,0,0.8);
}
.video-wrap #video::after{ display: none !important; content: none !important; }
@media (hover: hover) and (min-width: 768px) {
  .video-wrap #video:hover::after{ display: none !important; }
}

@media (min-width: 768px) {
  .show-desktop{ display: block; }
  .show-mobile{ display: none; }
}
@media (max-width: 767px) {
  .show-desktop{ display: none; }
  .show-mobile{ display: block; }
}

/* Inline video loader overlay */
.inline-loader{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  z-index: 2;
}
.inline-loader__spinner{
  width: 42px;
  height: 42px;
  border: 4px solid #e5e7eb; /* gray-200 */
  border-top-color: #335D53; /* brand green */
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* Lightbox2 styles are provided by the CDN; custom lightbox styles removed */
/* Floating video controls */
.video-controls{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000; /* above page content */
}
.vc-panel{
  display: flex;
  gap: 8px;
}
.vc-btn{
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: none;
  background: rgba(51,93,83,0.9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.vc-btn:hover{ background: rgba(43,78,69,0.95); transform: translateY(-1px); }
.vc-main{ background: rgba(0,0,0,0.6); }

/* Icon masks using SVGs for crisp look */
.vc-btn#vc-play::before{ content: ""; display: block; width: 18px; height: 18px; background-size: contain; background-repeat: no-repeat; }
.vc-btn#vc-mute::before{ content: ""; display: block; width: 18px; height: 18px; background-size: contain; background-repeat: no-repeat; }

/* Default icons: pause (assuming video is playing), and volume-off (muted) */
#vc-play.is-paused::before{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
#vc-play:not(.is-paused)::before{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff'%3E%3Cpath d='M6 4h4v16H6z'/%3E%3Cpath d='M14 4h4v16h-4z'/%3E%3C/g%3E%3C/svg%3E"); }

#vc-mute.is-muted::before{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3 10v4h4l5 5V5l-5 5z'/%3E%3Cline x1='4' y1='4' x2='20' y2='20' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
#vc-mute:not(.is-muted)::before{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff'%3E%3Cpath d='M3 10v4h4l5 5V5l-5 5z'/%3E%3Cpath d='M16.5 12a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4z'/%3E%3C/g%3E%3C/svg%3E"); }
.logo{
  width:147.2px;
}
.logo-container img{
  margin: 0 !important;
  height: 100%;
  width: auto;
}