/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Fira Sans black 900 & extra Bold, condensed only for small text*/
html {
  font-family: "Fira Sans", sans-serif;
  color: #ffffff;
}

body {
  padding-top: 60px; /* adjust to match your header height */
  background-color: #009a9b;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Hero section */
.hero {
/*  background-image: url('zoom1.jpg'); */
  background-color: #009a9b; 
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
/*  height: calc(100vh - 60px); /* full screen minus header */ 
/*  height: 100vh;  
/*  color: white; */
/*  color: #41C1BA; */
  padding: 20px 20px 20px 20px;    /* top padding gives space below header */
  color: white;                  /* text color */
  position: relative;
  width: 100%;
  /*min-height: 300px;     /* enough height for desktop */
  min-height: 80vh;          
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /*background: rgba(0,0,0,0.4); */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}


/* Logo row */
.hero-logo-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.main-logo {
  height: 120px;
  margin-bottom: -25px;
  z-index: 3;
}

.side-img {
  height: 80px;
  position: relative;
  bottom: -2px;
  z-index: 2;
}

/* Yellow text box */
.hero-text-box {
  position: relative;
  background-color: #FFD000;  /* yellow */
  color: black;
  border-radius: 12px;
  padding: 40px 30px 20px; /* extra top padding for overlap */
  max-width: 900px;
  margin-top: -20px; /* bring box closer to logo row */
  z-index: 1;
}

.hero-text-box h3 {
  margin-bottom: 15px;
  font-size: 1.75rem;
}

.hero-text-box h4 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  /*color: #FFFFFF; */
  color: #009a9b; 
}

.hero-text-box h5 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #FFFFFF; 
}

.hero-text-box p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.hero-pdf-image {
  width: calc(100% - 20px);  /* small margin inside box */
  margin: 10px;
  display: block;
  border-radius: 8px; /* optional, matches box style */
}

/* container */
.intro-block {
  display: flex;
  align-items: center;     /* vertically aligns image with text */
  gap: 25px;               /* space between image and text */
  margin-bottom: 20px;
}

/* image area */
.intro-image img {
  height: 220px;           /* MUCH more appropriate beside text */
  width: auto;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .intro-block {
    flex-direction: column;
    text-align: left;
  }

  .intro-image img {
    height: auto;
    width: 90%;
    max-width: 400px;
  }
}



.image-container {
  position: relative;
  max-width: 700px;      /* matches your text box width */
  margin: 10px auto;     /* centers horizontally */
  /*padding: 10px 10px 10px; /* extra top padding for overlap */
  border-radius: 12px;
}

.image-container img {
  width: 100%;           /* makes it fill the container */
  height: auto;          /* keeps aspect ratio */
  display: block;        /* removes extra spacing */
}

/***/

/* Programme text box */
.prog-text-box {
  position: relative;
  border-radius: 12px;
  padding: 40px 30px 20px; /* extra top padding for overlap */
  max-width: 900px;
  margin-top: -20px; /* bring box closer to logo row */
  z-index: 1;
}

.prog-text-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  /*color: #FFFFFF; */
  color: #FFD000; 
}

.prog-text-box p {
  font-size: 1.0rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: white;
  text-align: justify;
}

/****/

/* Header */
.header, .footer {
  position: relative;
  align-items: center;      /* vertically center logo + button */
  gap: 5px;                /* space between logo and button */
  left: 0;
  width: 100%;
  display: flex;
  /*justify-content: space-between; */
  padding: 10px 20px;
  /*background-color: rgba(54, 91, 109, 0.8);  /* 0.8 = 80% opacity */
  z-index: 1000; /* make sure it’s above other content */
}


.header {
  top: 0;
  height: 60px;      /* define exact height */
}

.footer {
  bottom: 0;
  height: 60px;      /* define exact height */
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  /*background-color: rgba(54, 91, 109, 0.8); /* same as header */
  color: white;
  flex-wrap: wrap; /* stack on mobile */
}

.footer-left {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icon svg {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.social-icon:hover svg {
  transform: scale(1.1);
  filter: brightness(0.9); 
  /*fill: #ffffff; */
}

.footer-right .legal-link {
  color: #ffffff;
  text-decoration: none;
  /*font-weight: bold;*/
  font-size: 0.5rem;
}

.footer-right .legal-link:hover {
  text-decoration: none;
  transform: scale(1.1);
  color: #ffffff;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
/*  color: #ccffff;  */
  color: #41C1BA;
  text-decoration: none; /* remove underline */
/*  display: inline-block; uncomment when switch to logo */
}

.logo:hover {
  opacity: 0.8; /* optional: subtle hover effect */
}

.logo img {
  height: 40px;      /* adjust to fit nicely in your header */
  width: auto;       /* keeps proportions */
  display: block;    /* remove extra spacing below inline images */
  cursor: pointer;   /* make it clear it’s clickable */
  transition: transform 0.2s ease;
}

.logo img:hover {
  transform: scale(1.05); /* subtle hover effect */
}



/* Center content */
.content {
  position: relative;
/*  top: auto; */
/*  left: auto; */
  padding: 20px 20px 20px 20px;  /* top | right | bottom | left */
/*  transform: translate(-50%, -50%);  */
  transform: none;
  /*text-align: center; */
  text-align: start;
  max-width: 900px;       /* limit width on large screens */
  width: 100%;            /* allow full width on mobile */
  box-sizing: border-box; /* so padding doesn’t shrink text */
  margin: 0 auto;       /* center horizontally */
}

.content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}




/* CTA button */
.cta-button {
  padding: 0.8rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.2);
/*  color: white; */
  color: #41C1BA;   
  text-decoration: none;
/*  border: 2px solid white; */
  border: 2px #41C1BA; 
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* push content to the right */
  gap: 10px;                   /* spacing between text and icon */
  margin-top: 20px;
  max-width: 800px;
  width: 100%;
  text-align: right;
}

.cta-container p {
  flex: 1 1 60%;             /* text takes up remaining space */
  margin: 0;                  /* remove default paragraph margin */
}

.cta-container h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.cta-container .cta-icon {
  width: 60px;     /* size of your PNG */
  height: 60px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-container .cta-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.3);   /* hover effect for PNG */
}

.cta-container2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* push content to the right */
  gap: 10px;                   /* spacing between text and icon */
  margin-top: 20px;
  max-width: 800px;
  width: 100%;
  text-align: right;
}

.cta-container2 p {
  flex: 1 1 60%;             /* text takes up remaining space */
  margin: 0;                  /* remove default paragraph margin */
}

.cta-container2 h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.cta-container2 h4 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color:#FFD000;
}

.cta-container2 .cta-icon2 {
  width: 80px;     /* size of your PNG */
  height: 80px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
  transform: translateY(-30px); /* raises the SVG 30px */
}

.cta-container2 .cta-icon2:hover {
  transform: scale(1.5);
  filter: brightness(0.9);   /* hover effect for PNG */
  transform: translateY(-20px); /* raises the SVG 30px */
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 40px; /* space between rows */
  max-width: 1000px;
  margin: 0 auto; /* center the section */
  padding: 40px 20px;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.about-row.reverse {
  flex-direction: row-reverse;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-text p1 {
  text-decoration: underline;
  text-decoration-color: #FFD000;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* optional rounded corners */
}

/*****/

.resource-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;

  /* Mobile-first: stack cards */
  grid-template-columns: 1fr;
}

/* Desktop layout: 3 cards per row */
@media (min-width: 900px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resource-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #f7f7f7;
  padding: 6px;
}

.resource-card h3 {
  margin: 0.3rem 0;
  font-size: 1.2rem;
  color: #555;
}

.resource-card p {
  margin: 0.4rem 0 1.2rem;
  color: #555;
  line-height: 1.4;
}

.resource-card .tag {
  background: #cef5f5;
  color: #009a9b;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}


.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 22px; /* more rounded than normal cards */
}

.video-card .video-frame {
  width: 200%;
  aspect-ratio: 9 / 16;   /* vertical phone */
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.video-card .local-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills phone frame cleanly */
  border-radius: 18px;
  background: #000;
}

.video-card .video-caption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.3;
  color: #333;
}

/* ID cards */

.id-card-wrapper {
  max-width: 900px;   /* maximum width of your grid */
  margin: -1rem auto 0; /* pull it up closer to hero */
  padding: 0 1.5rem;   /* optional: horizontal padding for small screens */
}


/* GRID – same layout rules as your resource-grid */
.id-card-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    /* Mobile: one card per row */
  grid-template-columns: 1fr;

}

/* Hide fullscreen button across browsers */
video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}
video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}

/* PROG cards */

.pg-card-wrapper {
  max-width: 900px;   /* maximum width of your grid */
  margin: -5rem auto 0; /* pull it up closer to hero */
  padding: 0 1.5rem;   /* optional: horizontal padding for small screens */
}


/* GRID – same layout rules as your resource-grid */
.pg-card-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    /* Mobile: one card per row */
  grid-template-columns: 1fr;

}

/* Desktop: three cards per row */
@media(min-width:900px){
  .id-card-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
  .spacer {
    pointer-events:none;
    visibility:hidden;
  }
}

/* Desktop: two cards per row */
@media(min-width:950px){
  .pg-card-grid {
    grid-template-columns: repeat(2, minmax(400px, 1fr));
  }
}

/* CARD OUTER WRAPPER */
.id-card {
  perspective: 800px;
  width: 100%;
}

/* CARD OUTER WRAPPER */
.pg-card {
  perspective: 800px;
  width: 100%;
}


/* INNER FLIP WRAPPER */
.id-card-inner {
  position: relative;
  width: 100%;
  height: 300px; /* similar height impression */
  border-radius: 14px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* When flipped */
.id-card.flipped .id-card-inner {
  transform: rotateY(180deg);
}

/* INNER FLIP WRAPPER */
.pg-card-inner {
  position: relative;
  width: 100%;
  height: 500px; /* similar height impression */
  border-radius: 14px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* When flipped */
.pg-card.flipped .pg-card-inner {
  transform: rotateY(180deg);
}

/* BASE STYLE FOR BOTH SIDES */
.id-card-front,
.id-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  backface-visibility: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hover effect (same as resource-card) */
.id-card:hover .id-card-front,
.id-card:hover .id-card-back {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* BASE STYLE FOR BOTH SIDES */
.pg-card-front,
.pg-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  backface-visibility: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hover effect (same as resource-card) */
.pg-card:hover .pg-card-front,
.pg-card:hover .pg-card-back {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* FRONT SIDE */
.id-card-front img {
  width: 100%;
  height: 250px;
  object-fit: cover; 
  border-radius: 10px;
  background: #f7f7f7;
  /*margin-bottom: 1rem; */
}

/* Title + subtitles styled similar to your resource-card text */
.id-card-front h3,
.id-card-back h3 {
  margin: 0.3rem 0;
  font-size: 1.2rem;
  color: #555;
}

.id-card-front h4 {
  margin: 0.2rem 0;
  font-size: 1rem;
  color: #777;
}

.id-card-front p,
.id-card-back p {
  color: #555;
  line-height: 1.4;
}

.id-card-back p1 {
  color: #777;
  font-size: 0.75rem;
}

.id-card-back p2 {
  color: #777;
  font-size: 0.7rem;
}

.id-card-back pp2 {
  color: #777;
  font-size: 0.7rem;
}

.id-card-back p3 {
  color: #777;
  font-size: 0.65rem;
}

.id-card-back pp3 {
  color: #777;
  font-size: 0.65rem;
}


/* BACK SIDE */
.id-card-back {
  transform: rotateY(180deg);
  justify-content: center;
}

/*PG*/
/* FRONT SIDE */
.pg-card-front img {
  width: 100%;
  height: 250px;
  object-fit: cover; 
  border-radius: 10px;
  background: #f7f7f7;
  /*margin-bottom: 1rem; */
}

/* Title + subtitles styled similar to your resource-card text */
.pg-card-front h3,
.pg-card-back h3 {
  margin: 0.3rem 0;
  font-size: 1.2rem;
  color: #555;
}

.pg-card-front h2 {
  margin: 0.4rem 0;
  font-size: 1.4rem;
  color: #777;
}

.pg-card-front p,
.pg-card-back p {
  color: #555;
  line-height: 1.4;
}

.pg-card-back p1 {
  color: #777;
  line-height: 1.4;
  font-size: 0.85rem;
}

.pg-card-front p1 {
  color: #777;
  line-height: 1.4;
  font-size: 0.85rem;
}

/* BACK SIDE */
.pg-card-back {
  transform: rotateY(180deg);
  justify-content: center;
}



/* Responsive */
@media (max-width: 600px) {

  .hero-logo-row {
    gap: 10px;
  }

    /* Hero text box */
  .hero-text-box h3 {
    font-size: 1.2rem; /* smaller heading on mobile */
  }

  .hero-text-box p {
    font-size: 0.95rem; /* slightly smaller paragraph */
  }

  .hero-text-box h4 {
    font-size: 1.1rem;
  }

  .hero-text-box h5 {
    font-size: 1.1rem;
  }  

  /* Optional: CTA row text */
  .cta-container h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    padding-left: 75px;
  }

  .cta-container2 h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .cta-container2 h4 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .prog-text-box p {
    font-size: 0.95rem; /* slightly smaller paragraph */
  }

  .prog-text-box h3 {
    font-size: 1.2rem; /* smaller heading on mobile */
  }  

  .main-logo {
    height: 70px;
    margin-bottom: -15px;
  }

  .side-img {
    height: 40px;
    bottom: -2px;
  }

  .content {
    /* padding: 0 15px;   /* use smaller margins on mobile */
    padding: 20px 15px 15px 15px;  /* less top padding on mobile */
    max-width: 100%;   /* let it stretch full width */
  }
  .content h1 {
    font-size: 1.8rem;
  }
  .content p {
    font-size: 1rem;
  }
  .cta-icon {
    width: 20vw;             /* scale relative to viewport width */
    max-width: 60px;         /* cap maximum size on small screens */
  }
  .about-text {
    padding: 15px;
  }  

  .about-row,
  .about-row.reverse {
    flex-direction: column;
  }

  .header {
    height: 60px;
  }
   .footer {
    height: 60px;
  }
  body {
    padding-top: 20px;  /* match mobile header */
  }  
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-right {
    order: 2; /* show legal link below icons */
  }
  .footer-left {
    order: 1;
    gap: 10px;
  } 
  .pg-card-front h2 {
    font-size: 0.95rem; /* smaller heading on mobile */
  }

  .pg-card-front p {
    font-size: 0.80rem; /* slightly smaller paragraph */
  } 
  .pg-card-back p {
    font-size: 0.80rem; /* slightly smaller paragraph */
  } 

  .pg-card-front p1 {
    font-size: 0.65rem; /* slightly smaller paragraph */
  } 
  .pg-card-back p1 {
    font-size: 0.65rem; /* slightly smaller paragraph */
  }   
  .id-card-back p1 {
    font-size: 0.65rem; /* slightly smaller paragraph */
  }   
  .id-card-back p2 {
    font-size: 0.65rem; /* slightly smaller paragraph */
  }   
  .id-card-back p3 {
    font-size: 0.65rem; /* slightly smaller paragraph */
  }  
  .id-card-back pp2 {
    font-size: 0.65rem; /* slightly smaller paragraph */
  }   
  .id-card-back pp3 {
    font-size: 0.65rem; /* slightly smaller paragraph */
  }  

}


/* Menu styles with transition */
.nav-menu {
  display: flex;              /* make flex-direction work */
  max-height: 0;               /* Start closed */
  overflow: hidden;           /* Hide content when closed */
  flex-direction: column;
  /*background-color: rgba(0, 0, 0, 0.8); */
  background-color: #009a9b; 
  position: absolute;
  top: 60px;
  left: 20px;
  padding: 0 10px;            /* Padding only on sides */
  border-radius: 5px;
  z-index: 1000;
  transition: max-height 0.3s ease, padding 0.3s ease;
}


/*.nav-menu {
/*  display: flex;              /* make flex-direction work */
/*  flex-direction: column;     /* stack links vertically */
/*  position: absolute;
/*  top: 100%;                  /* position below the toggle */
/*  left: 0;                    /* align with left edge of parent */
/*  width: 200px;               /* optional fixed width */
/*  background-color: #009a9b; 
/*  overflow: hidden;
/*  max-height: 0;
/*  border-radius: 5px;
/*  padding: 0 10px;
/*  z-index: 1000;
/*  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* When active, expand menu */
.nav-menu.active {
  max-height: 300px;          /* Enough to show all links */
  padding: 10px;              /* Restore padding */
}



/* Links */
.nav-menu a {
 /* color: white; */
  color: white;    
  text-decoration: none;
  padding: 10px;
  font-size: 1rem;
  transition: background 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  animation-fill-mode: forwards;
}



/* Animate each link in when menu opens */
.nav-menu.active a {
  animation: fadeSlideIn 0.3s forwards;
}



/* Delay each link’s animation */
.nav-menu.active a:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.active a:nth-child(2) { animation-delay: 0.2s; }
.nav-menu.active a:nth-child(3) { animation-delay: 0.3s; }
.nav-menu.active a:nth-child(4) { animation-delay: 0.4s; }
.nav-menu.active a:nth-child(5) { animation-delay: 0.5s; }
.nav-menu.active a:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}


.menu-button {
  position: relative;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.menu-button .icon {
  position: absolute;
  transition: opacity 0.3s ease;
}

.menu-button .icon.hidden {
  opacity: 0;
  pointer-events: none;
}

.menu-button .icon:not(.hidden) {
  opacity: 1;
}

.menu-button .icon {
  font-family: 'Fira', sans-serif; /* match your design */
  /*font-weight: bold; */
  font-size: 1rem; /* adjust to match header text */
  color: #fff;      /* or your text color */
  background: transparent; /* if your header is colored */
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px; /* optional rounded corners */
  transition: background 0.2s ease, color 0.2s ease;
}

.survey-container iframe {
  width: 100%;
  max-width: 700px;
  height: 800px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
  margin: 20px auto;
}

/* Modal container - hidden by default */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); /* dark overlay */
}

/* Modal content box */
.modal-content {
  background-color: #fff; 
/*  background-color: #365B6D; */
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}

/* Close button style */
.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
  user-select: none;
  transition: color 0.3s;
  z-index: 1100; /* ensure it’s above the iframe */
}

.close-button:hover {
  color: #000;
}

/* Multi-step survey styles */
#surveyContainer {
  max-width: 600px;
  margin: 0 auto;
}

.question {
  display: none;
}

.question.active {
  display: block;
}

.question .options label {
  display: flex;           /* radio + text side by side */
  align-items: center;     /* vertically aligned */
  margin-bottom: 6px;      /* space between options */
  cursor: pointer;
}

.question input[type="radio"] {
  vertical-align: middle;  /* aligns the radio with the text */
  margin-right: 8px;    /* space between radio & text */
}

.question button {
  display: block;       /* force onto new line */
  margin-top: 10px;     /* small spacing above button */
  padding: 6px 12px;    /* optional: make button clickable and readable */
}


#surveyContainer p {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

#surveyContainer input[type="radio"], 
#surveyContainer textarea {
  margin-bottom: 10px;
  font-size: 1rem;
  width: 100%;
}

#surveyContainer button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#surveyContainer button:hover {
  background-color: #555;
}

#progressContainer {
  width: 100%;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
}

#progressBar {
  width: 0%;
  height: 10px;
  background-color: #365B6D;
  transition: width 0.3s ease;
}

/*svg radio buttons*/

@import url('https://fonts.googleapis.com/css?family=Roboto');

/* Scoped container */
.svg-survey a:link,
.svg-survey a:visited,
.svg-survey a:hover,
.svg-survey a:active {
  color: rgba(0, 0, 16, 0.8);
  text-decoration: none;
}

.svg-survey a:hover,
.svg-survey a:active {
  border-bottom: 0.1em solid rgba(0, 0, 16, 0.8);
  color: rgba(0, 0, 16, 0.8);
  text-decoration: none;
}

.svg-survey span {
  color: rgba(0, 0, 16, 0.4);
  font-size: 70%;
}

.svg-survey header {
  display: flex;
  margin: auto;
  width: 34.6rem;
}

.svg-survey header h1 {
  font-size: 2.8em;
}

.svg-survey .card {
  width: 100%;       /* full width of the parent container */
  max-width: 400px;  /* optional: limit maximum width on desktop */
  margin: 0 auto;    /* center horizontally */
  padding: 0.5rem;   /* reduce padding on mobile */
  box-sizing: border-box;
/*  display: flex; */
/*  margin: auto; */
/*  box-shadow: 0 0.5rem 1rem rgba(0, 0, 16, 0.19), 0 0.3rem 0.3rem rgba(0, 0, 16, 0.23); */
/*  background-color: rgb(255, 255, 255); */
/*  padding: 0.8rem; */
/*  width: 33rem; */
/*  padding: 0; */
  box-shadow: none; /* optional: remove shadow if you want cleaner look */
  background-color: transparent; /* optional: no background */  
}


.svg-survey .rating-container {
  display: flex;
  justify-content: center;  /* center the icons horizontally */
  flex-wrap: wrap;          /* allow wrapping on very small screens */
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.svg-survey .rating-text p {
  color: rgba(0, 0, 16, 0.8);
  font-size: 1.3rem;
  padding: 0.3rem;
}

.svg-survey .rating {
 /* background-color: rgba(0, 0, 16, 0.8); */
/*  padding: 0.4rem 0.4rem 0.1rem 0.4rem; */
  padding: 0;
/*  border-radius: 2.2rem; */
}

.svg-survey svg {
  fill: rgb(121, 121, 121);
  height: 2.5rem;
  width: 2.5rem;
  margin: 0.1rem;
}

.svg-survey .rating-form-2 svg {
  height: 3rem;
  width: 3rem;
  margin: 0.5rem;
}

.svg-survey #radios label {
  position: relative;
}

.svg-survey input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.svg-survey input[type="radio"] + svg {
  transition: all 0.2s;
}

.svg-survey input + svg {
  cursor: pointer;
}

.svg-survey input[class="super-happy"]:hover + svg,
.svg-survey input[class="super-happy"]:checked + svg,
.svg-survey input[class="super-happy"]:focus + svg {
  fill: rgb(0, 109, 217);
}

.svg-survey input[class="happy"]:hover + svg,
.svg-survey input[class="happy"]:checked + svg,
.svg-survey input[class="happy"]:focus + svg {
  fill: rgb(0, 204, 79);
}

.svg-survey input[class="neutral"]:hover + svg,
.svg-survey input[class="neutral"]:checked + svg,
.svg-survey input[class="neutral"]:focus + svg {
  fill: rgb(232, 214, 0);
}

.svg-survey input[class="sad"]:hover + svg,
.svg-survey input[class="sad"]:checked + svg,
.svg-survey input[class="sad"]:focus + svg {
  fill: rgb(229, 132, 0);
}

.svg-survey input[class="super-sad"]:hover + svg,
.svg-survey input[class="super-sad"]:checked + svg,
.svg-survey input[class="super-sad"]:focus + svg {
  fill: rgb(239, 42, 16);
}


