:root {
  --primary-color:   #006D77;
  --primary-dark:    #004E57;
  --secondary-color: #1C3557;
  --accent:          #C9AA71;
  --light-bg:        #FAF9F7;
  --dark-bg:         #2C2C3A;
  --text-color:      #2C2C3A;
  --text-muted:      #6B7280;
  --footer-bg:       #1C3557;
  --hover-color:     #FAF9F7;
  --white-bg:        #fff;
  --border-col:      #DDD8CC;
  --form-box-col:    #9CA3AF;
  --form-box-shadow: rgba(0, 109, 119, 0.3);
  --header-bg:       #006D77;
  --font-heading:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--text-color);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--dark-bg);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 {
  font-size: 1.8rem;
  line-height: 2.0rem;
}
h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark-bg);
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

/* Navigation */
.navbar {
  background-color: var(--header-bg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-toggler {
  border: 2px solid var(--white-bg) !important;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  margin: 0 auto;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--header-bg);
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .navbar-nav .nav-item {
    margin: 0.5rem 0;
    text-align: center;
  }

  .sidebar-link {
    padding: 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .sidebar-link img {
    margin: 0 0.5rem 0 0;
  }

  .sidebar-link div {
    font-size: 1.6rem;
  }
}

.nav-link {
  padding: 0.75rem;
  color: var(--dark-bg);
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Hero Section - Merged */
.hero-section,
.job-hero-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 109, 119, 0.9), rgba(0, 109, 119, 0.7));
    color: var(--white-bg);
    text-align: center;
    padding: 4rem 0;
}

.hero-section h1,
.job-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white-bg);
}

.hero-section p {
    font-size: 1.1rem;
}

/* Values Section */
.values-section {
  background-color: var(--light-bg);
}

.values-section p {
  font-size: 1rem;
}


/* Team Section */
.team-section img {
  border: 3px solid var(--primary-color);
}

/* FAQ */
.accordion-button {
  background-color: var(--light-bg);
  color: var(--dark-bg);
  font-size: 1.2rem;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
  font-size: large;
}

.values-section .card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


a {
  text-decoration: none;
  color: var(--dark-bg);
}

a:hover {
  text-decoration: none;
  color: var(--dark-bg);
}

.firstSection {
  display: grid;
  background-color: var(--white-bg);
  padding: 3rem 1rem;
  align-content: last baseline;
  height: 200px;
  text-align: center;
}

.firstSection p {
  font-size: 1rem;
}

.cpContainer {
  display: grid;
  align-content: last baseline;
  padding-bottom: 30px;
  text-align: center;
  padding: 1rem;
}

/* Header Section */
.header-section {
  background-color: var(--secondary-color);
  color: var(--white-bg);
}

.header-section .logo {
  width: 130px;
  height: auto;
}

.header-section h1 {
  font-size: 2.5rem;
  color: var (--header-bg);
}

.header-section p {
  font-size: 1.75rem;
  color: var (--header-bg);
}

.header-section .btn {
  font-size: 1.5rem;
  background-color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  color: var(--white-bg);
  transition: background-color 0.3s ease;
}

.header-section .btn:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Services Section */
#services-section h2,
.commitment-section h2,
.displayHeading h2,
.values-section h2,
.vision-section h2,
.contact-section h2,
.faq-section h2,
.firstSection h2,
.cpContainer h2,
.sidebarSubHeader h2,
.vacancies-section h2,
.no-vacancies-section h2,
.history-section h2,
.why-choose-us-section h2,
.partnerships-section h2,
#care-journey h2 {
  color: var(--primary-color)
}

.service-card {
  background-color: var(--white-bg);
  border: 1px solid var(--dark-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 15px;
  text-align: center;
}

.service-card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card-content p {
  font-size: 0.9rem;
  color: var(--text-color);
}

.service-card-content .btn {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
  .header-section h1 {
    font-size: 2rem;
  }

  .service-card-content h3 {
    font-size: 1rem;
  }

  .service-card-content p {
    font-size: 0.8rem;
  }
}

/* Body Styles */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white-bg);
  border-bottom: 1px solid var(--border-col);
}

.header-container {
  text-align: center;
  padding: 3rem;
  background-color: var(--hover-color);
}

.header-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.header-subtitle {
  font-size: 1.5rem;
  color: var(--dark-bg);
}

.about-header {
  text-align: center;
  padding: 2rem;
  background-color: var(--white-bg);
  align-content: last baseline;
  height: 200px;
  padding-bottom: 30px;
}

/* Header Styles */


/* Navigation Styles */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-brand button{
  background-color: var(--secondary-color);
  border: 1px solid #000000;
}

/* Main Content Styles */
main {
  padding-top: 10px;
  font-size: 0.875rem;
  flex: 1;
}


/* Footer Styles */
footer {
  margin-top: 3rem;  /* Added margin top */
  background-color: var(--footer-bg);
  color: var(--hover-color);
  padding: 2rem 0;
}

footer a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.6;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--white-bg);
  text-decoration: none;
}

.footer-links {
  border-right-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-about {
  border-right-color: rgba(255, 255, 255, 0.2) !important;
  border-left-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-contact {
  border-right-color: rgba(255, 255, 255, 0.2) !important;
}

.sitename {
  color: var(--white-bg);
  font-weight: 500;
}

@media (max-width: 992px) {

  .footer-about,
  .footer-links,
  .footer-contact .footer .sitename {
    margin: 20px auto;
    text-align: justify;
  }
}



@media (max-width: 768px) {

  .footer-about,
  .footer-links,
  .footer-contact .footer .sitename {
    margin: 20px auto;
    width: 100%;
    text-align: justify;
  }
}

@media (max-width: 768px) {

  .footer-contact p {
    margin: 10px auto;
    text-align: justify;
    width: 100%;
    align-content: space-around;
  }
}

/* Card Styles - Merged */
.content-card,
.application-card,
.service-card {
    background-color: var(--white-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.content-card h2,
.application-card h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.card:hover {
  border-radius: 10px;
  border-style: solid;
  background-color: var(--footer-bg);
  color: var(--hover-color);
  border-width: 1px;
  transition: all 0.8s ease-in-out;
}



/* Modal Styles */

html {
  font-size: 100%;
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

p,
li {
  font-size: 1rem;
  line-height: 1.75;
}

.cqc-highlights ul {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-color);
  list-style: none;
  padding-left: 0;
}

.cqc-highlights span,
i {
  color: var(--primary-color);
  font-weight: bold;
}

.Commitment_section {
  background-color: var(--white-bg);
  align-content: space-evenly;

}

.Commitment_section_detail {
  background-color: var(--white-bg);
  text-align: center;
  align-content: center;
  margin: 0 auto;

}

.calls-to-action {
  margin: 8rem 0 16rem;
}

.calls-to-action h2 {
  margin-bottom: 2rem;
}

.calls-to-action .col {
  min-height: 32rem;
  margin-top: 2rem;
  text-align: center;
}

.calls-to-action .col p:nth-child(2) {
  flex-grow: 1;
}

.calls-to-action .col.most-popular {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: .8rem;
  margin-top: 4em;
  transform: scale(1.2);
}

.accordion-body {
  font-size: 1rem;
}

.button {
  background: var(--primary-color);
  border-radius: .8rem;
  color: var(--light-bg);
  display: block;
  padding: 2rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  width: 20rem;
}

.services-button {
  background: var(--primary-color);
  border-radius: .8rem;
  color: var(--light-bg);
  display: block;
  padding: 2rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  width: 20rem;
  align-items: start;
}


/* General Navigation Styling */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Distribute items evenly across the available space */
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-item {
  flex-grow: 1;
  /* Allow items to stretch equally */
  text-align: center;
  /* Center content within each item */
}

.sidebar-link {
  display: inline-block;
  text-decoration: none;
  color: var(--white-bg);
  padding: 10px;
  transition: color 0.3s ease-in-out;
}


.sidebar-link:hover {
  color: var(--secondary-color);
}


.sidebar-link div {
  font-size: 1rem;
}

.sidebar-link img {
  display: block;
  margin: 0 auto;
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.sidebar {
  height: 60px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.sidebar-link img {
  height: 24px;
  margin-bottom: 4px;
}


#services-section {
  background-color: var(--hover-color);
  padding: 50px 0;
}

#services-section {
  background-color: var(--hover-color);
  padding: 50px 0;
}

.service-card {
  background-color: var(--white-bg);
  padding: 20px;
  border: 1px solid var(--border-col);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.service-card-image {
  width: 100%;
  height: 20vh;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 40dvh;
  object-fit: cover;
  transform: scale(1.1);
}

.service-card-content {
  padding: 20px;
}

.service-card-content h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.service-card-content p {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.service-card-content button {
  background-color: var(--primary-color);
  color: var(--light-bg);
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.service-card-content button:hover {
  background-color: var(--secondary-color);
}

.service-card:hover {
  background-color: var(--hover-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {

  /* Styles for tablets and above */
  #services-section {
    padding: 40px 0;
  }

  .service-card-content p {
    font-size: 16px;
  }

  .service-card-content .button {
    padding: 10px 20px;
    font-size: 16px;
  }
}

@media (min-width: 992px) {

  /* Styles for desktops and above */
  #services-section {
    padding: 50px 0;
  }

  .service-card-content h3 {
    font-size: 24px;
  }

  .service-card-content p {
    font-size: 16px;
  }

  .service-card-content .button {
    font-size: 16px;
  }
}


.hero-section {
  background-color: var(--hover-color);
  text-align: center;
  padding: 2rem 0;
}

.history-section {
  background-color: var(--white-bg);
  text-align: center;
  padding: 2rem 0;
}

.values-section {
  text-align: center;
  padding: 3rem 0;
  max-width: 100%;
}

.commitment-section,
.commitment-section img,
.culture-section,
.vision-section {
  padding: 3rem 0;
  max-width: 100%;
  background-color: var(--hover-color);
}

.commitment-section img {
  border-radius: 0.5rem;
}

.contact-section {
  padding: 3rem 0;
  max-width: 100%;
  background-color: var(--white-bg);
}

.why-choose-section {
  padding: 3rem 0;
  max-width: 100%;
  background-color: var(--white-bg);
}

.values-grid,
.team-grid {
  display: flex;
  gap: 2rem;
  justify-content: space-evenly;
  flex-direction: row;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
}

.values-grid .value-item,
.team-grid .team-member {
  text-align: center;
  padding: 1rem;
  background-color: var(--hover-color);
  border: 1px solid var(--border-col);
  border-radius: 8px;
  max-width: 250px;
}

/* .contact-section */

/* General Styles */
.get-in-touch-section .header-container {
  background-color: var(--light-bg);
  text-align: center;
  padding: 2rem 0;
}

.about-us .map-responsive iframe {
  border: none;
}

.contact-details .gradient-column {
  padding: 1rem;
  text-align: center;
  font-weight: bold;
}

/* Form Styling */
.contact-form {
  background-color: var(--white-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.contact-form .form-group label {
  font-size: 1.2rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  /* width: 100%; */
  padding: 0.75rem;
  border: 1px solid var(--border-col);
  border-radius: 5px;
  background-color: var(--hover-color);
}

.contact-form textarea {
  height: 150px;
}

.contact-form button {
  margin-top: 1.5rem;
}

/* Social Media */
.social-media-section .gradient-column {
  font-size: 1.2rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .contact-details .gradient-column {
    flex: 1 1 100%;
  }

  .contact-form {
    padding: 1.5rem;
  }
}


/* .contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: var(--hover-color);
  padding: 2rem;
  border-radius: 10px;
}
.contact-section input, .contact-section textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-col);
  border-radius: 5px;
  background-color: var(--white-bg);
}

.contact-section button {
  padding: 0.8rem 2rem;
  border: none;
  background-color: var(--primary-color);
  color: var(--light-bg);
  border-radius: 5px;
  cursor: pointer;
}

.contact-section form-check {
  width: fit-content;
} */

.aboutForm {
  background-color: rgb(223, 217, 217);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: solid 1px var(--border-col);
}


/* Add spacing between columns */
.gradient-row {
  display: flex;
  gap: 15px;
  /* Adjust gap size as needed */
  margin: 0 -7.5px;
  /* Compensates for the gap when columns wrap */
  flex-wrap: wrap;
  /* Ensures columns wrap properly on smaller screens */
  margin-top: 60px;
}

.gradient-column {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  /* Adjust height as needed */
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-start), var(--bg-end));
  border: 1px solid var(--border-col);
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 calc(25% - 15px);
  /* Ensure columns maintain responsiveness */
}

.gradient-column p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color);
}

.gradient-column:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .gradient-column {
    flex: 1 1 calc(50% - 15px);
    /* Adjust columns for smaller screens */
  }
}

@media (max-width: 576px) {
  .gradient-column {
    flex: 1 1 100%;
    /* Full-width columns on very small screens */
  }
}

/*Form css*/

.form-control {
  font-size: 1.5rem;
  /* Larger font size for better visibility */
  padding: 10px;
  color: var(--text-color);
  background-color: var(--light-bg);
  border: 1px solid var(--border-col);
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control::placeholder {
  color: var(--form-box-col);
  /* Improve contrast of placeholders */
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px var(--form-box-shadow);
  outline: none;
}

.form-group label {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
  display: block;
}

.btn-primary {
  font-size: 1.5rem;
  background-color: var(--primary-color);
  border: none;
  padding: 10px;
  border-radius: 5px;
  color: var(--light-bg);
  transition: background-color 0.3s ease;
}

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

.oval-button {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 50px / 25px;
  /* oval shape */
  background-color: var(--primary-color);
  /* green background */
  color: var(--light-bg);
  /* white text */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.oval-button:hover {
  background-color: var(--footer-bg);
  /* darker green on hover */
  cursor: text;
  color: var(--light-bg);
}


/* Media Queries */
@media (max-width: 768px) {
  .gradient-row {
    flex-direction: column;
    gap: 10px;
  }

  .gradient-column {
    flex: 1 1 100%;
  }
}

.displayHeading {
  text-align: center;
  align-items: center;
  font-display: 5;
  align-content: center;
  background-color: var(--white-bg);
  border-radius: 5rem;
  padding: 1rem;

}


.carePkgs {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 0.2fr 2fr;
  grid-template-areas:
    "sidebarSubHeader"
    "package-wrapper ";
  gap: 0.5rem;
  border-radius: 5rem;
  padding: 1rem;
  padding-bottom: 5vh;
  background-color: var(--white-bg);
  align-content: space-evenly;
  align-items: stretch;
  justify-items: stretch;
  margin-bottom: 5rem;
  height: auto;
}

.homePackages {
  display: inline-block;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px 10px;
  grid-auto-flow: row;
  justify-content: space-evenly;
  align-content: space-evenly;
  justify-items: stretch;
  align-items: center;
}

.sidebarS {
  /* background-color: rgb(204, 81, 81); */
  grid-area: sidebarS;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.sidebarS img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-top-left-radius: 50px;
  border-bottom-right-radius: 50px;
  padding: 20px;
}

.sidebarSubHeader {
  /* background-color: rgb(209, 137, 137); */
  grid-area: sidebarSubHeader;
  text-align: center;
  padding: 10px;
}



/* # job cards # */

/* No Vacancies Section */
.section-header {
  margin: 3rem 0;
}

.no-vacancies-section {
  position: relative;
  text-align: center;
  padding: 3rem 0;
}

.no-vacancies-image img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.no-vacancies-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
}

.no-vacancies-card .card-header {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.no-vacancies-card .card-body {
  font-size: 1rem;
  line-height: 1.5;
}

/* Vacancies Section */
.vacancies-section .section-image {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  margin-bottom: 20px;
}

.vacancies-section {
  font-size: 1.1rem;
  margin: 20px;
  text-align: center;
}

/* .jobs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
} */
.job-details,
.job-details2 h4 {
  font-weight: normal;
}

.job-details,
.job-details2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  border-radius: 2rem;
  padding: 1rem;
  background-color: var(--white-bg);
  justify-items: center;
  height: auto;
  text-align: justify;
  margin-top: 2rem;

}

.job-details2 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-items: baseline;
  margin-bottom: 0;
  margin-top: 0;
}

.job-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.job-card:hover {
  transform: translateY(-5px);
}

.job-card-header {
  background: var(--primary-color);
  color: var(--dark-bg);
  padding: 10px 15px;
  font-size: 1.25rem;
}

.job-card-body {
  padding: 15px;
}

.job-card-body p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-color);
}

.job-card-body .btn {
  display: inline-block;
  padding: 10px 15px;
  background: var(--primary-color);
  color: var(--dark-bg);
  text-decoration: none;
  border-radius: 4px;
}

.job-card-body .btn:hover {
  background: var(--footer-bg);
  color: var(--white-bg);
}

.btn:focus,
a:focus,
.btn-primary:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--header-bg);
  color: var(--white-bg);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  /* Initially hidden */
  opacity: 0;
  /* Transition effect */
  transition: opacity 0.3s ease-in-out;
}

#back-to-top.show {
  display: block;
  opacity: 1;
}

/* Tabs Navigation */

.desc2 {
  background-color: var(--footer-bg);
  padding: 20px;
  height: min-content;
  color: var(--light-bg);
  border-radius: 10px;
}

.package-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Mobile-First Layout */
.package-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.package-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 5px;
}

.image-section {
  text-align: center;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}

.package-image {
  width: 100%;
  height: 65vh;
  border-radius: 5px;
}

.text-section {
  text-align: center;
}

.text-section h2,
.features-section h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  text-align: center;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-content: space-around;
}

.feature {
  background-color: var(--feature-bg);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.tabs li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

.tabs li.active {
  background-color: var(--primary-color);
  color: var(--hover-color);
}

.tabs li:hover {
  background-color: var(--primary-color);
  color: var(--hover-color);
}

.hidden {
  display: none;
}

.package-description {
  margin-top: 20px;
}

/* Media Queries for Larger Screens */
@media (min-width: 768px) {
  .package-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .package-content {
    flex: 1 1 calc(50% - 1rem);
  }

  .text-section {
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .package-content {
    flex: 1 1 calc(33.33% - 1rem);
  }
}

.banner {
  background-color: var(--hover-color);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.banner h2 {
  margin-top: 0;
  color: var(--text-color);
}

.banner p {
  margin-bottom: 0;
  color: var(--form-box-col);
}

/* Partners Gallery Section */
#partners-gallery {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
#partners-gallery h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.masonry {
  column-count: 4; /* Number of masonry columns */
  column-gap: 1rem; /* Horizontal space between columns */
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
}
/* You can adjust column-count at media queries to be responsive */
@media (max-width: 992px) {
  .masonry {
    column-count: 3;
  }
}
@media (max-width: 768px) {
  .masonry {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .masonry {
    column-count: 1;
  }
}

/*
 * Each masonry item is displayed inline-block so they can
 * flow into columns. By setting their width to 100% and
 * margin-bottom for spacing, we get the stacked effect.
 */
.masonry-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  text-align: center;
  /* optional border or box shadow */
}

/* Image styling within each masonry item */
.masonry-item img {
  display: block;
  /* Default thumbnail size */
  max-width: 150px;
  width: 100%; /* fallback if image is narrower than 150px */
  height: auto;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: box-shadow 0.3s;
}

/* Some optional hover effect on images */
.masonry-item img:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

/* ========== STARTING YOUR CARE JOURNEY SECTION ========== */

#care-journey {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

/* #care-journey h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #003366; /
} */

#care-journey .intro-text {
  margin: 0 auto 2rem;
  max-width: 700px;
  color: var(--dark-bg);
  line-height: 1.6;
}

/* Step container for the 4 steps */
.care-journey-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center; /* Center the items if there’s extra space */
}

/* Each step is presented as a card/column */
.step {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  flex: 1 1 calc(25% - 1.5rem); /* Four columns on larger screens */
  min-width: 250px;
  max-width: 300px;
  padding: 2rem 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: left; /* Keep the text left-aligned inside card */
  transition: box-shadow 0.2s;
}
.step:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Step number styling */
.step-number {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--dark-bg);
}

.step p {
  line-height: 1.5;
  color: #444;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .step {
    flex: 1 1 calc(33% - 1.5rem); /* 3 columns for medium screens */
  }
}

@media (max-width: 768px) {
  .step {
    flex: 1 1 calc(50% - 1.5rem); /* 2 columns for smaller screens */
  }
}

@media (max-width: 480px) {
  .step {
    flex: 1 1 100%; /* 1 column for phones */
  }
}

/* Form Submission & Email Template Styles */
.centered-card-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
}

.content-card {
  background-color: var(--white-bg);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.content-card h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.content-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-card blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.content-card hr {
  margin: 2rem 0;
  border-top: 1px solid var(--border-col);
}

.content-card a {
  text-decoration: none;
}

.content-card a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .centered-card-section {
    padding: 1rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
}

.apply-section {
    background-color: var(--light-bg);
    padding: 2rem 0;
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 3rem;  /* Added padding bottom */
    border-top: 1px solid var(--border-col);
}

.job-summary-card {
    max-width: 800px;
    margin: 0 auto;
}

.job-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.application-card {
    background-color: var(--white-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 4rem;  /* Increased margin bottom */
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-col);
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-floating {
    position: relative;
}

.form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-control:focus {
    border-color: var (--primary-color);
    box-shadow: 0 0 0 0.2rem var(--form-box-shadow);
}

.custom-file-upload {
    position: relative;
    padding: 1rem;
    background-color: var(--hover-color);
    border: 2px dashed var(--border-col);
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    border-color: var(--primary-color);
    background-color: var(--white-bg);
}

.submit-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .apply-section {
        padding: 1rem;
    }
    
    .application-card {
        padding: 1.5rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

.application-summary {
    margin: 20px 0;
}

.application-summary h3 {
    color: #006D77;
    margin-top: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.application-summary ul {
    list-style: none;
    padding-left: 0;
}

.application-summary li {
    margin: 10px 0;
    line-height: 1.5;
}

.document-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.cover-letter-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.action-section {
    margin-top: 30px;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #006D77;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    margin: 10px 0;
}

.next-steps {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.next-steps ol {
    padding-left: 20px;
}

.contact-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Job Detail Page Styles */
.job-hero-section {
    background: linear-gradient(rgba(0, 109, 119, 0.9), rgba(0, 109, 119, 0.7));
    color: var(--white-bg);
    padding: 4rem 0;
    text-align: center;
}

.job-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.job-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white-bg);
}

.job-reference {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.job-overview-section {
    background-color: var(--white-bg);
    padding: 3rem 0;
    margin-top: -2rem;
}

.job-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.overview-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.job-details-section {
    padding: 3rem 0 6rem;  /* Increased bottom padding */
    background-color: var(--light-bg);
    margin-bottom: 3rem;   /* Added margin bottom */
}

.content-card {
    background: var(--white-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detail-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-col);
}

.detail-block:last-child {
    border-bottom: none;
}

.detail-block h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.apply-section {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 3rem;  /* Added padding bottom */
    border-top: 1px solid var(--border-col);
}

.apply-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 4rem;  /* Increased margin bottom */
}

.apply-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.apply-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;  /* Added margin bottom */
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.closed-position-notice {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .job-hero-content h1 {
        font-size: 2rem;
    }
    
    .overview-card {
        padding: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
}

/* Form Styles - Merged */
.form-control {
    font-size: 1.5rem;
    padding: 1rem 0.75rem;
    color: var(--text-color);
    background-color: var(--light-bg);
    border: 1px solid var(--border-col);
    border-radius: 5px;
    height: calc(3.5rem + 2px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--form-box-shadow);
    outline: none;
}

.form-control::placeholder {
    color: var(--form-box-col);
}

/* Button Styles - Merged */
.btn-primary,
.submit-btn,
.apply-btn {
    background-color: var(--primary-color);
    color: var(--light-bg);
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.submit-btn:hover,
.apply-btn:hover {
    background-color: var(--footer-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Job Details Styles - Merged */
.job-details-section,
.job-overview-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.overview-card,
.detail-block {
    margin-bottom: 2.5rem;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.overview-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Media Queries - Merged */
@media (max-width: 768px) {
    .hero-section h1,
    .job-hero-content h1 {
        font-size: 2rem;
    }

    .content-card,
    .application-card,
    .overview-card {
        padding: 1.5rem;
    }

    .job-meta,
    .gradient-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-control,
    .btn-primary {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .footer-about,
    .footer-links,
    .footer-contact,
    .footer .sitename {
        margin: 20px auto;
        width: 100%;
        text-align: justify;
    }
}

/* Add to style.css */

.job-detail-content {
    padding: 3rem 0;
}

.job-overview-section {
    margin-top: -3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.detail-block {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
}

.detail-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #eaeaea;
}

.form-section:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 12px 0 0 12px;
}

.form-section h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.custom-file-upload {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 5px;
    border: 2px dashed var(--border-col);
}

.form-text {
    color: var(--form-box-col);
    margin-top: 0.5rem;
}

.alert {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
}

.was-validated .form-control:valid {
    border-color: var(--primary-color);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Form Layout */
.application-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.job-summary-card {
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.job-summary-card .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 12px;
}

/* Form Controls */
.form-control {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 109, 119, 0.25);
    border-color: var(--primary-color);
}

/* File Upload Styling */
.custom-file-upload {
    background: #fff;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

/* Submit Button */
.submit-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form Labels */
label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Required Field Indicator */
label:after {
    content: " *";
    color: #dc3545;
}

/* Form Groups */
.row.g-3 {
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }
    
    .application-card {
        padding: 1rem;
    }
    
    .row.g-3 > div {
        margin-bottom: 1rem;
    }
}

/* Progress Steps */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.progress-step:before {
    content: '';
    height: 2px;
    width: 100%;
    background: #dee2e6;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step:first-child:before {
    display: none;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 2;
}

/* Alert Styling */
.alert-danger {
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

/* Form Section Styling */
.form-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-number {
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.section-content {
    padding: 1rem 0;
}

/* Progress Steps */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step:last-child::after {
    display: none;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.progress-step small {
    color: #6c757d;
    font-weight: 500;
}

/* Form Controls */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 109, 119, 0.25);
}

/* Required Fields */
.required-indicator {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

/* Error Styling */
.alert-danger {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 1rem 1.5rem;
}

.error-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.error-list li {
    color: #dc3545;
    margin-top: 0.5rem;
}

/* Submit Button */
.submit-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: var(--primary-color);
    border: none;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
    }
    
    .progress-step small {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-number {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

/* Star Rating Input Styles */
.star-rating-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-option {
    display: flex;
    align-items: center;
}

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

.rating-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.rating-label:hover {
    background-color: #f8f9fa;
}

.rating-option input[type="radio"]:checked + .rating-label {
    background-color: #e8f5e9;
}

.rating-label .stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin-right: 1rem;
}

.rating-label .stars .empty {
    color: #ddd;
}

.rating-text {
    font-size: 1.1rem;
    color: #333;
}

.review-form-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    color: #006D77;
    margin-bottom: 1.5rem;
}

.review-summary {
    margin: 2rem 0;
}

.summary-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.summary-box h4 {
    color: #006D77;
    margin-bottom: 1rem;
    text-align: center;
}

.summary-box p {
    margin-bottom: 0.5rem;
}

/* ========== REVIEWS SECTION STYLES ========== */

/* Reviews Statistics Section */
.reviews-stats-section {
    background-color: var(--light-bg);
}

.stats-card {
    background-color: var(--white-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.overall-rating {
    padding: 2rem;
}

.rating-number {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stars-large {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.stars-large .star {
    margin: 0 2px;
}

.stars-large .star.filled {
    color: #ffc107;
}

/* Rating Breakdown */
.rating-breakdown {
    padding: 1rem 0;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.star-label {
    width: 50px;
    text-align: right;
    font-weight: 500;
}

.rating-bar {
    flex: 1;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.count-label {
    width: 40px;
    text-align: left;
    color: #6c757d;
}

/* Reviews Filter Section */
.reviews-filter-section {
    background-color: var(--white-bg);
    border-bottom: 1px solid #e9ecef;
}

.filter-form .form-select {
    max-width: 200px;
}

/* Review Cards */
.review-card {
    background-color: var(--white-bg);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-name {
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-meta .stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.review-meta .star {
    margin-right: 2px;
}

.review-meta .star.filled {
    color: #ffc107;
}

.review-meta .date {
    color: #6c757d;
    font-size: 0.9rem;
}

.service-badge {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.recommend-badge {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-title {
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Review Form Styles */
.submit-review-section {
    background-color: var(--light-bg);
    min-height: 80vh;
}

.review-form-card {
    background-color: var(--white-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.review-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.review-form .form-section:last-of-type {
    border-bottom: none;
}

.review-form h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-option {
    position: relative;
}

.rating-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.rating-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white-bg);
}

.rating-label:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.rating-option input[type="radio"]:checked + .rating-label {
    background-color: #e8f5e9;
    border-color: var(--primary-color);
}

.rating-label .stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin-right: 1rem;
    min-width: 120px;
}

.rating-label .stars .empty {
    color: #ddd;
}

.rating-text {
    font-size: 1rem;
    color: var(--text-color);
}

/* Review Link Generator */
.link-generator-card {
    background-color: var(--white-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.generated-link-box {
    background-color: var(--light-bg);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.link-display {
    background-color: var(--white-bg);
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.copy-button {
    background-color: var(--primary-color);
    color: var(--white-bg);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: var(--footer-bg);
}

.copy-button.copied {
    background-color: #28a745;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rating-bar-row {
        font-size: 0.9rem;
    }
    
    .star-label {
        width: 40px;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .rating-label {
        padding: 0.5rem;
    }
    
    .rating-label .stars {
        min-width: 100px;
        font-size: 1.2rem;
    }
    
    .filter-form .form-select {
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.page-link:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Admin Review Badge for Menu */
.review-menu-link {
    position: relative;
}

.review-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: var(--white-bg);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.reviews-preview-section {
    background-color: var(--light-bg);
}

.review-preview-card {
    background-color: var(--white-bg);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-excerpt {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

#reviewsCarousel .carousel-control-prev,
#reviewsCarousel .carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

#reviewsCarousel .carousel-control-prev-icon,
#reviewsCarousel .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM BRAND SECTION CLASSES — WHC rebrand 2026
   ═══════════════════════════════════════════════════════════ */

/* Eyebrow label above headings */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.65rem;
}

/* Full-viewport hero with overlay */
.hero-overlay {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,77,87,0.82), rgba(28,53,87,0.75));
  z-index: 0;
}
.hero-overlay > * { position: relative; z-index: 1; }

/* Trust strip — 4 pillars on teal background */
.trust-strip {
  background-color: var(--primary-color);
  padding: 1.5rem 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 768px) {
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .trust-strip-grid {
    grid-template-columns: 1fr;
  }
}
.trust-strip-item {
  color: #fff;
  padding: 0.75rem 0.5rem;
}
.trust-strip-item .trust-icon {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.trust-strip-item .trust-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.trust-strip-item .trust-sublabel {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin-top: 0.2rem;
}

/* Why-choose-us grid */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) {
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .why-choose-grid { grid-template-columns: 1fr; }
}
.why-choose-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(44,44,58,0.06);
  border-top: 3px solid var(--primary-color);
  transition: transform 0.25s, box-shadow 0.25s;
}
.why-choose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(44,44,58,0.12);
}
.why-choose-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.65rem;
}
.why-choose-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Areas served pills */
.areas-section {
  background-color: var(--secondary-color);
  padding: 4rem 0;
}
.areas-section h2, .areas-section p { color: #fff; }
.areas-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.areas-pill {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  padding: 0.45rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.areas-pill:hover { background: rgba(255,255,255,0.22); }

/* Care approach pillars */
.approach-section {
  background: var(--light-bg);
  padding: 4rem 0;
}
.approach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.approach-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(44,44,58,0.05);
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 220px;
}
.approach-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}
.approach-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Closing CTA section */
.cta-section {
  background-color: var(--primary-color);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Clinical governance credential card */
.credential-card {
  background: var(--secondary-color);
  color: #fff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
}
.credential-card .credential-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.credential-card .credential-dept {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
}
.credential-card .credential-org {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 0.75rem;
}
.credential-card .credential-meta {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.credential-card .credential-badge {
  background: rgba(201,170,113,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Clinical governance section */
.clinical-section {
  background: #FAF3E0;
  border-left: 5px solid var(--primary-color);
  padding: 4rem 0;
}

/* Hospital-to-Home badge */
.h2h-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: var(--dark-bg);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 0.3em 0.8em;
}

/* btn-accent — champagne gold button */
.btn-accent {
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.25s, transform 0.2s;
}
.btn-accent:hover {
  background-color: #b8934f;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Footer revamp ── */
footer {
  margin-top: 0;
}
.footer-top {
  padding: 3.5rem 0 2rem;
}
footer .footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}
footer p {
  font-size: 0.9rem;
  line-height: 1.65;
}
footer a {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}
footer a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.68);
  margin: 0;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.85); }
@media (max-width: 768px) {
  .footer-bottom { justify-content: center; text-align: center; }
}