* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

.about-hero {
  background: url("./images/about-h.gif") no-repeat center;
  background-size: cover;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: start;
  color: white;
  font-size: 2rem;
}

.about-hero h2 {
  text-align: center;
  font-family: "PlayfairDisplay", serif;
  font-size: 2rem;
  margin-top: 5rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-hero {
    height: 500px;
  }

  .about-hero h2 {
    font-size: 1.6rem;
    margin-top: 3rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    height: 400px;
  }

  .about-hero h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }
}
.mission-vision {
  color: #fff;
  line-height: 1.6;
  margin: 10px;
}

/* ===== Common Section Styles ===== */
.mission,
.vision {
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  min-height: 40vh; /* Not full screen */
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
}

.mission .content,
.vision .content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2rem;
}

/* ===== Mission Section ===== */
.mission {
  background-color: #f54078;
}

.mission h2 {
  flex: 1 1 250px;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mission .text {
  flex: 2 1 500px;
}

.mission p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ===== Vision Section ===== */
.vision {
  background: url("./images/vision.jpg") center/cover no-repeat;
  position: relative;
}

.vision::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.vision .content {
  position: relative;
  z-index: 1;
}

.vision h2 {
  flex: 1 1 250px;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.vision .text {
  flex: 2 1 500px;
}

.vision p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .mission,
  .vision {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .mission .content,
  .vision .content {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .mission h2,
  .vision h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    flex: 1 1 100%;
  }

  .mission .text,
  .vision .text {
    flex: 1 1 100%;
  }

  .mission p,
  .vision p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .mission,
  .vision {
    padding: 2.5rem 1rem;
  }

  .mission h2,
  .vision h2 {
    font-size: 1.5rem;
  }
}

.meet-container {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 5rem;
  background-color: #f5f5f5;
  z-index: 0;
}

.meet-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(./images/gry.png), url(./images/gry-doc.png);
  background-repeat: no-repeat, no-repeat;
  background-position: -170px 120px, 1130px 220px;
  background-size: 300px, 500px;
  z-index: -1;
}

.meet-image {
  flex: 0 0 55%;
  max-width: 400px;
  margin: 4rem 0;
  border-radius: 10px;
  z-index: 1;
}

.meet-image img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}

.meet-content {
  flex: 0 0 30%;
  padding: 1rem;
  z-index: 1;
}

.meet-content h6 {
  font-family: "CanvaSans", sans-serif;
  font-size: 1.25rem;
  color: #000;
  text-align: left;
  margin-bottom: 0.5rem;
  font-weight: 200;
}

.meet-content h2 {
  font-family: "PlayfairDisplay", serif;
  font-size: 2.43125rem;
  color: #f54078;
  text-align: left;
  margin-bottom: 3rem;
  line-height: 1;
  font-weight: 400;
}

.meet-content p {
  font-family: "CanvaSans", sans-serif;
  font-size: 0.9375rem;
  color: #2e2e2e;
  line-height: 1.5;
  font-weight: 100;
  text-align: justify;
}

@media (max-width: 768px) {
  .meet-container {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 3rem;
  }

  .meet-container::before {
    background-position: -120px 100px, 300px 400px;
    background-size: 200px, 300px;
  }

  .meet-content {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .meet-content h6 {
    font-size: 1.1rem;
    text-align: center;
  }

  .meet-content h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .meet-content p {
    font-size: 1rem;
    text-align: center;
  }

  .meet-image {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    margin: 1rem auto;
  }
}

@media (max-width: 480px) {
  .meet-container {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  .meet-container::before {
    background-position: -100px 80px, 200px 400px;
    background-size: 180px, 250px;
  }

  .meet-content h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .meet-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .meet-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .meet-image {
    max-width: 300px;
  }

  .meet-image img {
    border-radius: 12px;
  }
}

.indi-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5rem;
  background-color: #eff8ea;
  margin: 0 auto;
}

.indi-container .indi-image {
  flex: 0 0 50%;
  overflow: hidden;
}

.indi-container .indi-image img {
  width: 100%;
  max-width: 750px;
  height: 500px;
  display: block;
  object-fit: cover;
}

.indi-container .indi-content {
  flex: 0 0 40%;
  padding-right: 10%;
}

.indi-container .indi-content h2 {
  font-family: "PlayfairDisplay", serif;
  font-size: 2.43125rem;
  color: #f54078;
  text-align: left;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.indi-container .indi-content h4 {
  font-family: "CanvaSans", sans-serif;
  font-size: 1.25rem;
  color: #000;
  text-align: left;
  margin-bottom: 1rem;
  font-weight: 300;
}

.indi-container .indi-content p {
  font-family: "CanvaSans", sans-serif;
  font-size: 0.9375rem;
  color: #2e2e2e;
  text-align: left;
  line-height: 1.5;
  font-weight: 100;
  margin-bottom: 1rem;
}

.service {
  display: flex;
  flex-direction: row;
  align-items: start;
  background-color: #fff;
  gap: 5rem;
  position: relative;
  z-index: 1;
  padding: 5rem;
  padding-left: 8rem;
}

.service .right {
  flex: 0 0 30%;
}

.service .right h2 {
  text-align: right;
  color: #f54078;
  font-family: "PlayfairDisplay", serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

.service .left {
  flex: 0 0 65%;
  padding-right: 10rem;
}

.service .left h4 {
  font-family: "CanvaSans", sans-serif;
  font-size: 1.25rem;
  text-align: left;
  color: #f54078;
  font-weight: bold;
  margin-bottom: 0.1rem;
}

.service .left p {
  font-family: "CanvaSans", sans-serif;
  font-size: 1rem;
  text-align: left;
  color: #2e2e2e;
}

.service .left hr {
  color: #606060;
  margin: 1rem 0;
  width: 38rem;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: opacity(0.024);
  background-image: url(./images/med-b.png), url(./images/med-b.png);
  background-repeat: no-repeat, no-repeat;
  background-position: calc(100% - -80px) 0, -120px 240px;
  background-size: 200px 200px, 420px 420px;
  z-index: -1;
}

@media (max-width: 768px) {
  .indi-container {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .indi-container .indi-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    order: 2;
  }

  .indi-container .indi-image img {
    height: auto;
    max-height: 400px;
    border-radius: 12px;
  }

  .indi-container .indi-content {
    flex: 0 0 auto;
    width: 100%;
    padding-right: 0;
    text-align: center;
    order: 1;
  }

  .indi-container .indi-content h2 {
    font-size: 2rem;
    text-align: center;
  }

  .indi-container .indi-content h4 {
    font-size: 1.1rem;
    text-align: center;
  }

  .indi-container .indi-content p {
    font-size: 1rem;
    text-align: center;
  }

  .service {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1rem;
  }

  .service::before {
    background-image: none;
  }

  .service .right {
    flex: 0 0 auto;
    width: 100%;
    order: 1;
  }

  .service .right h2 {
    text-align: center;
    font-size: 2rem;
  }

  .service .left {
    flex: 0 0 auto;
    width: 100%;
    padding-right: 0;
    order: 2;
  }

  .service .left h4 {
    font-size: 1.1rem;
    text-align: left;
  }

  .service .left p {
    font-size: 0.95rem;
    text-align: left;
  }

  .service .left hr {
    margin: 0.8rem 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .indi-container {
    padding: 1.5rem 0.5rem;
  }

  .indi-container .indi-content {
    padding: 0 1rem;
  }

  .indi-container .indi-content h2 {
    font-size: 1.8rem;
  }

  .indi-container .indi-content h4 {
    font-size: 1rem;
  }

  .indi-container .indi-content p {
    font-size: 0.9rem;
  }

  .service {
    padding: 2rem 0.5rem;
  }

  .service .right h2 {
    font-size: 1.8rem;
  }

  .service .left {
    padding: 0 1rem;
  }

  .service .left h4 {
    font-size: 1rem;
    text-align: center;
  }

  .service .left p {
    font-size: 0.9rem;
    text-align: center;
  }

  .service .left p br {
    display: none;
  }

  .service .right h2 br {
    display: none;
  }
}

.indi-container-m {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  background-color: #eff8ea;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.indi-container-m .indi-image2 {
  flex: 0 0 40%;
  overflow: hidden;
  padding: 1rem 1rem 0 16rem;
}

.indi-container-m .indi-image2 img {
  width: 100%;
  height: auto;
}

.indi-container-m .indi-text {
  flex: 0 0 55%;
  padding-right: 22rem;
}

.indi-container-m .indi-text h2 {
  font-family: "PlayfairDisplay", serif;
  font-size: 2.43125rem;
  color: #f54078;
  font-weight: 400;
  text-align: left;
  margin-bottom: 0.3rem;
}

.indi-container-m .indi-text h5 {
  font-family: "CanvaSans", sans-serif;
  font-size: 1.25rem;
  color: #000;
  font-weight: 400;
  text-align: left;
  line-height: 1;
  margin-bottom: 1rem;
}

.indi-container-m .indi-text p {
  font-family: "CanvaSans", sans-serif;
  font-size: 1rem;
  color: #2e2e2e;
  font-weight: 200;
  text-align: left;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.indi-container-m::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: opacity(0.1);
  background-image: url(./images/gren.png);
  background-repeat: no-repeat;
  background-position: calc(100% - -80px) -40px;
  background-size: 250px 300px;
  z-index: -1;
}

.service-m {
  display: flex;
  flex-direction: row;
  align-items: start;
  background-color: #fff;
  gap: 5rem;
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-left: 10rem;
}

.service-m .right {
  flex: 0 0 25%;
}

.service-m .right h2 {
  text-align: right;
  color: #f54078;
  font-family: "PlayfairDisplay", serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

.service-m .left {
  flex: 0 0 75%;
  padding-right: 15rem;
}

.service-m .left h4 {
  font-family: "CanvaSans", sans-serif;
  font-size: 1.25rem;
  text-align: left;
  color: #f54078;
  font-weight: bold;
  margin-bottom: 0.1rem;
}

.service-m .left p {
  font-family: "CanvaSans", sans-serif;
  font-size: 1rem;
  text-align: left;
  color: #2e2e2e;
}

.service-m .left hr {
  color: #606060;
  margin: 1rem 0;
  width: 38rem;
}

.service-m::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: opacity(0.025);
  background-image: url(./images/med-b.png), url(./images/med-b.png);
  background-repeat: no-repeat, no-repeat;
  background-position: calc(100% - -40px) 500px, -160px 20px;
  background-size: 200px 200px, 420px 420px;
  z-index: -1;
}

@media (max-width: 768px) {
  .indi-container-m {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .indi-container-m .indi-image2 {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    padding: 0;
    order: 2;
    margin: 0 auto;
  }

  .indi-container-m .indi-text {
    flex: 0 0 auto;
    width: 100%;
    padding-right: 0;
    order: 1;
    text-align: center;
  }

  .indi-container-m .indi-text h2 {
    font-size: 2rem;
    text-align: center;
  }

  .indi-container-m .indi-text h5 {
    font-size: 1.1rem;
    text-align: center;
  }

  .indi-container-m .indi-text p {
    font-size: 1rem;
    text-align: center;
  }

  .indi-container-m::before {
    background-position: calc(100% - -40px) -20px;
    background-size: 150px 180px;
    filter: opacity(0.05);
  }

  .service-m {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1rem;
  }

  .service-m .right {
    flex: 0 0 auto;
    width: 100%;
    order: 1;
  }

  .service-m .right h2 {
    text-align: center;
    font-size: 2rem;
  }

  .service-m .left {
    flex: 0 0 auto;
    width: 100%;
    padding-right: 0;
    order: 2;
  }

  .service-m .left h4 {
    font-size: 1.1rem;
    text-align: left;
  }

  .service-m .left p {
    font-size: 0.95rem;
    text-align: left;
  }

  .service-m .left hr {
    margin: 0.8rem 0;
    width: 100%;
  }

  .service-m::before {
    background-image: none;
  }
}

@media (max-width: 480px) {
  .indi-container-m {
    padding: 1.5rem 0.5rem;
  }

  .indi-container-m .indi-text {
    padding: 0 1rem;
  }

  .indi-container-m .indi-text h2 {
    font-size: 1.8rem;
  }

  .indi-container-m .indi-text h5 {
    font-size: 1rem;
  }

  .indi-container-m .indi-text p {
    font-size: 0.9rem;
  }

  .service-m {
    padding: 2rem 0.5rem;
  }

  .service-m .right h2 {
    font-size: 1.8rem;
  }

  .service-m .right h2 br {
    display: none;
  }

  .service-m .left {
    padding: 0 1rem;
  }

  .service-m .left h4 {
    font-size: 1rem;
    text-align: center;
  }

  .service-m .left p {
    font-size: 0.9rem;
    text-align: center;
  }

  .service-m .left p br {
    display: none;
  }
}

.experience-section {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  background: #fff;
}

.experience-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(./images/doc-pi.png);
  background-repeat: no-repeat;
  background-position: -160px 50px;
  background-size: 500px 500px;
  z-index: -1;
  opacity: 0.05;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #f54284;
  margin-bottom: 50px;
  font-family: "PlayfairDisplay", serif;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card,
.card-2,
.card-3 {
  border: 2px solid #f54284;
  border-radius: 20px;
  padding: 40px 25px 30px 25px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(245, 64, 120, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.card:hover,
.card-2:hover,
.card-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(245, 64, 120, 0.2);
}

.card-title,
.card-title-3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f54078;
  line-height: 1.3;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title-3 {
  margin-top: 0;
}

.card-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.divider,
.divider-3 {
  height: 2px;
  width: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, #f54078, #ff6b9d);
  border-radius: 1px;
}

.card-text,
.card-text-2 {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  text-align: center;
  font-weight: 400;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .experience-section {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
  }

  .card,
  .card-2,
  .card-3 {
    padding: 30px 20px 25px 20px;
    min-height: 260px;
  }

  .experience-section::before {
    background-position: -200px 30px;
    background-size: 400px 400px;
  }
}

@media (max-width: 768px) {
  .experience-section {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 500px;
  }

  .card,
  .card-2,
  .card-3 {
    padding: 35px 25px 30px 25px;
    min-height: auto;
    max-width: 100%;
  }

  .card-title,
  .card-title-3 {
    font-size: 1.05rem;
  }

  .card-subtitle {
    font-size: 0.85rem;
  }

  .card-text,
  .card-text-2 {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .experience-section::before {
    background-position: -250px 50px;
    background-size: 350px 350px;
  }
}

@media (max-width: 480px) {
  .experience-section {
    padding: 30px 10px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .cards {
    gap: 20px;
    max-width: 100%;
    padding: 0 5px;
  }

  .card,
  .card-2,
  .card-3 {
    padding: 25px 20px;
    border-radius: 15px;
    margin: 0 auto;
    max-width: 320px;
  }

  .card-title,
  .card-title-3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .card-subtitle {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .divider,
  .divider-3 {
    width: 50px;
    margin-bottom: 15px;
  }

  .card-text,
  .card-text-2 {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .experience-section::before {
    background-position: -280px 80px;
    background-size: 300px 300px;
  }
}

@media (max-width: 360px) {
  .experience-section {
    padding: 25px 8px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .cards {
    gap: 15px;
  }

  .card,
  .card-2,
  .card-3 {
    padding: 20px 15px;
    max-width: 290px;
  }

  .card-title,
  .card-title-3 {
    font-size: 0.95rem;
  }

  .card-text,
  .card-text-2 {
    font-size: 0.8rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .experience-section {
    padding: 20px 10px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 100%;
  }

  .card,
  .card-2,
  .card-3 {
    padding: 15px 10px;
    min-height: auto;
  }

  .card-title,
  .card-title-3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .card-subtitle {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .card-text,
  .card-text-2 {
    font-size: 0.75rem;
  }
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.card-2,
.card-3 {
  animation: cardSlideUp 0.6s ease forwards;
}

.card-2 {
  animation-delay: 0.2s;
}

.card-3 {
  animation-delay: 0.4s;
}

.card:focus,
.card-2:focus,
.card-3:focus {
  outline: 2px solid #f54078;
  outline-offset: 4px;
}

@media print {
  .experience-section::before {
    display: none;
  }

  .card,
  .card-2,
  .card-3 {
    box-shadow: none;
    border: 1px solid #000;
  }
}
.indi-container-m .indi-image2 {
  padding: 1rem 1rem 0 10%; /* Reduced from 16rem */
}

.indi-container-m .indi-text {
  padding-right: 10%; /* Reduced from 22rem */
}

.service {
  padding: 5rem 2rem; /* Reduced left padding */
  padding-left: 2rem; /* Override the 8rem */
}

.service .left {
  padding-right: 2rem; /* Reduced from 10rem */
}

.service-m {
  padding-left: 2rem; /* Reduced from 10rem */
}

.service-m .left {
  padding-right: 2rem; /* Reduced from 15rem */
}

.service .left hr,
.service-m .left hr {
  max-width: 100%; /* Instead of fixed 38rem */
}
/* Add to about.css - Optimize animations */
.meet-container,
.indi-container,
.indi-container-m,
.service,
.service-m,
.experience-section {
  will-change: auto; /* Remove if it exists */
}

/* Optimize background images */
.vision::before {
  will-change: auto;
  background-attachment: scroll; /* Changed from fixed if it was */
}

/* Reduce complexity of pseudo-elements */
.meet-container::before,
.indi-container-m::before,
.service::before,
.service-m::before,
.experience-section::before {
  opacity: 0.05; /* Make them less visible = less render work */
}
