/*
 Theme Name:   Luckycare Child
 Description:  Luckycare Child Theme
 Author:       Admin
 Template:     luckycare
 Version:      1.0.0
 Text Domain:  luckycare-child
*/

body {
  color: #242424;
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  font-size: 1.1rem;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

h1 {
  font-size: 2.5rem; /* ~40px */
  line-height: 1.2;
}

h2 {
  font-size: 2rem; /* ~32px */
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem; /* ~24px */
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem; /* ~20px */
  line-height: 1.5;
}

h5 {
  font-size: 1.125rem; /* ~18px */
  line-height: 1.6;
}

h6 {
  font-size: 1rem; /* ~16px */
  line-height: 1.6;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  } /* ~32px */
  h2 {
    font-size: 1.75rem;
  } /* ~28px */
  h3 {
    font-size: 1.375rem;
  } /* ~22px */
  h4 {
    font-size: 1.125rem;
  } /* ~18px */
  h5 {
    font-size: 1rem;
  } /* ~16px */
  h6 {
    font-size: 0.875rem;
  } /* ~14px */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em 0;
}

a {
  color: var(--fs-color-primary);
  text-decoration: none;
}

.button {
  font-weight: 500;
}

.dark {
  color: #fff;
}

.home-about-img img {
  border-radius: 20px;
}

/* Company Timing */
.company-timing {
  position: absolute;
  text-align: left;
  bottom: 40px;
  right: 0;
  background-color: var(--fs-color-primary);
  border-radius: 20px;
  width: 100%;
  max-width: 300px;
  padding: 30px;
  margin: 15px 30px 0 0;
  animation: ctamoveobject 3s infinite linear alternate;
  z-index: 1;
}

@keyframes ctamoveobject {
  50% {
    right: 40px;
  }
}

.company-timing h3 {
  font-size: 20px;
  font-weight: 700;
  text-transform: capitalize;
  color: #fff;
  margin: 0 35px 20px 0;
}

.company-timing ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-timing ul li {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  color: #fff;
}

.company-timing ul li span {
  font-weight: 400;
  width: 50%;
}

.company-timing ul li:last-child {
  margin-bottom: 0;
}

.company-timing figure {
  position: absolute;
  height: 88px;
  top: 0;
  right: 0;
  transform: translate(30px, -15px);
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
}

.company-timing figure i {
  width: 80px;
  height: 80px;
  background: var(--fs-color-primary);
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.company-timing:hover figure i {
  background: var(--fs-color-secondary);
}

.home-service-text i {
  color: var(--fs-color-primary);
  font-size: 3rem;
}

.home-icon-box {
  display: flex;
  align-items: center;
}

.value-images {
  position: relative;
  padding: 0 140px;
}

.value-img-1 img {
  width: 100%;
  border-radius: 46px;
  aspect-ratio: 1 / 1.496;
  object-fit: cover;
}

.value-img-2 {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  max-width: 302px;
  border: 10px solid #fff;
  border-radius: 46px;
  z-index: 1;
}

.value-img-2 figure {
  display: block;
  background: var(--fs-color-primary);
  border-radius: 36px;
  text-align: center;
}

.value-img-2 h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 0;
  margin-bottom: 0px;
}

.value-img-2 img {
  width: 100%;
  aspect-ratio: 1 / 0.965;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 26px;
}

.value-img-2 figure {
  margin-bottom: 0;
}
.image-anime,
.radius-img .img-inner {
  position: relative;
  overflow: hidden;
}

.radius-50 img {
  border-radius: 50%;
}

.radius-img img {
  border-radius: 20px;
  border: 2px solid #fff;
}

.image-anime:after,
.radius-img .img-inner:after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
}

.image-anime:hover:after,
.radius-img .img-inner:hover:after {
  height: 250%;
  transition: all 600ms linear;
  background-color: transparent;
}

.col-v-center {
  display: flex;
  align-items: center;
}

.why-choose-container {
  background-color: #97b067;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  color: white;
}

.why-choose-content {
  padding: 0 4rem;
}

.why-choose-image {
  background-image: url(https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=800&h=600&fit=crop);
  height: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 0 20px 20px 0;
}

.why-choose-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.why-choose-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.why-choose-list li i {
  background: white;
  color: var(--fs-color-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.underline-style {
  position: relative;
  display: inline-block;
}

.underline-style::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transform: rotate(-2deg);
}

@media (max-width: 991px) {
  .why-choose-new-section {
    padding: 1.5rem 0;
  }
  .why-choose-content {
    padding: 2rem;
  }
  .why-choose-image {
    min-height: 300px;
  }
}

.home-howto .text-section h1 {
  font-size: 3rem;
  color: var(--fs-color-primary);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.home-howto .intro-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.home-howto .step {
  margin-bottom: 35px;
  padding-left: 25px;
  border-left: 4px solid var(--fs-color-primary);
  transition: all 0.3s ease;
}

.home-howto .step:hover {
  border-left-color: var(--fs-color-secondary);
  transform: translateX(5px);
}

.home-howto .step-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  justify-content: left;
}

.home-howto .arrow {
  color: var(--fs-color-primary);
  font-size: 1.3rem;
  margin-right: 10px;
  font-weight: bold;
}

.home-howto .step h2 {
  font-size: 1.6rem;
  color: var(--fs-color-primary);
  font-weight: 600;
}

.home-howto .step p {
  font-size: 1.05rem;
  line-height: 1.7;
  padding-left: 35px;
}

/************************************/
/***          Care Manager css      ***/
/************************************/

.intro-care-box {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: 80px 50px 60px; /* Reduced top padding to accommodate heading */
  text-align: center;
}

.intro-care-box h2 {
  position: relative;
  z-index: 2;
  color: var(--white-color);
  margin-bottom: 40px;
  font-weight: 700;
}

.intro-care-image {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.intro-care-image::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(11, 16, 48, 0) 0%, #0b1030 100%);
  width: 100%;
  height: 100%;
  z-index: 0;
}

.intro-care-image figure,
.intro-care-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-view-button {
  position: relative;
  z-index: 1;
}

.care-view-button a {
  position: relative;
  border: 1px solid #fff;
  border-radius: 100%;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.care-view-button a:hover {
  border-color: var(--fs-color-primary);
}

.care-view-button a img {
  max-width: 30px;
  transition: all 0.3s ease-in-out;
}

.care-view-button a:hover img {
  filter: brightness(1) invert(1);
}

.care-manager-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--dark-divider-color);
  margin-top: 160px;
  padding-top: 40px;
  z-index: 1;
}

.care-manager-item {
  width: calc(33.33% - 20px);
  display: flex;
}

.care-manager-item .icon-box {
  position: relative;
  background: var(--fs-color-secondary);
  background-size: 200% auto;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 20px;
  transition: all 0.5s ease-in-out;
}

.care-manager-item:hover .icon-box {
  background-position: right center;
}

.care-manager-item .icon-box img {
  position: relative;
  max-width: 24px;
  z-index: 1;
}

.care-manager-item-content {
  width: calc(100% - 80px);
}

.care-manager-item-content h3 {
  font-size: 20px;
  text-transform: capitalize;
  color: #fff;
  margin-bottom: 10px;
}

.care-manager-item-content p {
  color: #fff;
  margin: 0;
}
@media only screen and (max-width: 991px) {
  .intro-care-box {
    padding: 100px 15px 50px;
  }

  .care-manager-box {
    gap: 15px;
    margin-top: 100px;
    padding-top: 30px;
  }

  .care-manager-item {
    width: calc(33.33% - 10px);
    display: block;
  }

  .care-manager-item .icon-box {
    width: 50px;
    height: 50px;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .care-manager-item-content {
    width: 100%;
  }
}
@media only screen and (max-width: 767px) {
  .intro-care-box {
    padding: 50px 15px;
  }

  .care-play-button a {
    width: 70px;
    height: 70px;
  }

  .care-manager-box {
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
  }

  .care-manager-item {
    width: 100%;
  }

  .care-manager-item-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
  }
}

/* Stories Gallery */
.stories-gallery {
  display: flex;
  width: 100%;
  height: 500px;
  gap: 15px;
  margin-bottom: 3rem;
}

.story-card {
  position: relative;
  flex: 1;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth ease-out */
  cursor: pointer;
  overflow: hidden;
}

/* Default State: First Item Expanded */
.story-card:first-child {
  flex: 4;
}

/* Hover State Logic */
.stories-gallery:hover .story-card {
  flex: 1; /* Retract all on hover container */
}

.stories-gallery .story-card:hover {
  flex: 4 !important; /* Expand hovered item */
}

/* Content Styling */
.story-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  color: white;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  transition-delay: 0.1s;
}

.story-content h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: white;
}

.story-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  max-width: 80%; /* Limit text width for readability */
}

/* Visibility Logic */
.story-card:first-child .story-content {
  opacity: 1;
  transform: translateY(0);
}

.stories-gallery:hover .story-card:first-child .story-content {
  opacity: 0;
  transform: translateY(20px);
}

.stories-gallery .story-card:hover .story-content {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: 0.3s; /* Delay appearance slightly to allow expansion */
}

.btn-story {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-story:hover {
  background: var(--earth-orange);
  color: white;
}

@media (max-width: 991px) {
  .stories-gallery {
    flex-direction: column;
    height: auto;
  }
  .story-card {
    height: 300px;
    width: 100%;
    margin-bottom: 1rem;
    flex: none !important; /* Disable flex scaling on mobile */
  }
  .story-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
  }
}

/* =========================
   CONSULT FORM – OVERRIDE FLATSOME
   ========================= */

.consult-form input:not([type="submit"]):not([type="radio"]),
.consult-form select,
.consult-form textarea {
  width: 100%;
  height: 52px;
  padding: 10px 18px;
  border-radius: 14px;
  border: none;
  background-color: #ffffff;
  font-size: 15px;
  color: #444;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

/* DATE */
.consult-form input[type="date"] {
  padding-right: 14px;
}

/* SELECT FIX */
.consult-form select {
  appearance: auto;
  -webkit-appearance: menulist;
}

/* FOCUS */
.consult-form input:focus,
.consult-form select:focus {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(25, 70, 34, 0.4),
    0 10px 25px rgba(0, 0, 0, 0.12);
}

/* REMOVE CF7 <p> GAP */
.consult-form .wpcf7-form p {
  margin: 0;
}
.consult-form select {
  background-image: none;
}

form {
  margin-bottom: 0px;
}

.list-content ul,
.li-icon ul {
  margin-bottom: 0;
  list-style: none;
}

.list-content ul li,
.li-icon ul li {
  margin-bottom: 0;
  padding: 5px;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 1.1rem;
}

.list-content p,
.li-icon p {
  margin-left: 1.3rem;
  font-size: 1.1rem;
}

.list-content h2,
.li-icon h2 {
  font-size: 2rem;
}

.li-icon ul li i {
  font-weight: 900;
  background: #efefef;
  color: var(--fs-color-primary);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.list-content ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  background: #efefef;
  color: var(--fs-color-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.list-content ol li {
  padding: 10px;
  font-size: 1.1rem;
}

.list-content ol li::marker {
  font-weight: 900;
  background: #efefef;
  color: var(--fs-color-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.service-title {
  margin: 0.6rem 0 0.4rem 0;
}

.service-item {
  padding: 15px;
  border-radius: 20px;
}
