/*
 * Responsive safeguards for the public site.
 * Loaded after main.css so the desktop presentation remains untouched.
 */

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

img,
svg,
video,
iframe {
  max-width: 100%;
}

.project-mobile-heading {
  display: none;
}

.about-mobile-banner-image {
  display: none;
}

/* Make every project slide a consistently sized card. */
.project-section-2 .project-slider .swiper-wrapper {
  align-items: stretch;
}

.project-section-2 .project-slider .swiper-slide {
  display: flex;
  height: auto;
}

.project-section-2 .project-card-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-section-2 .project-card-item .project-image {
  height: 350px;
}

.project-section-2 .project-card-item .project-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.project-section-2 .project-card-item .project-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 132px;
}

/* Remove the separator below each project name on every viewport. */
.project-section-2 .project-card-item .project-content .content {
  border-bottom: 0;
}

.project-section-2 .project-card-item .project-list {
  margin-top: auto;
}

@media (max-width: 1199px) {
  .container,
  .container-fluid {
    width: 100%;
    max-width: 100%;
  }

  .row > * {
    min-width: 0;
  }

  /* Header and mobile navigation */
  #header-sticky.header-1.header-2 {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .header-1 .mega-menu-wrapper {
    padding: 0 16px;
  }

  .header-1 .header-main {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .header-1 .logo {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
  }

  .header-1 .logo img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 64px !important;
    object-fit: contain;
  }

  .header-1 .header-right {
    flex: 0 0 auto;
    gap: 12px;
  }

  .header-1 .header-right .user,
  .header-1 .header-right .user-btn {
    white-space: nowrap;
    padding: 8px 10px !important;
  }

  .mean-container .mean-bar,
  .mean-container .mean-nav {
    max-width: 100%;
  }

  .mean-container .mean-nav ul {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  /* Homepage sliders and offset sections */
  .abc {
    display: none;
  }

  .hero-slider,
  .hero-slider .swiper-wrapper,
  .hero-slider .swiper-slide,
  .hero-2 {
    min-height: 560px;
    height: min(720px, 100svh);
  }

  .hero-2 {
    padding: 0 !important;
    display: flex;
    align-items: center;
  }

  .hero-2 .container,
  .hero-2 .row {
    width: 100%;
  }

  .hero-2 .hero-content {
    padding: 0 16px;
    text-align: left;
  }

  .hero-2 .hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 4.6rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-2 .hero-content .list-item {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px 24px;
  }

  .hero-2 .hero-content .list-item li {
    font-size: 16px;
  }

  .project-section-2 .section-title {
    margin-left: 0 !important;
    left: auto !important;
  }

  .project-section-2 .project-slider,
  .testimonial-right-item-style-1 {
    margin-left: 0;
    margin-right: 0;
  }

  .project-section-2 .swiper,
  .testimonial-right-item-style-1 .swiper {
    overflow: hidden;
  }

  .feature-skill-right-item-style-2,
  .feature-skill-image,
  .about-left-item-style-2,
  .about-right-item-style-2 {
    max-width: 100%;
  }

  .feature-skill-image > img,
  .about-left-item-style-2 .about-image img,
  .shop-box-style-item .shop-image img,
  .project-card-item .project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .footer-section-2 .left-shape,
  .footer-section-2 .right-shape,
  .feature-skill-section .left-shape,
  .feature-skill-section .right-shape,
  .counter-section-2 .right-shape,
  .counter-section-2 .shape-1,
  .counter-section-2 .shape-2 {
    display: none;
  }
}

@media (min-width: 576px) and (max-width: 1199px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero-2 .hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-widget-wrapper-2 .row > [class*='col-'] {
    margin-bottom: 28px;
  }
}

@media (max-width: 1024px) {
  /* About banner: responsive container using absolute object-fit image */
  .breadcrumb-wrapper:has(.about-mobile-banner-image),
  .breadcrumb-spacer + .breadcrumb-wrapper {
    isolation: isolate;
    position: relative;
    height: clamp(220px, 50vw, 340px);
    min-height: 210px;
    overflow: hidden;
    background-image: none !important;
  }

  .breadcrumb-wrapper:has(.about-mobile-banner-image)::before,
  .breadcrumb-spacer + .breadcrumb-wrapper::before {
    z-index: 1;
    background: linear-gradient(90deg, rgba(2, 51, 35, 0.75) 0%, rgba(2, 51, 35, 0.45) 50%, rgba(2, 51, 35, 0.05) 100%);
  }

  .breadcrumb-wrapper .about-mobile-banner-image {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 58% center;
  }

  .breadcrumb-wrapper:has(.about-mobile-banner-image) .page-heading,
  .breadcrumb-spacer + .breadcrumb-wrapper .page-heading {
    z-index: 2;
    position: relative;
    height: 100%;
    padding: 72px 20px 18px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .breadcrumb-wrapper:has(.about-mobile-banner-image) .breadcrumb-list,
  .breadcrumb-spacer + .breadcrumb-wrapper .breadcrumb-list {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px !important;
  }

  .breadcrumb-wrapper:has(.about-mobile-banner-image) .breadcrumb-title,
  .breadcrumb-spacer + .breadcrumb-wrapper .breadcrumb-title {
    margin-bottom: 0 !important;
    font-size: clamp(1.85rem, 6.5vw, 3rem) !important;
    line-height: 1.1;
  }
}

@media (max-width: 575px) {
  .breadcrumb-wrapper:has(.about-mobile-banner-image),
  .breadcrumb-spacer + .breadcrumb-wrapper {
    height: clamp(200px, 54vw, 240px);
    min-height: 200px;
  }

  .breadcrumb-wrapper .about-mobile-banner-image {
    object-position: 66% center;
  }

  .breadcrumb-wrapper:has(.about-mobile-banner-image) .page-heading,
  .breadcrumb-spacer + .breadcrumb-wrapper .page-heading {
    padding: 68px 16px 16px !important;
  }

  .breadcrumb-wrapper:has(.about-mobile-banner-image) .breadcrumb-title,
  .breadcrumb-spacer + .breadcrumb-wrapper .breadcrumb-title {
    font-size: clamp(1.8rem, 7.5vw, 2.3rem) !important;
  }
}

@media (max-width: 360px) {
  .breadcrumb-wrapper:has(.about-mobile-banner-image),
  .breadcrumb-spacer + .breadcrumb-wrapper {
    height: 195px;
    min-height: 195px;
  }

  .breadcrumb-wrapper:has(.about-mobile-banner-image) .page-heading,
  .breadcrumb-spacer + .breadcrumb-wrapper .page-heading {
    padding: 64px 14px 14px !important;
  }

  .breadcrumb-wrapper:has(.about-mobile-banner-image) .breadcrumb-title,
  .breadcrumb-spacer + .breadcrumb-wrapper .breadcrumb-title {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 575px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* About-page breadcrumb banner */
  .breadcrumb-spacer {
    display: none;
  }

  .section-padding {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .header-1 .mega-menu-wrapper {
    padding: 0 12px;
  }

  .header-1 .header-main {
    min-height: 58px;
    gap: 8px;
  }

  .header-1 .logo img {
    max-width: 132px;
    height: 50px !important;
  }

  .header-1 .header-right {
    gap: 8px;
  }

  .header-1 .header-right .user,
  .header-1 .header-right .user-btn {
    font-size: 12px !important;
    padding: 7px 8px !important;
  }

  .hero-slider,
  .hero-slider .swiper-wrapper,
  .hero-slider .swiper-slide,
  .hero-2 {
    min-height: 500px;
    height: 100svh;
  }

  .hero-2 .hero-content h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .hero-2 .hero-content .list-item {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-2 .hero-content .list-item li {
    font-size: 14px;
    line-height: 1.45;
  }

  .about-section-2 > h2,
  .section-title,
  .section-title.text-center {
    text-align: center !important;
  }

  .about-section-2 > h2 {
    display: block !important;
    padding: 0 16px;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.2;
  }

  /* The desktop GSAP title can remain invisible on first mobile render. */
  .project-section-2 {
    padding-top: 24px;
  }

  .project-section-2 .section-title {
    display: none;
  }

  .project-mobile-heading {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
  }

  .project-mobile-heading span {
    display: block;
    color: var(--theme);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .project-mobile-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.15;
  }

  .project-section-2 .project-slider {
    padding: 0 16px;
  }

  .project-section-2 .project-card-item {
    margin-top: 12px;
  }

  .about-left-item-style-2 .about-main-box {
    grid-template-columns: 1fr;
  }

  /* Keep the service icon and its text together on small screens. */
  .about-content-style-2 .icon-item {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 14px;
  }

  .about-content-style-2 .icon-item .icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    line-height: 54px;
  }

  .about-content-style-2 .icon-item .content {
    flex: 1 1 auto;
    min-width: 0;
  }

  .about-content-style-2 .icon-item .content p {
    max-width: none;
  }

  /* Centre only the service-card artwork; card copy stays left aligned. */
  .service-card-item-2-style-2 .top-item .icon {
    display: flex;
    justify-content: center;
    margin-right: 22px;
  }

  .feature-button-item,
  .about-button-item {
    flex-wrap: wrap;
    gap: 16px;
  }

  .feature-skill-image .small-image,
  .feature-skill-image .box {
    transform: scale(.78);
    transform-origin: right bottom;
  }

  .project-section-2 .project-card-item .project-image img {
    height: 250px !important;
  }

  .project-section-2 .project-card-item .project-image {
    height: 250px;
  }

  .testimonial-section {
    margin: 0;
    border-radius: 0;
  }

  .testimonial-content-style-1 .rating-box,
  .testimonial-right-item-style-1 .testimonial-card-item-style-1 .content-item,
  .footer-bottom-2 .footer-wrapper-2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-content-style-1 .rating-box {
    gap: 18px;
    padding: 20px;
  }

  .testimonial-right-item-style-1 .testimonial-card-item-style-1 {
    padding: 24px 20px;
  }

  .testimonial-right-item-style-1 .testimonial-card-item-style-1 .content-item {
    gap: 16px;
  }

  .footer-widget-wrapper-2 {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .footer-widget-wrapper-2 .single-sideber-widget {
    margin-bottom: 28px;
  }

  .footer-bottom-2 .footer-wrapper-2 {
    gap: 14px;
    text-align: left;
  }

  .footer-bottom-2 .footer-wrapper-2 p,
  .footer-bottom-2 .footer-wrapper-2 p a {
    overflow-wrap: anywhere;
  }
}

/* Justify text content for paragraphs on About, Shop, and Product Details pages */
.about-section-2 .about-box p,
.about-section-2 .about-content p,
.about-section-2 .icon-item .content p,
.feature-skill-section p.text,
.feature-bg-section-2 .feature-bg-item .content p,
.feature-award-section .feature-award-item .content p,
.testimonial-section p.text,
.testimonial-section .testimonial-card-item .right-content p,
.shop-details-section p,
.shop-details-wrapper p,
.shop-details-content p,
.product-details-content p {
  text-align: justify;
}

/* Ensure breadcrumb links (like Home) are bright lime green and clearly visible against dark banner */
.breadcrumb-wrapper .page-heading .breadcrumb-list li,
.breadcrumb-wrapper .page-heading .breadcrumb-list li a {
  color: #99A537 !important;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-wrapper .page-heading .breadcrumb-list li a:hover {
  color: #ffffff !important;
}

/* Fix offcanvas sidebar contact list alignment & email text overflow */
.offcanvas__wrapper .offcanvas__content .offcanvas__contact .contact-list li {
  align-items: flex-start !important;
  gap: 14px !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact .contact-list li .icon {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  margin-top: 2px !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact .contact-list li .content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact .contact-list li .content h4 {
  font-size: 15px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact .contact-list li .content h4 a {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* Fix about & home page cards width on mobile to match video grid width */
.about-left-item-style-2 .about-main-box {
  width: 100% !important;
}

.about-left-item-style-2 .about-main-box .about-box {
  width: 100% !important;
  box-sizing: border-box !important;
}

.about-left-item-style-2 .about-main-box .about-box p {
  max-width: 100% !important;
}

@media (max-width: 991px) {
  .about-left-item-style-2 .about-main-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 20px !important;
  }
}

/* Ensure WOW animated elements are visible */
.wow {
  visibility: visible !important;
  opacity: 1 !important;
}
