* {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Hero Section Styles */
.about-hero-content {
  position: relative;
  padding: 1rem;
}

.about-text {
  background: linear-gradient(to bottom, #f35629 56%, #f28f27);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 60px;
  line-height: 1;
  margin-top: -36px;
  margin-left: 57px;
  text-align: center;
}

.about-heart-container {
  position: relative;
  display: inline-block;
  margin: 1rem 0;
  top: 10px;
  left: -120px;
  padding-left: 5px;
  padding-right: 5px;
}

.about-heart-icon {
  width: 100px;
  height: 100px;
  filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(1421%)
    hue-rotate(360deg) brightness(103%) contrast(101%);
}

.about-css-heart {
  position: absolute;
  width: 80px;
  height: 80px;
  transform: rotate(-45deg);
  margin: 1rem auto;
}

.about-css-heart:before,
.about-css-heart:after {
  content: "";
  width: 40px;
  height: 64px;
  position: absolute;
  background: #f35629;
  border-radius: 32px 32px 0 0;
}

.about-css-heart:before {
  left: 30px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.about-css-heart:after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

/* Responsive Styles */
@media (max-width: 1275px) {
  .about-text {
    font-size: 48px;
    margin-left: 74px;
  }

  .about-heart-container {
    left: -80px;
  }
}

@media (min-width: 1024px) and (max-width: 1169px) {
  .about-text {
    font-size: 42px;
    margin-left: 96px;
  }

  .about-heart-container {
    left: -60px;
  }
}

@media (max-width: 1023px) {
  .about-text {
    font-size: 42px;
    margin-left: 96px;
    margin-top: -30px !important;
  }

  .about-heart-container {
    left: -110px;
  }
}

/* Mobile and Tablet Styles - Reduced Height */
@media (max-width: 768px) {
  #about-page {
    min-height: 60vh !important; /* Reduced from min-h-screen (100vh) */
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .about-text {
    font-size: 38px;
    margin-left: 15px !important;
    margin-top: -20px !important;
  }

  .about-heart-container {
    left: -90px;
    margin: 0.5rem 0; /* Reduced margin */
  }

  .about-heart-icon {
    width: 70px;
    height: 70px;
  }

  .about-hero-content {
    padding: 0.5rem; /* Reduced padding */
  }
}

@media (max-width: 479px) {
  #about-page {
    min-height: 50vh !important;
    padding: 0 0.9rem; /* Added consistent padding */
  }

  .about-text {
    font-size: 32px;
    text-align: center;
    margin-left: 30px !important;
    padding: 10px;
    margin-top: -22px !important;
    display: inline-block;
  }

  .about-heart-container {
    position: relative;
    left: 0; /* remove negative offset */
    margin-left: -130px;
    top: 14px;
    display: inline-block;
  }

  .about-heart-icon {
    width: 60px;
    height: 60px;
  }

  .about-hero-content {
    padding: 0.2rem;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Content elements consistent spacing */
  .celebration-content p,
  .mallika-home-content,
  .mallika-home-content-1,
  .mallika-home-content-2,
  .mallika-home-content-3,
  .mallika-home-content-4,
  .mallika-home-content-5,
  .mallika-home-content-6,
  .mallika-home-content-7,
  .parakrama-cd-center-content-1,
  .parakrama-cd-center-content-2,
  .sneha-cd-center-content-1,
  .sneha-cd-center-content-2,
  .seth-medura-home-content-1,
  .seth-medura-home-content-2,
  .seth-sewana-I-home-content-1,
  .seth-sewana-I-home-content-2,
  .seth-sewana-II-home-content-1,
  .seth-sewana-II-home-content-2 {
    padding: 0 0.45rem !important; /* Half of 0.9rem */
    margin: 0.9rem 0 !important;
  }

  /* Titles consistent spacing */
  .celebration-section div h2,
  .leadership-section div h2,
  .mallika-home-part div h2,
  .parakrama-cd-center-part div h2,
  .sneha-cd-center-part div h2,
  .seth-medura-home-part div h2,
  .seth-sewana-I-home-part div h2,
  .seth-sewana-II-home-part div h2,
  .mallika-home-project-part-title,
  .mallika-home-services-part-title {
    padding: 0 0.45rem !important;
    margin: 0.9rem 0 !important;
  }

  .celebration-img,
  .leadership-img {
    margin: 0.9rem 0 !important;
    padding: 0 0.45rem !important;
  }

  .mallika-home-content-3,
  .mallika-home-content-4,
  .mallika-home-content-5,
  .mallika-home-content-6,
  .mallika-home-content-7 {
    margin-top: 0.9rem !important;
    margin-bottom: 0.9rem !important;
  }

  .mallika-home-services-part-desc {
    padding: 0 0.45rem !important;
    margin: 0.9rem 0 !important;
  }

  .pcd-button,
  .scd-button,
  .dementia-center button {
    margin: 0.9rem auto !important;
    font-size: 15px !important;
  }
}

/* 100 Year Celebration Section Styles */
.celebration-img img {
  width: 100%;
  max-width: 450px;
  height: 300px;
  object-fit: cover;
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

/* Desktop and large tablets */
@media (max-width: 1275px) {
  .celebration-content p {
    font-size: 16px;
  }

  .celebration-img img {
    max-width: 400px;
    height: 280px;
  }
}

/* Medium Tablets */
@media (min-width: 768px) and (max-width: 1169px) {
  .celebration-content p {
    font-size: 15px;
  }

  .celebration-img {
    flex-direction: row;
    gap: 1.5rem;
  }

  .celebration-img img {
    max-width: 320px;
    height: 250px;
  }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
  .celebration-section div h2 {
    font-size: 32px;
  }

  .celebration-section {
    max-width: 92% !important;
    margin: 0 auto;
  }

  .celebration-section div h2 span {
    font-size: 32px;
  }

  .celebration-content p {
    font-size: 15px;
    padding: 0 0.4rem !important;
  }

  .celebration-img {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile Phones */
@media (max-width: 479px) {
  .celebration-section div h2 {
    font-size: 26px;
    margin-top: 35px !important;
  }

  .celebration-section div h2 span {
    font-size: 26px;
  }

  .celebration-content p {
    font-size: 14px;
  }

  .celebration-img {
    gap: 0.9rem; /* Changed to 0.9rem */
  }

  .celebration-img img {
    max-width: 280px;
    height: 160px;
  }
}

/*Leadership responsive styles*/
.leadership-img {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 10px;
}

.leadership-img img {
  display: block;
}

.arrow-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.28s ease, width 0.2s ease, height 0.2s ease,
    margin 0.2s ease;
}

/* images base sizes */
.leadership-img-1,
.leadership-img-2 {
  width: 100%;
  max-width: 450px;
  height: 300px;
  object-fit: cover;
  border-radius: 0.75rem; /* rounded-xl */
}

.leadership-section {
  max-width: 1440px;
}

/* Large but slightly smaller desktop */
@media (max-width: 1400px) {
  .leadership-img-1,
  .leadership-img-2 {
    max-width: 420px;
    height: 290px;
  }
  .arrow-icon {
    width: 90px;
    height: 90px;
  }
}

/* Tablet & small desktop — stack vertically at 1080px and below */
@media (max-width: 1080px) {
  .leadership-img {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-inline: 0.5rem;
  }

  .arrow-icon {
    transform: rotate(90deg);
    width: 80px;
    height: 80px;
    margin: 0.75rem 0;
  }

  .leadership-img-1,
  .leadership-img-2 {
    max-width: 360px;
    height: 220px;
  }
}

@media (max-width: 920px) {
  .leadership-img {
    margin-top: -20px;
    gap: 0.8rem;
  }

  .arrow-icon {
    width: 60px;
    height: 60px;
    margin: 0.6rem 0;
  }

  .leadership-img-1,
  .leadership-img-2 {
    max-width: 320px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .leadership-img {
    gap: 0.4rem;
  }

  .leadership-section div h2 {
    font-size: 32px;
  }

  .leadership-section div h2 span {
    font-size: 32px;
  }

  .leadership-section {
    background-color: transparent;
    max-width: 92% !important; /* fills more space */
    margin: 0 auto;
  }
}

/* Small phones */
@media (max-width: 640px) {
  .leadership-img {
    gap: 0.6rem;
    padding-inline: 0.5rem;
  }

  .arrow-icon {
    width: 52px;
    height: 52px;
    margin: 0.45rem 0;
  }

  .leadership-img-1,
  .leadership-img-2 {
    max-width: 300px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .leadership-section {
    margin-bottom: 22px;
  }

  .arrow-icon {
    width: 50px;
    height: 60px;
  }

  .leadership-section div h2 {
    font-size: 25px;
  }

  .leadership-section div h2 span {
    font-size: 25px;
  }

  .leadership-img-1,
  .leadership-img-2 {
    max-width: 350px; /* 90% of viewport width */
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}

/* mallika home styles */
.mallika-home-content-5,
.mallika-home-content-7 {
  text-align: right;
}

.mallika-home-part div h2 {
  font-size: 40px;
}

.about-container div h2 span {
  font-size: 40px;
}

@media (max-width: 1275px) {
  .mallika-home-content-1,
  .mallika-home-content-2,
  .mallika-home-content-3,
  .mallika-home-content-4,
  .mallika-home-content-5,
  .mallika-home-content-6,
  .mallika-home-content-7 {
    font-size: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1169px) {
  .mallika-home-content-1,
  .mallika-home-content-2,
  .mallika-home-content-3,
  .mallika-home-content-4,
  .mallika-home-content-5,
  .mallika-home-content-6,
  .mallika-home-content-7 {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .mallika-home-part {
    background-color: transparent;
    max-width: 92% !important; /* fills more space */
    margin: 0 auto;
  }

  .mallika-image-container div img {
    margin-top: -20px !important;
  }

  .mallika-home-part div h2 {
    font-size: 32px;
  }

  .about-container div h2 span {
    font-size: 32px;
  }

  .mallika-home-content-1,
  .mallika-home-content-2,
  .mallika-home-content-3,
  .mallika-home-content-4,
  .mallika-home-content-5,
  .mallika-home-content-6,
  .mallika-home-content-7 {
    font-size: 15px;
    text-align: center;
    padding: 0 0.3rem;
  }

  .mallika-home-content-3 {
    margin-top: -30px;
  }

  .mallika-home-content-4 {
    margin-top: -20px;
    margin-bottom: -30px;
  }

  .mallika-home-content-5 {
    margin-top: -20px;
    margin-bottom: -30px;
  }

  .mallika-home-content-6 {
    margin-top: -20px;
    margin-bottom: -28px;
  }

  .mallika-home-content-7 {
    margin-top: -20px;
  }

  .dementia-center div a {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 160px;
  }
}

@media (max-width: 479px) {
  .mallika-image-container div img {
    margin-top: -20px !important;
    background-color: #f28f27 !important;
  }

  .mallika-home-content-1,
  .mallika-home-content-2,
  .mallika-home-content-3,
  .mallika-home-content-4,
  .mallika-home-content-5,
  .mallika-home-content-6,
  .mallika-home-content-7 {
    font-size: 14px;
    padding: 0 0.3rem;
  }

  .mallika-home-part div h2 {
    font-size: 25px;
    margin-top: -10px !important;
  }

  .mallika-home-content-3 {
    margin-top: -30px !important;
  }

  .mallika-home-content-4 {
    margin-top: -20px !important;
    margin-bottom: -30px !important;
  }

  .mallika-home-content-5 {
    margin-top: -20px !important;
    margin-bottom: -30px !important;
  }

  .mallika-home-content-6 {
    margin-top: -20px !important;
    margin-bottom: -28px !important;
  }

  .mallika-home-content-7 {
    margin-top: -20px !important;
  }

  .mallika-image-container img {
    max-height: 170px;
  }
}

/* mallika home - our projects part styles */
.project-card {
  position: relative;
  border: 1px solid #ddd;
  background: white;
  overflow: visible;
  width: 335px;
  height: 193px;
  padding: 1rem;
}

.project-card p {
  font-size: 20px;
}

.project-card p span {
  font-size: 20px;
}

/* Top-left black corner */
.corner-top-left {
  position: absolute;
  top: -5px;
  left: -5px;
}

.corner-top-left::before,
.corner-top-left::after {
  content: "";
  position: absolute;
  background: black;
  border-radius: 2px;
}

.corner-top-left::before {
  width: 100px;
  height: 5px;
}

.corner-top-left::after {
  width: 5px;
  height: 100px;
}

/* Bottom-right orange corner */
.corner-bottom-right {
  position: absolute;
  bottom: -5px;
  right: -5px;
}

.corner-bottom-right::before,
.corner-bottom-right::after {
  content: "";
  position: absolute;
  background: #f28f27;
  border-radius: 2px;
}

.corner-bottom-right::before {
  width: 100px;
  height: 5px;
  bottom: 0;
  right: 0;
}

.corner-bottom-right::after {
  width: 5px;
  height: 100px;
  bottom: 0;
  right: 0;
}

.project-icon {
  position: absolute;
  opacity: 0.1;
  object-fit: contain;
  pointer-events: none;
}

.icon-pos-1,
.icon-pos-2,
.icon-pos-3,
.icon-pos-4 {
  top: 36px;
  right: 12px;
  width: 128px;
  height: 120px;
}

.mallika-home-project-part-title {
  font-size: 34px !important;
}

@media (max-width: 1024px) {
  .project-card {
    max-width: 880px;
  }

  .icon-pos-1,
  .icon-pos-2,
  .icon-pos-3,
  .icon-pos-4 {
    width: 112px;
    height: 100px;
  }

  .project-card p {
    font-size: 18px !important;
  }

  .project-card p span {
    font-size: 18px !important;
  }

  .corner-bottom-right::before {
    width: 80px;
  }

  .corner-bottom-right::after {
    height: 80px;
  }

  .corner-top-left::before {
    width: 80px;
  }

  .corner-top-left::after {
    height: 80px;
  }

  .mallika-home-project-part-title {
    font-size: 30px !important;
  }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
  .project-card {
    max-width: 300px;
    max-height: 180px;
  }

  .project-card p {
    font-size: 15px !important;
  }

  .project-card p span {
    font-size: 15px !important;
  }

  .mallika-home-project-part-title {
    font-size: 26px !important;
  }
}

/* Mobile Phones */
@media (max-width: 479px) {
  .project-card {
    max-width: 260px;
    max-height: 150px;
    margin: 0.9rem 0; /* Added consistent margin */
  }

  .project-card p {
    font-size: 15px;
  }

  .project-card p span {
    font-size: 15px;
  }

  .corner-top-left::before,
  .corner-bottom-right::before {
    width: 60px;
  }

  .corner-top-left::after,
  .corner-bottom-right::after {
    height: 60px;
  }

  .icon-pos-1,
  .icon-pos-2,
  .icon-pos-3,
  .icon-pos-4 {
    width: 100px;
    height: 90px;
  }

  .mallika-home-project-part-title {
    font-size: 22px !important;
  }
}

/* mallika home services part styles */
.mallika-home-services-part-title {
  font-size: 34px !important;
}

.services-topic {
  font-size: 18px !important;
}

.mallika-home-services-part-desc {
  font-size: 17px !important;
  margin-top: 30px;
}

@media (max-width: 1275px) {
  .services-topic {
    font-size: 16px !important;
  }

  .mallika-home-services-part-desc {
    font-size: 16px !important;
  }
}

@media (max-width: 1024px) {
  .mallika-home-services-part-title {
    font-size: 30px !important;
  }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
  .services-topic {
    font-size: 15px !important;
  }

  .mallika-home-services-part-title {
    font-size: 26px !important;
  }

  .mallika-home-services-part-desc {
    font-size: 15px !important;
  }
}

/* Mobile Phones */
@media (max-width: 479px) {
  .services-we-offer-section {
    margin-top: 32px !important;
  }

  .services-topic {
    font-size: 14px !important;
  }

  .mallika-home-services-part-title {
    font-size: 22px !important;
  }

  .mallika-home-services-part-desc {
    font-size: 14px !important;
  }
}

/* Parakrama Child Development Center Styles */
/* Sneha Development Center styles */
/* Seth Madura Paying Home styles */
/* Seth Sewana I Paying home styles */
/* Seth Sewana II Paying home styles */
.parakrama-cd-center-content-1,
.parakrama-cd-center-content-2 {
  font-size: 17px;
}

.parakrama-cd-center-part,
.sneha-cd-center-part,
.seth-medura-home-part,
.seth-sewana-I-home-part,
.seth-sewana-II-home-part {
  max-width: 1440px; /* fills more space */
  margin: 0 auto;
}

.sneha-cd-center-content-1,
.sneha-cd-center-content-2 {
  font-size: 17px;
  text-align: right;
}

.seth-medura-home-content-1,
.seth-medura-home-content-2 {
  font-size: 17px;
}

.seth-sewana-II-home-content-1,
.seth-sewana-II-home-content-2 {
  font-size: 17px;
}

.seth-sewana-I-home-content-1,
.seth-sewana-I-home-content-2 {
  font-size: 17px;
}

@media (max-width: 1275px) {
  .parakrama-cd-center-content-1,
  .parakrama-cd-center-content-1 {
    font-size: 16px;
  }

  .sneha-cd-center-content-1,
  .sneha-cd-center-content-2 {
    font-size: 16px;
  }

  .seth-medura-home-content-1,
  .seth-medura-home-content-2 {
    font-size: 16px;
  }

  .seth-sewana-II-home-content-1,
  .seth-sewana-II-home-content-2 {
    font-size: 16px;
  }

  .seth-sewana-I-home-content-1,
  .seth-sewana-I-home-content-2 {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  /* Make sections take almost full width on tablets/mobiles */
  .parakrama-cd-center-part,
  .sneha-cd-center-part,
  .seth-medura-home-part,
  .seth-sewana-I-home-part,
  .seth-sewana-II-home-part {
    background-color: transparent;
    max-width: 92% !important; /* fills more space */
    margin: 0 auto;
  }

  .parakrama-cd-center-part h2 {
    margin-top: -30px !important;
  }

  .seth-sewana-I-home-part h2 {
    margin-top: -30px !important;
  }

  /* Headings */
  .parakrama-cd-center-part h2,
  .sneha-cd-center-part h2,
  .seth-medura-home-part h2,
  .seth-sewana-I-home-part h2,
  .seth-sewana-II-home-part h2 {
    font-size: 32px;
  }

  /* Spans inside headings */
  .parakrama-cd-center-part h2 span,
  .sneha-cd-center-part h2 span,
  .seth-medura-home-part h2 span,
  .seth-sewana-I-home-part h2 span,
  .seth-sewana-II-home-part h2 span {
    font-size: 32px;
  }

  .seth-sewana-I-home-part div div img {
    margin-top: -20px !important;
  }

  .seth-sewana-II-home-part div img {
    margin-top: -20px !important;
  }

  /* Content text */
  .parakrama-cd-center-content-1,
  .parakrama-cd-center-content-2,
  .sneha-cd-center-content-1,
  .sneha-cd-center-content-2,
  .seth-medura-home-content-1,
  .seth-medura-home-content-2,
  .seth-sewana-I-home-content-1,
  .seth-sewana-I-home-content-2,
  .seth-sewana-II-home-content-1,
  .seth-sewana-II-home-content-2 {
    font-size: 15px;
    text-align: center;
    padding: 0 0.4rem;
  }

  /* Address text */
  .address {
    font-size: 16px;
    text-align: center;
  }

  /* Center buttons */
  .pcd-button a,
  .scd-button a {
    display: block;
    margin: 0 auto;
    text-align: center;
    font-size: 15px !important;
    max-width: 160px;
    margin-top: 24px !important;
  }
}

@media (max-width: 479px) {
  .services-we-offer-img img {
    max-height: 340px !important;
  }

  .services-icon img {
    max-width: 45px !important;
    max-height: 45px !important;
  }

  .parakrama-cd-center-content-1,
  .parakrama-cd-center-content-2 {
    font-size: 14px;
    padding: 0 0.8rem;
  }

  .services-topic {
    font-size: 14px !important;
  }

  .sneha-cd-center-content-1,
  .sneha-cd-center-content-2 {
    font-size: 14px;
    padding: 0 0.8rem;
  }

  .seth-medura-home-content-1,
  .seth-medura-home-content-2 {
    font-size: 14px;
    padding: 0 0.8rem;
  }

  .seth-sewana-II-home-content-1,
  .seth-sewana-II-home-content-2 {
    font-size: 14px;
    padding: 0 0.8rem;
  }

  .seth-sewana-I-home-content-1,
  .seth-sewana-I-home-content-2 {
    font-size: 14px;
    padding: 0 0.8rem;
  }

  .parakrama-cd-center-part div h2 {
    margin-top: -40px !important;
  }

  .parakrama-cd-center-part div h2 {
    font-size: 25px;
  }

  .parakrama-cd-center-part div h2 span {
    font-size: 25px;
  }

  .sneha-cd-center-part div h2 {
    font-size: 25px;
    margin-top: -30px !important;
  }

  .sneha-cd-center-part div h2 span {
    font-size: 25px;
  }

  .seth-medura-home-part div h2 {
    font-size: 25px;
    margin-top: -30px !important;
  }

  .seth-medura-home-part div h2 span {
    font-size: 25px;
  }

  .seth-sewana-I-home-part div h2 {
    font-size: 25px;
    margin-top: -30px !important;
  }

  .seth-sewana-I-home-part div h2 span {
    font-size: 25px;
  }

  .seth-sewana-II-home-part div h2 {
    font-size: 25px;
    margin-top: -30px !important;
  }

  .seth-sewana-II-home-part div h2 span {
    font-size: 25px;
  }

  .address {
    font-size: 15px !important;
  }

  .address span {
    font-size: 15px !important;
  }

  .smph-image-container img {
    max-height: 170px;
  }

  .scdc-image-container img {
    max-height: 170px;
  }

  .pcdc-image-container img {
    max-height: 170px;
  }

  .ssph-image-container-1 img {
    max-height: 170px;
  }

  .ssph-image-container-2 img {
    max-height: 170px;
  }
}
