/* 1. BASE STYLES */
  :root {
    /* Main Colors */
    --color-primary: #008060;      /* Deep Emerald Green */
    --color-secondary: #00A693;    /* **NEW: Bright Teal/Cyan - Strong Accent** */
    --color-tertiary: #19D2C4;     /* NEW: Aqua Blue - Tertiary Accent */

    /* Darker Shades (for hover/active states) */
    --color-primary-darker: #00694e;
    --color-secondary-darker: #008573; /* Darker Teal */
    --color-tertiary-darker: #00BFA5;

    /* Opacity Shades */
    --color-primary-opacity: #0080603a;
    --color-secondary-opacity: #00A69331;
    --color-tertiary-opacity: #19D2C42d;

    /* Gradients */
    --gradient-primary: linear-gradient(to top left, #00694e, #008060);
    --gradient-secondary: linear-gradient(to top left, #008573, #00A693); /* Teal Gradient */
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
  }

  html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: #333333; /* Darker text for readability */
    line-height: 1.9;
    background-color: #fcf9f5; /* Very Light Cream/Off-White Background */
  }

  /* GENERAL ELEMENTS */
  .section {
    padding: 10rem 3rem;
    border-top: 1px solid #e5e5e5; /* Soft light gray border */
    transition: transform 1s, opacity 1s;
  }

  .section--hidden {
    opacity: 0;
    transform: translateY(8rem);
  }

  .section__title {
    max-width: 80rem;
    margin: 0 auto 8rem auto;
  }

  .section__description {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-tertiary); /* Antique Gold for subtitle emphasis */
    margin-bottom: 1rem;
  }

  .section__header {
    font-size: 4rem;
    line-height: 1.3;
    font-weight: 500;
  }
#section--3,
#section--5 {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10rem;
  margin-bottom: 0;
}
.btn {
  display: inline-block;
  background-color: var(--color-primary);
  font-size: 1.6rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  padding: 1.25rem 4.5rem;
  border-radius: 10rem;
  cursor: pointer;
  transition: all 0.3s;
  color: #fff; /* White text on primary button */
}

.btn:hover {
  background-color: var(--color-primary-darker);
}

.btn--text {
  display: inline-block;
  background: none;
  font-size: 1.7rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--color-secondary); /* Gold for text link */
  border: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

p {
  color: #555555; /* Neutral dark gray for body text */
}
button:focus {
  outline: none;
}

img {
  transition: filter 0.5s;
}

.lazy-img {
  transform: scale(0.9);
  transition: transform 0.3s;
}

/* NAVIGATION */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 9rem;
  width: 100%;
  padding: 0 6rem;
  z-index: 100;
  transition: all 0.3s;
}
.nav.sticky {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.98); /* Near white sticky nav */
}

.nav__logo {
  height: 12rem;
  width: 200px;
  transition: all 0.3s;
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
}
nav:hover .nav__link {
  opacity: 0.6;
}
nav:hover .nav__link:hover {
  opacity: 1;
  transform: translateY(-3px);
  color: var(--color-secondary); /* Gold hover effect */
}
.nav:hover .nav__link--btn:not(:hover) {
  opacity: 1;
}
.nav__item {
  margin-left: 4rem;
}
.nav__link--btn:active,
.nav__link--btn:hover {
  color: #fff;
  background-color: var(--color-primary-darker);
  opacity: 1;
  transform: translateY(0);
}
.nav__link:link,
.nav__link:visited {
  font-size: 1.7rem;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}
.nav:hover .nav__logo {
  opacity: 0.6;
}
.nav:hover .nav__logo:hover {
  opacity: 1;
}
.nav__link--btn:link,
.nav__link--btn:visited {
  padding: 0.8rem 2.5rem;
  border-radius: 3rem;
  background-color: var(--color-primary);
  color: #fff; /* White text on primary button */
}

.nav__link--btn:hover,
.nav__link--btn:active {
  color: #fff;
  background-color: var(--color-primary-darker);
}

/* HEADER */
.header {
  padding: 0 3rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__title {
  flex: 1;
  max-width: 115rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  row-gap: 3rem;
  align-content: center;
  justify-content: center;
  align-items: start;
  justify-items: start;
}

h1 {
  font-size: 5.5rem;
  line-height: 1.35;
}
h4 {
  font-size: 2.4rem;
  font-weight: 500;
}
.header__img {
  width: 100%;
  grid-column: 2 / 3;
  grid-row: 1 / span 4;
  transform: translateY(-6rem);
  filter:brightness(90%) contrast(95%) saturate(85%);
}
.header__img:hover {
  filter:brightness(100%) contrast(100%) saturate(100%);
}

.highlight {
  position: relative;
}

.highlight::after {
  display: block;
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  opacity: 0.7;
  transform: scale(1.07, 1.05) skewX(-15deg);
  background-image: var(--gradient-secondary); /* Use Gold gradient for highlight */
}
/* Hamburger icon */
.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s;
}

/* Close button inside nav */
.nav__close {
  font-size: 2.5rem;
  text-align: right;
  padding: 1rem;
  cursor: pointer;
  display: none;
}

/* Mobile styles */
@media (max-width: 600px) {
  .nav {
    padding: 1rem 2rem;
    position: relative;
  }

  .nav__toggle {
    display: flex;
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 200;
  }
  .nav__toggle span {
    transition: transform 0.3s ease;
  }
  .nav__toggle:hover span:nth-child(1) {
    transform: translateX(5px);
  }
  .nav__toggle:hover span:nth-child(2) {
    transform: translateX(-5px);
  }
  .nav__toggle:hover span:nth-child(3) {
    transform: translateX(5px);
  }
  .nav__toggle.hide {
    display: none;
  }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 50vh;
    width: 70%;
    background-color: #ffffff; /* Crisp white background for mobile nav */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 150;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav__links.active {
    right: 0;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
  }
  .nav__close:hover {
    transform: scale(1.2);
    color: var(--color-primary);
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .nav__item {
    margin-left: 0;
  }

  .header__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .header__img {
    order: -1;
    max-width: 80%;
    margin-bottom: 2rem;
    transform: translateY(0);
  }

  h1 {
    font-size: 4rem;
  }

  h4 {
    font-size: 2rem;
  }

  .btn--text {
    font-size: 1.6rem;
    margin-top: 0.5rem;
  }
}

.features {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  padding: 0 40px;
  align-items: flex-start;
}
.features-visual-column {
  position: sticky; /* KEY: Makes the column stick */
  top: 15rem;
  width: 40.5%;
  max-width: 540px;
  height: 500px;
  align-self: flex-start;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.features-visual-column img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}
.features-content-column {
  width: 55%;
  display: flex;
  flex-direction: column;
}
.features__group {
  display: block;
  padding: 60px 0;
  opacity: 0.3;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
  min-height: 80vh;
}
.features__group:not(:last-child) {
  border-bottom: 1px solid #e0e0e0; /* Lighter divider */
}
.features__img {
  display: none;
}
.features__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-darker)); /* Emerald Green Gradient */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transform: rotate(-5deg);
  transition: all 0.4s ease-out;
  box-shadow: 0 5px 15px rgba(0, 128, 96, 0.3); /* Shadow to match primary color */
}
.features__icon svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}
.features__group.is-active {
  opacity: 1;
  transform: translateY(0);
}
.features__group.is-active .features__icon {
  transform: rotate(0deg) scale(1.1);
  background: linear-gradient(45deg, var(--color-secondary-darker), var(--color-secondary)); /* Gold gradient on active */
}
.features__group.is-active .features__header {
  color: #2a2a2a;
}
.features__group:hover {
  opacity: 1;
  transform: translateY(0);
}
.features__group:hover .features__icon {
  transform: rotate(0deg) scale(1.1);
  background: linear-gradient(45deg, var(--color-secondary-darker), var(--color-secondary)); /* Gold gradient on hover */
}
.features__group:hover .features__header {
  color: var(--color-primary); /* Primary Emerald on hover header */
}
.features__header {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #2c3e50;
  transition: color 0.3s;
}
.features__feature p {
  font-size: 17px;
  color: #323333;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .features {
    flex-direction: column;
    gap: 3rem;
    padding: 0 2rem;
  }

  /* Convert sticky images to a horizontal scroll gallery */
  .features-visual-column {
    position: relative;
    width: 100%;
    height: 200px;
    top: auto;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: none;
  }

  .features-visual-column img {
    position: relative !important;
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 12px;
    opacity: 1 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  /* Content column takes full width */
  .features-content-column {
    width: 100%;
  }

  /* Make all feature groups visible and normal */
  .features__group {
    padding: 2rem 0;
    min-height: auto;
    opacity: 1 !important;
    transform: none !important;
    background: #ffffff; /* Crisp white background for mobile cards */
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .features__header {
    font-size: 24px;
  }

  .features__feature p {
    font-size: 16px;
  }
}

/*proj*/
.viewer-grid {
  max-width: 120rem; /* Wide container */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* Mobile: Single column */
  gap: 5rem;
  padding: 0 3rem;
  align-items: flex-start;
}

/* Desktop Layout (Two columns) */
@media (min-width: 1024px) {
  .viewer-grid {
    grid-template-columns: 2fr 2.5fr; /* Tabs ~40%, Content ~60% */
  }
  .media-display-area {
    height: 30rem; /* Shorter image area */
  }
}

/* --- Columns --- */
.tab-column {
  background: linear-gradient(135deg, #e6fff5 0%, #f7fcfc 100%); /* Light Emerald/Mint Gradient */
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(13, 13, 13, 0.06);
  padding: 1.5rem 0.5rem;
  padding-right: 1.5rem;
  position: sticky;
  top: 15rem; /* Optional: Makes the tabs stick when scrolling */
}

.content-column {
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.05);
  padding-top: 15rem;
  padding: 2rem 3rem 3rem 3rem;
  background: #fcf9f5; /* Match body background */
}

/* --- Tab Buttons --- */
.tab-button {
  width: 100%;
  text-align: left;
  padding: 1rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: none;
  cursor: pointer;
  background-color: #ffffff; /* White button background */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-left: 5px solid transparent;
  transition: background 0.3s;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-20px);
}

.tab-button:hover {
  background-color: #fffde7; /* Light gold hover */
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15); /* Gold shadow on hover */
}

/* Tab Text Content */
.tab-heading {
  font-weight: 500;
  font-size: 1.6rem;
  color: #00503c; /* Dark Emerald heading color */
  margin-bottom: 0.2rem;
}

.tab-description {
  font-size: 1.3rem;
  color: rgb(60, 60, 60);
  line-height: 1.4;
}

/* --- Active Tab Styling --- */
.tab-button.is-loaded {
  opacity: 1;
  transform: translateX(0);
}
.tab-button:hover .tab-icon svg {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.tab-button.is-active {
  border-left-color: var(--color-primary); /* Primary Emerald for accent */
  background-color: #f7fffb; /* Slightly lighter mint on active */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Active Icon and Text Color */
.tab-icon svg {
  color: black;
  width: 2.2rem;
  height: 2.2rem;
  transition: all 0.3s;
}
.tab-button.is-active .tab-icon svg {
  color: var(--color-primary);
  transform: scale(1.1);
}
.tab-button {
  animation: fadeSlideIn 0.6s ease forwards;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Media Display Area --- */
.media-display-area {
  position: relative;
  height: 35rem; /* Fixed height for image area */
  width: 100%;
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: #e8f5f0; /* Light green-gray background for media area */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.media-display-area.is-active {
  opacity: 1;
  transform: translateY(0);
}
.content-column {
  background: #fcf9f5; /* Match body background */
}
.media-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.media-item.is-active {
  opacity: 1;
}

/* --- Feature Content Panel --- */
.content-heading {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a; /* Dark text */
  position: relative;
  transition: color 0.3s, transform 0.4s ease-out;
}
.content-heading::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: var(--gradient-primary); /* Emerald gradient underline */
  margin-top: 0.25rem;
  border-radius: 2px;
  transform: scale(0.6);
  transition: opacity 0.4s, transform 0.4s;
}
.content-heading:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}
.content-heading:hover::after {
  transform: scale(1); /* underline animation */
  opacity: 1;
}
.content-body {
  font-size: 1.6rem;
  color: rgb(79, 78, 78);
  line-height: 1.7;
}
.content-panel {
  transition: none;
}
.content-panel .content-heading,
.content-panel .content-body {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.content-panel.is-active .content-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.content-panel.is-active .content-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}
.media-item,
.content-panel {
  transform: none !important;
  transition: none !important;
}

@media (max-width: 1024px) {
  .viewer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  .tab-column {
    position: static;
    border-right: none;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: none;
  }
  .content-column {
    padding: 1.5rem;
  }
  .media-display-area {
    height: 200px;
    margin-bottom: 2rem;
  }
  .media-item {
    position: static;
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
  }
}

/*team*/
/* TEAM GRID CONTAINER */
.team-container {
  max-width: 114rem; /* Adjusted slightly smaller than 120rem for better integration */
  margin: 0 auto;
  display: grid;
  /* Creates 4 equal columns. Cards will wrap to 2 or 1 column automatically as screen shrinks. */
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 4rem; /* Spacing between grid items */
  padding: 0 3rem; /* Inherit padding from the section edges */
}
.c {
  color: var(--color-primary);
  font-weight: 600;
}

/* TEAM MEMBER CARD STYLES */
.team-member {
  background-color: #ffffff; /* Crisp white card background */
  padding: 3.5rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06); /* Subtle shadow for depth */
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  display: flex; /* Use flex to easily center content inside the card */
  flex-direction: column;
  align-items: center;
}

.team-member:hover {
  transform: translateY(-8px); /* Lift the card noticeably on hover */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); /* Enhance shadow */
}

/* TEAM IMAGE STYLES */
.team-img {
  width: 14rem;
  height: 14rem;
  object-fit: cover;
  border-radius: 50%; /* Perfect circle profile image */
  margin-bottom: 2rem;
  /* Use a color variable for the border */
  border: 5px solid var(--color-primary-opacity);
  transition: border-color 0.3s, transform 0.3s;
}

.team-member:hover .team-img {
  border-color: var(--color-primary); /* Primary color border on hover */
  transform: scale(1.05); /* Subtle growth on hover */
}

/* NAME AND ROLE STYLES - Using your body font stack */
.team-name {
  font-size: 2.2rem;
  font-weight: 500; /* Medium weight for names */
  color: #333;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.team-role {
  font-size: 1.5rem;
  color: var(--color-tertiary); /* Antique Gold for role */
  font-weight: 400;
}
@media (max-width: 600px) {
  /* On mobile, remove horizontal padding from the grid container */
  .team-container {
    padding: 0 1.5rem;
    gap: 3rem;
  }

  /* Slightly reduce section header text size on small screens */
  .section__header {
    font-size: 3.2rem;
  }
}
/* About Cards */
.about-section {
  padding: 10rem 6rem; /* reduce vertical padding slightly */
}
.about-card {
  background: #f7fffb; /* soft light mint bg */
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeScaleIn 0.9s forwards;
}

.about-card:nth-child(1) {
  animation-delay: 0.2s;
}
.about-card:nth-child(2) {
  animation-delay: 0.4s;
}
.about-card:nth-child(3) {
  animation-delay: 0.6s;
}
.about-card:nth-child(4) {
  animation-delay: 0.8s;
}

.about-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

/* Card Headings */
.about-card h3 {
  font-size: 2.1rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 1.2rem;
  position: relative;
}

.about-card h3::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  background: var(--color-primary-darker); /* Darker Emerald underline */
  margin-top: 0.6rem;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.about-card h3:hover::after {
  width: 65px; /* underline animation */
}

/* Card Text */
.about-card p,
.about-card li {
  font-size: 1.5rem;
  color: #444;
  line-height: 1.7;
}
strong {
  color: var(--color-primary-darker); /* dark emerald for strong text */
}
.about-card ul {
  list-style: none;
  padding: 0;
}

.about-card li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
  transition: color 0.3s ease, font-weight 0.3s ease, text-shadow 0.3s ease;
  color: #444;
  cursor: pointer;
}

.about-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem; /* adjust vertically */
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--color-primary-darker); /* Dark emerald bullet */
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.about-card li:hover {
  color: var(--color-primary);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 128, 96, 0.3); /* text changes to primary on hover */
}

.about-card li:hover::before {
  transform: scale(1.5) translateX(0.2rem); /* enlarge and move slightly */
  background-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 128, 96, 0.7); /* primary accent on hover */
}

/* Animation Keyframes */
@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 110rem;
  margin: 0 auto;
  padding-top: 2rem;
}
@media (max-width: 780px) {
  .about-grid {
    /* Change to a single column (Stacking) */
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 4rem; /* Add horizontal padding */
  }

  .section__title {
    padding: 0 4rem; /* Match grid padding */
    text-align: center;
  }

  /* Optional: limit width of stacked cards for better look */
  .about-card {
    max-width: 55rem;
    margin: 0 auto;
    padding: 2.5rem; /* Slight reduction in card padding */
  }

  .about-card h3 {
    font-size: 2rem; /* Reduce heading size slightly */
  }
}

/* ================================== */
/* 2. MOBILE PHONE (< 460px) */
/* Adjusts spacing and font sizes for narrow screens */
/* ================================== */

@media (max-width: 460px) {
  .about-grid {
    gap: 2rem; /* Tighter gap */
    padding: 0 1.5rem; /* Minimal horizontal padding */
  }

  .section__title {
    padding: 0 1.5rem; /* Match grid padding */
  }

  .about-card {
    margin: 0 auto; /* Center cards */
    padding: 1.5rem; /* Minimal card padding */
    max-width: 100%; /* Allow card to take full width */
  }

  /* Reduce font size for readability on very small screens */
  .about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .about-card p,
  .about-card li {
    font-size: 1.3rem; /* Smallest readable size */
    line-height: 1.6;
  }

  /* Adjust bullet point size/position for smaller text */
  .about-card li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
  }
  .about-card li::before {
    width: 0.6rem;
    height: 0.6rem;
    left: 0;
    top: 0.5rem;
  }
  .about-card ul {
    margin-left: 0;
  }
}

/*why choose us*/
.why-choose-us {
  padding: 12rem 3rem; /* reduce vertical padding slightly */
}

/* Grid layout for reasons */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Individual card */
.reason {
  background: #ffffff; /* crisp white card background */
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  cursor: pointer;
}

.reason:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  background-color: #fcf1de; /* soft gold highlight on hover */
}

/* Icon inside card */
.icon {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--color-tertiary); /* Antique Gold for icon */
  transition: transform 0.3s ease, color 0.3s ease;
}

.reason:hover .icon {
  transform: rotate(15deg) scale(1.2);
  color: var(--color-primary); /* Primary Emerald on hover */
}

/* Card heading */
.reason h3 {
  font-size: 1.7rem;
  color: #00503c; /* Darker emerald */
  margin-bottom: 10px;
}

/* Card paragraph */
.reason p {
  font-size: 1.3rem;
  color: #444;
  line-height: 1.5;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .why-choose-us {
    padding: 8rem 2rem;
  }
  .section__header {
    font-size: 2.6rem;
  }
  .reasons {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  .reason {
    padding: 25px 20px;
  }
  .reason h3 {
    font-size: 1.5rem;
  }
  .reason p {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  /* Adjust overall section padding for narrow screens */
  .section {
    padding: 6rem 1rem;
  }

  /* Ensure title fits well */
  .section__title {
    padding: 0 1rem;
    margin-bottom: 3rem;
  }
  .section__header {
    font-size: 2.2rem; /* Smaller header for narrow screen */
  }
  .section__description {
    font-size: 1.4rem; /* Assuming this is a subtitle, make it smaller */
  }

  /* Change grid to 1 column (stack vertically) */
  .reasons {
    grid-template-columns: 1fr;
    gap: 2rem; /* Tighter vertical gap */
    padding: 0; /* Remove horizontal padding on the container */
  }

  .reason {
    padding: 25px 15px; /* Adjust padding */
    max-width: 90%; /* Center the card and give some side space */
    margin: 0 auto;
  }

  /* Reset hover transform on small screen to prevent layout shifts */
  .reason:hover {
    transform: none;
    box-shadow: none;
  }
}

/*carrers*/
/* --- CSS VARIABLES FOR CLASSIC THEME --- */

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 120rem;
  margin: 0 auto;
}

.career-card {
  background-color: var(--color-card-bg);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 3rem;
  transition: all 0.3s ease-in-out;
  box-shadow: var(--shadow-classic);
  display: flex;
  flex-direction: column;
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.career-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.career-title {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
}

.career-type {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.career-type-fulltime {
  background-color: #e5e5f0;
  color: #4b4b8f;
}

.career-type-remote {
  background-color: #f0fff0;
  color: #388e3c;
  border: 1px solid #388e3c;
}

.career-type-internship {
  background-color: #fff8e1;
  color: #ffb300;
}

.career-skills {
  list-style: none;
  margin-bottom: 3rem;
  flex-grow: 1;
  padding-left: 0;
}

.career-skills li {
  font-size: 1.6rem;
  color: var(--color-text-dark);
  padding: 0.5rem 0;
  border-bottom: 1px dotted #f0f0f0;
}

.career-skills li:last-child {
  border-bottom: none;
}

.career-skills li::before {
  content: "✦"; 
  color: var(--color-secondary); 
  font-weight: bold;
  display: inline-block;
  width: 1.5em; 
  margin-left: -1.5em; 
}

/* -------------------------------------- */
/* 2. BUTTONS STYLING */
/* -------------------------------------- */

/* Base Button Style (Apply to all .btn for consistency) */
.btn {
  display: inline-block;
  background-color: var(--color-primary); 
  color: var(--color-text-light); 
  font-size: 1.6rem;
  font-weight: 500;
  padding: 1.2rem 2.5rem;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background-color: var(--color-secondary); 
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(160, 140, 107, 0.4);
}

.apply-btn {
  width: 100%;
  margin-top: auto;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1.2rem 2.5rem;
}

/* -------------------------------------- */
/* 3. CAREERS MODAL AND FORM STYLING (Override generic .modal) */
/* -------------------------------------- */

/* CAREER OVERLAY - Using its unique class/ID to avoid conflict */
.career-overlay, #careerModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for focus */
  backdrop-filter: blur(3px);
  z-index: 1000; /* High Z-index to ensure it sits above everything */
  transition: all 0.5s;
}

/* CAREER MODAL - Using its unique class/ID to prioritize styling */
.career-apply-modal, #careerApplyModal {
  /* Overrides the generic .modal styles */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 4rem 5rem;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Classic depth */
  z-index: 2000; /* Higher Z-index than the overlay */
  max-width: 90%; /* Slightly wider modal */
  width: 90%;
  transition: all 0.5s;
}

.career-apply-modal .modal__header {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--color-primary);
}

#careerApplyRole {
  color: var(--color-secondary);
  font-weight: 500;
}

/* Career Form Styles (Adjusted for single-column responsiveness) */
.career-form {
  display: grid;
  grid-template-columns: 1fr; /* Default single column for simplicity/mobile-first */
  gap: 2.5rem;
  /* Use max-width for internal form on desktop to center content if modal is wide */
  max-width: 45rem; 
  margin: 0 auto; 
}

.career-form-row {
  display: flex;
  flex-direction: column;
}

.career-form-row label {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.career-form-row input:not([type="file"]) {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
  background-color: #f7f7f7;
  color: var(--color-text-dark);
}

.career-form-row input:not([type="file"]):focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(160, 140, 107, 0.3);
}

/* File Upload Specific Styling for a clean, classic appearance */
input[type="file"] {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 4px;
  background-color: #f7f7f7;
  cursor: pointer;
  font-size: 1.6rem;
  box-sizing: border-box;
  width: 100%;
}

/* Style the file input button (browser-specific for better control) */
input[type="file"]::-webkit-file-upload-button {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #8c7857; /* Darker gold */
}

/* Readonly Input Style */
#careerApplicantRole {
  background-color: #ebebeb !important;
  color: var(--color-primary) !important;
  font-weight: 600;
}

/* Close Button - Use the specific ID for the career modal close button */
#careerCloseModalBtn {
  font-family: inherit;
  color: #aaa;
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 4rem;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
  transition: color 0.2s;
}

#careerCloseModalBtn:hover {
  color: var(--color-secondary);
}


/* -------------------------------------- */
/* 4. RESPONSIVENESS (Mobile Screens) */
/* -------------------------------------- */
/* --- 4. RESPONSIVENESS (Mobile Screens) - Refinements --- */
@media (max-width: 580px) {
  /* 1. Tighten the Modal Container on Mobile */
  .career-apply-modal, #careerApplyModal {
    /* Use a smaller percentage width and a smaller max-width */
    width: 95%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2rem; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* 2. Form Header */
  .career-apply-modal .modal__header {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    /* Optional: Center the header content if it wasn't already */
    text-align: center;
  }

  /* 3. Form Layout (Single Column, No Horizontal Margins) */
  .career-form {
      grid-template-columns: 1fr;
      gap: 1.8rem; /* Slightly reduce gap */
      margin: 0; /* Important: Removes any internal horizontal margin */
  }

  /* 4. Form Row Elements */
  .career-form-row input:not([type="file"]),
  .career-form-row input[type="file"] {
      /* Re-declare full width and box-sizing for safety */
      width: 100%; 
      box-sizing: border-box;
      padding: 1.2rem 1.5rem; /* Slightly larger padding for easier tapping */
  }

  .career-form .btn {
      /* Keep the button full width to align with inputs */
      width: 100%; 
      grid-column: 1 / -1;
      margin-top: 1rem;
  }
}
@media (min-width: 581px) {
  /* On larger screens, let's make the form a two-column layout 
     (Label on left, input on right) for a traditional look, 
     similar to your generic modal setup */
  .career-form {
      grid-template-columns: 1fr 2fr;
  }
  .career-form-row {
      /* Revert to grid alignment for a clean look */
      display: contents; 
  }
  .career-form-row label {
      /* Keep the label in the first column */
      grid-column: 1 / 2;
      align-self: center;
      margin-bottom: 0; 
  }
  .career-form-row input {
      /* Input takes the second column */
      grid-column: 2 / -1; 
  }
  .career-form .btn {
      /* Button spans both columns and is centered */
      grid-column: 1 / -1;
      justify-self: center;
      width: 50%;
  }
}

@media (max-width: 768px) {
  .careers-grid {
    gap: 2.5rem;
  }
}


/* Footer Styles */
.wave-footer {
  /* This dark color creates the main body of the footer */
  background-color: #00503c; /* Darkest Emerald */
  color: #f0f0f0; 
  font-family: 'Poppins', sans-serif; 
  padding-top: 0;
  line-height: 1.6; 
}

.wave-footer a {
  color: #90d4c1; /* Light green/teal for links */
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1em; /* Readable link font size */
}

.wave-footer a:hover {
  color: #ffffff;
}

/* --- Wave Effect Styling --- */
.footer-wave {
  line-height: 0; 
  overflow: hidden; 
  margin-top: -60px;
}

.footer-wave svg {
  display: block; 
  width: 100%;
  height: auto; 
}

.footer-wave svg path {
  /* This ensures the wave is the correct color and covers the area above the main footer body */
  fill: #00694e; /* Darker Emerald color of the wave itself */
}


/* --- Main Content Layout --- */
.footer-main {
  padding: 40px 5%; /* Increased padding for breathing room */
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px; 
  padding-bottom: 50px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col {
  flex-basis: 220px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.3em; /* Heading size increase retained */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  margin-bottom: 12px;
  font-size: 1.5em;
}

/* --- Newsletter & Social Styling --- */
.newsletter {
    flex-basis: 300px;
}

.newsletter label {
  display: block;
  margin-bottom: 12px; 
  font-weight: 500;
  font-size: 1.3em;
  text-transform: uppercase;
  color: #ffffff;
}

.newsletter-row {
  display: flex;
  margin-bottom: 25px;
}

.newsletter-row input[type="email"] {
  padding: 12px 18px; 
  border: none;
  border-radius: 5px 0 0 5px;
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 1.1em;
}

.newsletter-row button {
  padding: 12px 25px; 
  border: none;
  background-color: var(--color-secondary); /* Gold accent color */
  color: #333; /* Dark text on gold */
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em; 
  transition: background-color 0.3s ease;
}

.newsletter-row button:hover {
  background-color: var(--color-secondary-darker);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 1.6em; /* Large social icon size retained */
  background-color: #00694e; /* Darker primary color background */
  color: var(--color-secondary); /* Gold color for icon */
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background-color: #008060; /* Primary Emerald on hover */
  color: #ffffff;
}

/* --- Bottom Section Styling --- */
.footer-bottom {
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3em;
  color: #aaa;
}

.footer-legal a {
  margin-left: 20px;
  color: #aaa;
}

.footer-legal a:hover {
  color: #90d4c1;
}

/* --- Responsive Adjustments (no color changes) --- */
@media (max-width: 992px) { 
  .footer-col {
    flex-basis: 45%; 
  }
  .newsletter {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-col, .newsletter {
    flex-basis: auto;
    width: 100%; 
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-legal {
    margin-top: 15px;
  }
  
  .footer-legal a {
    margin: 0 8px;
  }
}

@media (max-width: 480px) {
  .newsletter-row {
    flex-direction: column;
  }
  
  .newsletter-row input[type="email"],
  .newsletter-row button {
    width: 100%;
    border-radius: 5px;
  }

  .newsletter-row input[type="email"] {
    margin-bottom: 12px; 
  }
}

/* MODAL WINDOW */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60rem;
  background-color: #ffffff; /* Crisp White modal background */
  padding: 5rem 6rem;
  box-shadow: 0 4rem 6rem rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.5s;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: all 0.5s;
}

.modal__header {
  font-size: 3.25rem;
  margin-bottom: 4.5rem;
  line-height: 1.5;
}

.modal__form {
  margin: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 2.5rem;
}

.modal__form label {
  font-size: 1.7rem;
  font-weight: 500;
}

.modal__form input {
  font-size: 1.7rem;
  padding: 1rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.modal__form button {
  grid-column: 1 / span 2;
  justify-self: center;
  margin-top: 1rem;
}

.btn--close-modal {
  font-family: inherit;
  color: inherit;
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  font-size: 4rem;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}
@media (max-width: 580px) {
  .modal {
    /* 1. Ensure modal doesn't stretch past screen edge */
    width: 90%;
    max-width: 90%;

    /* 2. Adjust padding */
    padding: 3rem 2rem;
  }

  .modal__header {
    /* 3. Reduce header font size */
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .btn--close-modal {
    /* 4. Adjust close button position/size for smaller area */
    top: 0.5rem;
    right: 1.5rem;
    font-size: 3.5rem;
  }

  .modal__form {
    /* 5. Collapse form to a single column */
    grid-template-columns: 1fr;
    margin: 0; /* Remove horizontal margin */
    gap: 1.5rem; /* Reduce gap between rows */
  }

  .modal__form label {
    font-size: 1.6rem;
    /* Labels now take up the whole column */
    grid-column: 1 / -1;
    margin-bottom: -1rem; /* Pull label closer to its input */
  }

  .modal__form input {
    font-size: 1.6rem;
    padding: 1rem;
    /* Inputs now take up the whole column */
    grid-column: 1 / -1;
  }

  .modal__form button {
    /* Button still spans the entire single column */
    grid-column: 1 / -1;
    margin-top: 1rem;
  }
}
/* Sign in form */
/* Base Styles for the Sign-In Popup */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5); 
    width: 90%;
    max-width: 65rem; 
    padding: 3.5rem 5rem; 
    background-color: #ffffff;
    box-shadow: 0 6rem 10rem rgba(0, 0, 0, 0.45), 0 0 50px var(--color-tertiary-opacity); /* Added tertiary glow */
    z-index: 2000;
    border-radius: 15px; 
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Background Dimmer/Blur */
.site-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px); 
    z-index: 900;
    transition: all 0.5s ease-out;
}

/* State Classes */
.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.popup.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button (X mark) Styling */
.btn--close-popup {
    font-family: inherit;
    color: var(--color-primary-darker); /* Darker Green X */
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.btn--close-popup:hover {
    color: var(--color-secondary); /* Teal on hover */
    transform: rotate(180deg) scale(1.1);
}

/* Form Layout and Styling */
.popup__header {
    font-size: 2.5rem; 
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--color-primary); /* Primary color header */
    font-weight: 700;
}

.popup__form {
    display: grid;
    grid-template-columns: max-content 1fr; /* First column is width of longest label, second fills the rest */
    gap: 1.25rem 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.popup__form label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e; 
    text-align: right;
    justify-self: end; 
}

.popup__form input[type="text"],
.popup__form input[type="email"],
.popup__form input[type="tel"],
.popup__form input[type="password"],
.popup__form input[type="number"] {
    padding: 1rem 1.25rem; 
    border: 1px solid #5e5d5d; 
    border-radius: 8px; 
    font-size: 1rem;
    color: #333;
    width: 100%; 
    max-width: 30rem;
    justify-self: start;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.popup__form input:focus {
    border-color: var(--color-secondary); /* Teal border on focus */
    box-shadow: 0 0 0 3px var(--color-secondary-opacity); /* Teal glow */
    outline: none;
}

/* Styling for the Gender radio buttons container (now spanning the second column) */
.gender-options {
    /* 👇 KEY CHANGE: Make this element span the second column */
    grid-column: 2 / 3; 
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 0.5rem; 
}

/* Custom radio button appearance */
.gender-options input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #aaa;
    border-radius: 50%;
    background-color: #eee;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    position: relative;
}

.gender-options input[type="radio"]::before {
    content: '';
    display: block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background-color: var(--color-primary); /* Primary color dot */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Springy dot animation */
}

.gender-options input[type="radio"]:checked {
    border-color: var(--color-primary); 
    background-color: var(--color-primary-opacity);
}

.gender-options input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

.gender-options label {
    font-weight: 500;
    font-size: 1rem;
    color: #34495e;
    cursor: pointer;
    text-align: left;
    margin-left: 0.25rem;
}
.popup__footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #777;
}

.popup__footer-text a {
    color: var(--color-primary); /* Use a prominent color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.popup__footer-text a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}
/* Submit Button */
.btn--submit-form {
    /* Spans both columns */
    grid-column: 1 / -1; 
    justify-self: center;
    padding: 1.1rem 3.5rem; 
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    background-color: var(--color-secondary); /* Teal button */
    color: white;
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
}

.btn--submit-form:hover {
    background-color: var(--color-secondary-darker);
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px var(--color-secondary-opacity); 
}

.btn--submit-form:active {
    transform: translateY(0); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* ========================================================= */
/* 1. TABLET SCREENS (Up to 1024px, typical landscape tablet) */
/* ========================================================= */
@media (max-width: 1024px) {
    .popup {
        max-width: 60rem;
        padding: 3rem 4rem; /* Reduce padding slightly */
    }
    
    .popup__form {
        /* Maintain grid but reduce gap */
        gap: 1rem 1.5rem;
    }
}


/* ========================================================= */
/* 2. SMALL TABLETS & LARGE MOBILE (Up to 768px - Portrait Tablet/Large Phone) */
/* ========================================================= */
@media (max-width: 768px) {
    .popup {
        padding: 2.5rem 3rem;
        max-width: 90%; /* Take up more width */
    }
    
    .popup__header {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .popup__form {
        grid-template-columns: 1fr; 
        gap: 1.25rem;
    }

    .popup__form label {
        text-align: left;
        justify-self: start; 
        font-size: 1rem;
    }
    .popup__form input[type="text"],
    .popup__form input[type="email"],
    .popup__form input[type="tel"],
    .popup__form input[type="password"],
    .popup__form input[type="number"] {
        padding: 0.9rem 1rem;
        justify-self: start;
    }
    .gender-options {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-left: 0;
    }
}
@media (max-width: 480px) {
    .popup {
        padding: 2rem; 
        max-width: 95%; 
    }
    .popup__form input[type="text"],
    .popup__form input[type="email"],
    .popup__form input[type="tel"],
    .popup__form input[type="number"],
    .popup__form input[type="password"] {
        padding: 0.9rem 1rem;
    }
    .popup__header {
        font-size: 1.8rem;
    }

    .btn--close-popup {
        font-size: 2.2rem;
        top: 0.8rem;
        right: 1rem;
    }

    .popup__form {
        gap: 0.75rem; 
    }

    .popup__form label {
        font-size: 0.95rem;
    }

    .btn--submit-form {
        padding: 0.9rem 2.5rem;
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    .gender-options {
        gap: 0.8rem;
    }
    
    .gender-options input[type="radio"] {
        width: 1.1rem;
        height: 1.1rem;
    }
}
/* COOKIE MESSAGE */
.cookie-message {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  background-color: #00694e; /* Dark Emerald background for cookie banner */
  color: #fff; /* White text */
  font-size: 1.5rem;
  font-weight: 400;
}