/* =========================================================
   RESPONSIVE FIXES  (append at the END of main.css)
   Covers: Index banner, Services page, Training page
   Main focus: <= 767px
========================================================= */

/* ---------- GLOBAL SAFETY ---------- */
.site-main {
  overflow-x: clip;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}


/* =========================================================
   1. INDEX PAGE - SRICHARAN BANNER
========================================================= */

/* ---- Tablet & below (<= 991px) ---- */
@media (max-width: 991px) {

  .sricharan-banner {
    height: auto;
    padding-bottom: 70px;
  }

  .sricharan-main {
    height: auto;
  }

  .sricharan-content {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 150px 30px 0;
    text-align: center;
    margin-top: 0;
  }

  .sricharan-title-line {
    margin-left: auto;
    margin-right: auto;
  }

  .sricharan-description {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .sricharan-features {
    justify-content: center;
  }

  /* person area: flow layout, no fixed heights */
  .sricharan-person-area {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 30px auto 0;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sricharan-person-glow {
    width: 420px;
    height: 420px;
    right: 50%;
    top: 0;
    bottom: auto;
    transform: translateX(50%);
  }

  .sricharan-person-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: 420px;
    overflow: visible;
  }

  .sricharan-person-image img {
    height: 100%;
    width: auto;
    max-width: 100%;
    margin: 0;               /* removes the 200px desktop offset */
    object-position: center bottom;
  }

  .sricharan-info-card {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-top: -20px;
    z-index: 20;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sricharan-info-list {
    display: flex;
  }

  /* stats bar: 3 columns */
  .sricharan-stats {
    height: auto;
    grid-template-columns: repeat(3, 1fr);
    margin: 30px 20px 0;
  }

  .sricharan-stat {
    min-height: 140px;
    padding: 12px 8px;
    box-shadow: inset -1px -1px 0 rgba(180, 207, 222, 0.25);
  }

  .sricharan-stat::after,
  .sricharan-stat:not(:last-child)::after,
  .sricharan-stat:nth-child(3)::after {
    display: none;
  }

  .sricharan-stat-text strong,
  .sricharan-stat-text span {
    white-space: normal;
    text-align: center;
  }
}

/* ---- Mobile (<= 767px) ---- */
@media (max-width: 767px) {

  .sricharan-banner {
    padding-bottom: 50px;
  }

  .sricharan-main {
    height: auto;
  }

  .sricharan-content {
    padding: 130px 18px 0;
  }

  .sricharan-title {
    font-size: 46px;
    letter-spacing: 2px;
    word-break: break-word;
  }

  .sricharan-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .sricharan-title-line {
    margin-top: 14px;
  }

  .sricharan-headline {
    font-size: 20px;
    margin-top: 16px;
  }

  .sricharan-description {
    width: 100%;
    padding-left: 12px;
    margin-top: 16px;
  }

  .sricharan-description p {
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    margin-top: 0;
  }

  .sricharan-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 12px;
    margin-top: 22px;
  }

  .sricharan-features::before {
    display: none;
  }

  .sricharan-feature,
  .sricharan-feature:first-child {
    padding: 0;
    border-left: none;
  }

  .sricharan-feature span br {
    display: none;
  }

  .sricharan-person-area {
    max-width: 100%;
    margin-top: 25px;
  }

  .sricharan-person-image {
    height: 340px;
  }

  .sricharan-person-glow {
    width: 320px;
    height: 320px;
  }

  .sricharan-info-card {
    padding: 14px 16px;
    gap: 14px;
    row-gap: 10px;
  }

  .sricharan-info-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .sricharan-info-count strong {
    font-size: 24px;
  }

  .sricharan-info-list {
    width: 100%;
    border-left: none;
    padding-left: 0;
    align-items: center;
  }

  .sricharan-stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 25px 12px 0;
  }

  .sricharan-stat {
    min-height: 125px;
    padding: 12px 6px;
  }

  .sricharan-stat-icon {
    height: 40px;
    font-size: 28px;
  }

  .sricharan-stat-text strong {
    font-size: 20px;
  }

  .sricharan-stat-text .long-number {
    font-size: 14px;
  }

  .sricharan-stat-text span {
    font-size: 10px;
    margin-top: 5px;
  }

  /* other hero slides */
  .slider-wrapper .slider-content {
    /* padding-top: 140px;
    padding-bottom: 130px; */
    padding-top: 50px;
        padding-bottom: 80px;
  }

  .slider-wrapper .slider-content .slider-title {
    font-size: 30px;
  }

  .h7-hero-slider .tj-slider-section .slider-content .slider-title {
    font-size: 15px;
  }

  .h7-hero-slider .tj-slider-section .slider-content .desc {
    font-size: 10px;
  }

  .h7-hero-slider .tj-slider-section .slider-content .sub-title {
    font-size: 8px;
  }

  /* about / process / headings */
  .sec-heading .sec-title {
    font-size: 17px;
    line-height: 1.3;
  }

  .about-content-three .sec-heading {
    margin-top: 25px;
  }

  /* industries slider cards */
  .tj-service-section-two .service-style-4 {
    height: auto;
    min-height: 0;
  }

  .tj-service-section-two .service-style-4 .thumb {
    height: 210px;
  }

  .tj-service-section-two .service-style-4 .service-content {
    padding: 7px 7px 9px;
  }

  /* services-on-index accordion cards (project-style-3) */
  .project-wrapper-two .project-style-3 .project-thumb {
    height: 420px;
  }

  .project-style-3 .project-content-box {
    left: 0;
    inset-inline-start: 0;
    bottom: 12px;
    max-width: calc(100% - 20px);
    padding: 20px;
  }

  .project-style-3 .project-content-box .project-text .title,
  .project-style-3 .project-content-box .project-text .title a {
    font-size: 16px;
  }

  /* certificate marquee */
  .wrapper {
    width: 94%;
  }
}

@media (max-width: 575px) {
  .project-wrapper-two .project-style-3 .project-thumb {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .sricharan-title {
    font-size: 38px;
  }

  .sricharan-person-image {
    height: 300px;
  }
}

@media (max-width: 420px) {
  .sricharan-stats {
    grid-template-columns: 1fr;
  }

  .sricharan-stat {
    min-height: 95px;
    flex-direction: row;
    gap: 12px;
  }
}


/* =========================================================
   2. SERVICES + TRAINING HERO BANNERS
      (fixed heights caused cut-off text on mobile)
========================================================= */

@media (max-width: 991px) {

  .services-hero.services-page-hero,
  .services-hero.training-hero {
    height: auto;
    min-height: 520px;
    padding: 140px 0 60px;
    display: flex;
    align-items: center;
  }

  .services-hero > .container {
    width: 100%;
  }

  .services-hero-label {
    margin-top: 0;
  }
}

@media (max-width: 767px) {

  .services-hero.services-page-hero,
  .services-hero.training-hero {
    min-height: 0;
    padding: 120px 0 50px;
    background-position: 65% center !important;
  }

  /* readability overlay on mobile only */
  .services-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 41, 0.62);
    z-index: 1;
  }

  .services-hero-label {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .services-hero h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .services-hero h1 br {
    display: none;
  }

  .services-hero p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
  }

  .services-hero p br {
    display: none;
  }

  .training-tagline {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .services-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
  }
}

@media (max-width: 400px) {
  .services-hero h1 {
    font-size: 25px;
  }

  .services-hero-features {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   3. SERVICES PAGE
========================================================= */

/* ---- Why work with me ---- */
.why-work-section .item span {
  display: block;
}

.why-work-section .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1199px) {
  .why-work-section {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 767px) {
  .why-work-section {
    margin-top: 30px;
  }

  .why-work-section .item span {
    font-size: 16px;
  }

  .why-work-section .item {
    border-bottom: 1px solid var(--border);
  }

  .why-work-section .item:last-child {
    border-bottom: none;
  }
}

/* ---- Services list (01-06) ---- */
@media (max-width: 767px) {

  .h6-project-section .h6-project-item .project_image {
    height: 260px;
    max-height: 260px;
  }

  .h6-project-section .h6-project-item .project_content {
    min-height: 0;
    padding: 28px 18px 32px;
  }

  .h6-project-section .h6-project-item .project_content_inner .no {
    font-size: 48px;
    margin-bottom: 8px;
  }

  .h6-project-section .h6-project-item .project_content_inner .title {
    font-size: 17px;
  }

  .h6-project-section .h6-project-item .project_content_inner .desc {
    font-size: 10px;
    line-height: 1.7;
  }

  .h6-project-section .sec-heading .sec-title {
    font-size: 21px;
  }

  .h6-project-section .sec-heading p {
    font-size: 14px;
    text-align: justify;
  }
}

/* ---- Business Excellence strip (nowrap overflow bug) ---- */
.h9-blog-section .h9-blog-item .blog_content_wrap .blog_content .excerpt {
  white-space: normal;
}

@media (max-width: 767px) {
  .h9-blog-section .h9-blog-item {
    margin-top: 25px;
  }

  .h9-blog-section .h9-blog-item .blog_content_wrap {
    padding: 22px 16px;
  }

  .h9-blog-section .h9-blog-item .blog_content_wrap .blog_content .blog_title {
    font-size: 19px;
  }

  .h9-blog-section .h9-blog-item .blog_content_wrap .blog_content .excerpt {
    font-size: 14px;
    margin-top: 10px;
  }

  .h9-blog-section .h9-blog-item .blog_content_wrap .blog_content .excerpt br {
    display: none;
  }
}

/* ---- Industries served cards ---- */
@media (max-width: 767px) {

  .tj-blog-section-three .industry-card .blog-images img {
    height: 220px;
  }

  .tj-blog-section-three .industry-card .blog-content {
    height: auto;
    min-height: 0;
    padding: 22px 20px 26px;
  }

  .tj-blog-section-three .industry-card .title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .tj-blog-section-three .industry-card .desc p {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 0;
  }

  .tj-blog-section-three .industry-icon {
    width: 56px;
    height: 56px;
    top: 12px;
    right: 12px;
  }

  .tj-blog-section-three .industry-icon img {
    width: 30px;
  }

  .tj-blog-section-three .sec-heading .sec-title {
    font-size: 21px;
  }
}

/* ---- Engagement approach (slider -> stacked cards on mobile) ---- */
.engagement-heading .heading-line {
  display: block;
  width: 45px;
  height: 2px;
  background: #3c8f2f;
  flex-shrink: 0;
}

@media (max-width: 767px) {

  .engagement-slider {
    overflow: visible;
  }

  .engagement-track {
    flex-wrap: wrap;
    transform: none !important;
    gap: 15px;
  }

  .engagement-card {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  .engagement-card-image {
    height: 170px;
  }

  .engagement-card-content {
    min-height: 0;
    padding: 18px 14px 20px;
  }

  .engagement-card-content .engagement-title {
    font-size: 17px;
  }

  .engagement-card-content p {
    font-size: 13px;
    line-height: 1.55;
  }

  .engagement-dots,
  .engagement-prev,
  .engagement-next {
    display: none;
  }

  .engagement-heading .heading-line {
    width: 28px;
  }

  .engagement-heading span {
    font-size: 19px;
  }
}

@media (max-width: 575px) {
  .engagement-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .engagement-card-image {
    height: 190px;
  }
}


/* =========================================================
   4. TRAINING PAGE
========================================================= */

/* ---- Training module slider ---- */
@media (max-width: 767px) {

  .tj-testimonial-section-two .testimonial-content {
    min-height: 0;
  }

  .training-program-list li {
    font-size: 14px;
  }
}

/* ---- Training programs (h10 projects): long lists overflowed fixed-height box ---- */
.h10-projects_item .project_content .desc ul {
  padding-left: 18px;
  list-style: disc;
}

.h10-projects_item .project_content .desc {
  margin-left: 0;
}

@media (max-width: 767px) {

  .h10-projects_item {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background-color: #051229;
  }

  .h10-projects_item::before {
    display: none;
  }

  .h10-projects_item .h10-project-img {
    position: relative;
    width: 100%;
    height: 230px;
    z-index: 0;
    flex-shrink: 0;
  }

  .h10-projects_item .project_content {
    position: static;
    max-width: 100%;
    width: 100%;
    inset: auto;
    padding: 24px 18px 28px;
    background-color: #051229;
    backdrop-filter: none;
  }

  .h10-projects_item .project_content .project_title {
    font-size: 20px;
  }

  .h10-projects_item .project_content .desc {
    margin-top: 12px;
  }

  .h10-projects_item .project_content .desc ul {
    columns: 2;
    column-gap: 18px;
    padding-left: 16px;
  }

  .h10-projects_item .project_content .desc li {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 6px;
    break-inside: avoid;
  }

  .h10-projects-section .sec-heading {
    margin-bottom: 30px;
  }
}

@media (max-width: 400px) {
  .h10-projects_item .project_content .desc ul {
    columns: 1;
  }
}

/* ---- Training delivery (service-style-5) ---- */
@media (max-width: 767px) {

  .tj-service-section-four .sec-heading-wrap {
    margin-bottom: 25px;
  }

  .service-style-5 .service-icon span img {
    max-width: 60%;
    height: auto;
  }

  .service-style-5 .h5-service-content {
    padding: 24px 20px;
            text-align: center;
  }

  .service-style-5 .h5-service-content-inner {
    width: 100% !important;
    padding-bottom: 0;
            text-align: center;
  }


  .service-style-5 .h5-service-content-inner .title,
  .service-style-5 .h5-service-content-inner .title a {
    font-size: 19px;
  }

  .service-style-5 .h5-service-content-inner .desc p {
    font-size: 15px;
    margin-top: 8px;
  }
}

/* ---- Training levels ---- */
.training-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.training-card span {
  display: block;
}

/* arrows used "bi bi-*" (Bootstrap Icons not loaded) -> use Font Awesome */
.training-arrow i.bi::before {
  content: "\f061";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
}

@media (max-width: 767px) {

  .training-levels-section {
    padding: 40px 15px;
  }

  .training-title-wrap h6 {
    font-size: 20px;
  }

  .training-title-wrap {
    gap: 8px;
  }

  .title-line {
    width: 32px;
  }

  .training-heading p {
    font-size: 13px;
  }

  .training-levels {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .training-item {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .training-card {
    min-height: 0;
    padding: 22px 18px;
  }

  .training-card span {
    font-size: 17px;
  }

  .training-card p {
    max-width: 320px;
    font-size: 14px;
  }

  .training-arrow {
    flex: none;
    width: 100%;
    height: 40px;
  }

  .training-arrow i {
    font-size: 22px;
    transform: rotate(90deg);
  }
  .project-style-3 .project-content-box .project-text .project-button .project-btn {
    font-size: 12px;
  }
  .project-wrapper-two .project-style-3.active .project-thumb {
        height: auto;
    }
    .h7-process .process-item.style-4 .process-content .title {
    margin-bottom: 14px;
    font-size: 15px;
}
.h7-process .process-item.style-4 .process-content .desc p {
    font-size: 12px;
    text-align: justify;
    margin-bottom: 0;
    margin-top: 0;
}
.h7-process .rg-50 {
    row-gap: 20px;
}
.h7-process .process-item.style-4 .process-index span {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    .tj-service-section-two .sec-heading .sec-text .sec-title {
    font-size: 14px !important;
}
}




