/* ============================================
   Janani Tax Services — site-specific overrides
   ============================================ */

/* Hero slider — use local Indian images (not template banner stock) */
.banner-four-area-main-wrapper .banner-four-bg {
  position: relative;
  background-image: url(../images/janani/hero-1.webp) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.banner-four-area-main-wrapper .banner-four-bg.two {
  background-image: url(../images/janani/hero-2.webp) !important;
}

.banner-four-area-main-wrapper .banner-four-bg.three {
  background-image: url(../images/janani/hero-3.webp) !important;
}

.banner-four-area-main-wrapper .banner-four-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 28, 0.45);
  z-index: 0;
}

.banner-four-area-main-wrapper .banner-four-bg > * {
  position: relative;
  z-index: 1;
}

/* About section — clean panel (do NOT reuse hero photos; they collide with the slider) */
.about-bg-four {
  background-image: none !important;
  background-color: #f4f6f8 !important;
  margin-top: 0 !important;
}

.about-bg-four .about-content-four-left .title,
.about-bg-four .about-content-four-left .title span {
  color: #1c2539;
}

.about-bg-four .about-content-four-left p.disc {
  color: #5d666f;
}

.inner-content-wrapper-four-banner .title {
  font-size: 72px;
  text-transform: none;
}

@media only screen and (max-width: 1199px) {
  .inner-content-wrapper-four-banner .title {
    font-size: 54px;
  }
}

@media only screen and (max-width: 991px) {
  .inner-content-wrapper-four-banner .title {
    font-size: 32px;
  }
}

.inner-content-wrapper-four-banner .title span.in {
  -webkit-text-stroke-color: #ffffff;
  -webkit-text-stroke: 1px;
}

/* Floating WhatsApp click-to-chat */
.janani-whatsapp-float {
  position: fixed;
  bottom: 104px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: 0.3s;
}

.janani-whatsapp-float:hover {
  transform: translateY(-4px);
  background: #1ebe5b;
  color: #ffffff !important;
}

.janani-whatsapp-float i {
  line-height: 1;
}

/* Keep header logo at a sensible size */
.header-main-one-wrapper .thumbnail img,
.logo_footer img {
  max-height: 52px;
  width: auto;
}

/* Google map iframes fill their column */
.google-map iframe,
.rts-appoinment-area iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ============================================
   Compact page header + real breadcrumbs
   ============================================ */
.rts-breadcrumb-area,
.rts-breadcrumb-area.small-h,
.breadcrumb-service-detals-one .banner-inner-service-details-1 {
  height: auto !important;
  min-height: 0 !important;
  padding: 56px 0 48px;
  display: block;
  align-items: unset;
  position: relative;
  overflow: hidden;
  background-color: #1c2539 !important;
  background-image: url(../images/janani/hero-1.webp) !important;
  background-size: cover !important;
  background-position: center 35% !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  border-bottom: none;
}

.rts-breadcrumb-area::before,
.rts-breadcrumb-area.small-h::before,
.breadcrumb-service-detals-one .banner-inner-service-details-1::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(18, 24, 38, 0.88) 0%,
    rgba(28, 37, 57, 0.78) 45%,
    rgba(28, 37, 57, 0.62) 100%
  );
  pointer-events: none;
}

.rts-breadcrumb-area > *,
.rts-breadcrumb-area.small-h > *,
.breadcrumb-service-detals-one .banner-inner-service-details-1 > * {
  position: relative;
  z-index: 1;
}

@media only screen and (max-width: 991px) {
  .rts-breadcrumb-area,
  .rts-breadcrumb-area.small-h,
  .breadcrumb-service-detals-one .banner-inner-service-details-1 {
    padding: 40px 0 32px;
    background-position: center 40% !important;
  }
}

.rts-breadcrumb-area .shape-area,
.breadcrumb-service-detals-one .bg-title {
  display: none !important;
}

.rts-breadcrumb-area .title-area-left,
.rts-breadcrumb-area .title-area-left.center,
.breadcrumb-service-detals-one .title-area-left {
  text-align: left !important;
  max-width: 820px;
  margin: 0;
  position: relative;
}

.rts-breadcrumb-area .title-area-left .bg-title,
.breadcrumb-service-detals-one .title-area-left .bg-title {
  display: none !important;
}

.rts-breadcrumb-area .title-area-left .pre {
  display: none;
}

.janani-breadcrumb {
  margin: 0 0 14px;
}

.janani-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary, "DM Sans", sans-serif);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.janani-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.janani-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  margin-left: 2px;
}

.janani-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.janani-breadcrumb a:hover {
  color: #82b440;
}

.janani-breadcrumb li[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

.rts-breadcrumb-area .title-area-left .title,
.breadcrumb-service-detals-one .title-area-left .title {
  font-size: 40px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  color: #ffffff !important;
  text-transform: none;
}

@media only screen and (max-width: 767px) {
  .rts-breadcrumb-area .title-area-left .title,
  .breadcrumb-service-detals-one .title-area-left .title {
    font-size: 28px !important;
  }
}

.rts-breadcrumb-area .title-area-left p.disc,
.breadcrumb-service-detals-one .title-area-left p.disc {
  margin: 12px 0 0 !important;
  max-width: 640px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 16px;
  line-height: 1.65;
}

/* About image no longer needs to overlap a tall hero */
.about-invena-large-image {
  margin-top: 0 !important;
  padding-top: 20px;
}

.large-image-bottm-breadcrumb img {
  width: 100%;
  border-radius: 12px;
}

/* Service details content should sit normally under the new header */
.service-details-left-area {
  margin-top: 0 !important;
}

/* Sidebar was pulled up (-350px) to overlap the old tall hero; keep it aligned now */
.mt-service-shorter {
  margin-top: 0 !important;
}

.rts-service-details-area-main-bottom {
  padding-top: 48px;
}

/* Contact body was pulled up (-120px) into the page header / breadcrumbs */
.rts-contact-area-in-page {
  margin-top: 0 !important;
  padding-top: 48px;
  padding-bottom: 48px;
}

body.contact-page .rts-breadcrumb-area .title-area-left {
  margin-top: 0 !important;
}

/* Keep blog / services content clear of the compact page header */
.rts-blog-list-area,
.our-service-area-start {
  padding-top: 48px;
}

/* ============================================
   Home — Our Services (4-card layout fix)
   ============================================ */
.janani-services-section .janani-services-heading {
  margin-bottom: 48px;
}

.janani-services-section .janani-services-heading .title {
  display: block;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  -webkit-text-stroke: 0;
  margin-top: 12px;
  color: #1c2539;
}

.janani-services-section .janani-services-heading .title span {
  display: inline;
  font-size: inherit;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px #1c2539;
  margin-left: 0.2em;
}

@media only screen and (max-width: 991px) {
  .janani-services-section .janani-services-heading .title {
    font-size: 36px;
  }
}

@media only screen and (max-width: 767px) {
  .janani-services-section .janani-services-heading .title {
    font-size: 30px;
  }

  .janani-services-section .janani-services-heading {
    margin-bottom: 32px;
  }
}

.janani-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

@media only screen and (max-width: 1199px) {
  .janani-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .janani-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 420px;
    margin: 0 auto;
  }
}

.janani-service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 520px;
  isolation: isolate;
  box-shadow: 0 10px 28px rgba(28, 37, 57, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.janani-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(28, 37, 57, 0.18);
}

.janani-service-card .thumbnail {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.janani-service-card .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.janani-service-card:hover .thumbnail img {
  transform: scale(1.06);
}

.janani-service-card .thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 18, 28, 0.08) 0%,
    rgba(12, 18, 28, 0.2) 38%,
    rgba(12, 18, 28, 0.72) 68%,
    rgba(12, 18, 28, 0.94) 100%
  );
  z-index: 1;
}

.janani-service-card .inner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 32px 22px 36px;
}

.janani-service-card .inner-content .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  flex-shrink: 0;
}

.janani-service-card .inner-content .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.janani-service-card .inner-content .title {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 700;
}

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

.janani-service-card .inner-content p.disc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.55;
  max-width: 100%;
  margin: 0 0 18px;
  font-weight: 500;
}

.janani-service-card .inner-content .read-more {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.janani-service-card .inner-content .read-more:hover {
  color: #82b440;
}

@media only screen and (max-width: 1199px) {
  .janani-service-card,
  .janani-service-card .inner-content {
    min-height: 480px;
  }
}

@media only screen and (max-width: 767px) {
  .janani-service-card,
  .janani-service-card .inner-content {
    min-height: 420px;
  }
}

/* ============================================
   Services page — scalable catalog grid
   ============================================ */
.janani-services-page {
  background: #f8f9fb;
}

.janani-services-page-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.janani-services-page-intro .intro-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #5d666f;
}

.janani-services-page-intro a {
  color: #1c2539;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.janani-services-page-intro a:hover {
  color: #82b440;
}

.janani-services-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.janani-service-page-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e8ecef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 37, 57, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.janani-service-page-card:hover {
  transform: translateY(-6px);
  border-color: #d5dce3;
  box-shadow: 0 16px 40px rgba(28, 37, 57, 0.12);
}

.janani-service-page-card .card-media {
  display: block;
  aspect-ratio: 16 / 10; /* matches generated 1600×1000 service images */
  overflow: hidden;
  background: #e8ecef;
}

.janani-service-page-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.janani-service-page-card:hover .card-media img {
  transform: scale(1.05);
}

.janani-service-page-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 28px;
}

.janani-service-page-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.janani-service-page-card .card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef3e8;
  color: #5a7a2e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.janani-service-page-card .card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f4f6f8;
}

.janani-service-page-card .card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.janani-service-page-card .card-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.janani-service-page-card .card-title a {
  color: #1c2539;
  text-decoration: none;
  transition: color 0.2s ease;
}

.janani-service-page-card .card-title a:hover {
  color: #82b440;
}

.janani-service-page-card .card-desc {
  margin: 0 0 16px;
  color: #5d666f;
  font-size: 15px;
  line-height: 1.65;
}

.janani-service-page-card .card-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.janani-service-page-card .card-points li {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f4f6f8;
  color: #1c2539;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.janani-service-page-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1c2539;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.janani-service-page-card .card-link:hover {
  color: #82b440;
  gap: 12px;
}

.janani-services-page-note {
  margin-top: 40px;
  padding: 22px 28px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px dashed #d5dce3;
  text-align: center;
}

.janani-services-page-note p {
  margin: 0;
  color: #5d666f;
  font-size: 15px;
  line-height: 1.6;
}

.janani-services-page-note a {
  color: #1c2539;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.janani-services-page-note a:hover {
  color: #82b440;
}

@media only screen and (max-width: 767px) {
  .janani-services-page-intro {
    margin-bottom: 28px;
    text-align: left;
  }

  .janani-services-page-grid {
    gap: 20px;
  }

  .janani-services-page-note {
    margin-top: 28px;
    padding: 18px 20px;
    text-align: left;
  }
}
