@media (max-width: 1336px) {
  .skew-section h3 {
    font-size: 2.7rem;
  }
}
@media (max-width: 1200px) {
  .solutions-slider .slider-card {
    flex: 0 0 calc((100% - (2 * var(--gap))) / 2.5);
  }
  .skew-section h3 {
    font-size: 2.7rem;
  }
}

@media (max-width: 991px) {
  .hero-mask-section .content-card {
    width: 70%;
    height: 60vh;
    padding-right: 15%;
  }
  .category-main-section {
    padding: 40px 0 50px 0;
  }
  .hostpot-sec {
    padding: 40px 0 0 0;
    margin: 40px 0 0 0;
  }
  .category-main-section .custom-nav-tabs .nav-link img {
    height: 20px;
  }
  .category-main-section .custom-nav-tabs {
    gap: 10px;
  }
  .skew-section {
    padding: 90px 0;
  }

  .solutions-section .image-wrapper::before {
    transform: skewY(-6deg) translate(16px, 14px);
  }

  .solutions-section .main-image-card {
    transform: skewY(-6deg);
  }

  .solutions-section .main-image-card img,
  .image-overlay-text {
    transform: skewY(6deg);
  }

  .solutions-section .image-overlay-text h2 {
    font-size: 28px;
  }
  .solutions-slider .controls-row {
    width: 100%;
  }
  .solutions-section {
    padding-bottom: 0px;
  }
  .innovation-section {
    padding: 0px;
  }

  .solutions-slider {
    padding-left: 0px;
  }
  .global-legacy-sec .details-col {
    padding-left: 12px;
    margin-top: 40px;
  }
  .global-legacy-sec .nav-pills-custom {
    width: 100%;
  }
  .global-legacy-sec .nav-pills-custom .nav-link {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  .global-legacy-sec .container {
    padding: 50px 30px;
  }

  .legacy-milestone-sec .timeline-container {
    flex-direction: column; /* vertical stack */
    overflow: visible; /* 👈 sab dikhne do */
    min-height: auto; /* 👈 fixed height hatao */
    border-right: none;
    border-bottom: 1px solid var(--border-gray);
  }

  .legacy-milestone-sec .milestone-item {
    flex-direction: column;
    border-left: none;
    border-top: 1px solid var(--border-gray);
  }
  .legacy-milestone-sec .milestone-img-box,
  .legacy-milestone-sec .milestone-text-box {
    width: 100% !important;
    justify-content: center;
    text-align: center;
  }

  .legacy-milestone-sec .milestone-item.active .milestone-year {
    margin: 20px 0;
  }

  /* Base mobile layout */
  .legacy-milestone-sec .milestone-item {
    flex-direction: column;
    padding: 18px 10px;
    min-height: auto;
  }

  /* -------- INACTIVE STATE (only YEAR visible) -------- */
  .legacy-milestone-sec .milestone-item:not(.active) .milestone-img-box,
  .legacy-milestone-sec .milestone-item:not(.active) .milestone-text-box {
    display: none; /* 👈 image & content removed */
  }

  .legacy-milestone-sec .milestone-item:not(.active) .milestone-year {
    font-size: 2rem;
    opacity: 0.85;
  }

  /* -------- ACTIVE STATE (show everything) -------- */
  .legacy-milestone-sec .milestone-item.active {
    padding: 30px 15px;
  }

  .legacy-milestone-sec .milestone-item.active .milestone-img-box,
  .legacy-milestone-sec .milestone-item.active .milestone-text-box {
    display: flex; /* 👈 image + content back */
    width: 100%;
    opacity: 1;
    margin-top: 12px;
    justify-content: center;
    text-align: center;
  }

  .legacy-milestone-sec .milestone-item.active .milestone-year {
    font-size: 2.4rem;
    margin-top: 12px;
  }
  .content-col {
    padding-left: 15px;
    margin-top: 80px;
  }
}

@media (max-width: 768px) {
  .hero-mask-section .hero-mask-section {
    height: auto;
    padding: 100px 0;
  }

  .hero-mask-section .content-card {
    /* width: 100%;
    height: auto;
    padding: 80px 20px;
    clip-path: none; */
    /* Remove slant on mobile for better readability */
    /* margin: 0 15px; */
    /* border-radius: 10px; */
  }
  .wtcCarousel .main-heading {
    font-size: 1.5rem;
  }

  .wtcCarousel .heading-container {
    top: 62%;
    left: 10%;
  }

  /* Move further down on mobile */
  .wtcCarousel .custom-arrow {
    width: 35px;
    height: 35px;
  }
  .sustainbility-icon-sec .cat-item p {
    font-size: 1rem;
  }
  .sustainbility-icon-sec .main-card {
    padding: 20px;
  }

  .sustainbility-icon-desc .side-nav-container {
    /* justify-content: center; */
    padding-right: 0;
  }

  /* Mobile par vertical list hide kar sakte hain */
  .sustainbility-icon-desc .detail-box {
    text-align: center;
    margin-right: 0;
  }
  .category-main-section .custom-nav-tabs .nav-link {
    font-size: 0.9rem;
    padding: 10px;
  }

  .category-main-section .building-hero {
    min-height: 300px;
    padding: 20px;
  }
  .category-card img {
    height: 300px;
  }
  .skew-section h3 {
    font-size: 1.8rem;
  }
  :root {
    --skew-angle: -3deg;
    --unskew-angle: 3deg;
  }

  .skew-section {
    padding: 70px 0;
  }

  .hero-carousel h1 {
    font-size: 2.5rem;
  }

  .hero-carousel p {
    font-size: 1rem;
  }

  .hero-carousel .carousel-caption {
    left: 5%;
    bottom: 15%;
    padding-right: 20px;
  }

  .hero-carousel .carousel-indicators {
    margin-left: 8%;
    bottom: 8%;
  }
  .solutions-section {
    padding: 0px;
  }
  .hero-title {
    text-align: center;
    margin: 0 auto;
  }
  .hero-overlay {
    background: rgba(0, 0, 0, 0.4); /* Darker overall on small screens */
  }
  .brand-header {
    text-align: center;
  }
  .info-section {
    padding: 50px 20px;
  }
  .section-description {
    font-size: 0.95rem;
  }

  .nav-tabs-custom {
    gap: 10px;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .stat-item {
    border-bottom: 1px solid #eee;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .image-overlay-text h2 {
    font-size: 1.4rem;
  }
  .innovation-section .main-card-container {
    transform: rotateY(0) rotateX(0); /* Remove tilt on mobile */
  }
  .innovation-section .image-overlay h2 {
    font-size: 1.5rem;
  }
  .innovation-section .innovation-section {
    padding: 50px 0;
  }
  .policy-sec .policy-card {
    border-right: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
  }
  .policy-sec .policy-card:last-child {
    border-bottom: none;
  }
  .solutions-slider .slider-card {
    flex: 0 0 80%;
  }
}
@media (min-width: 768px) {
  .stat-divider {
    border-right: 1px solid #ddd;
  }
}
@media (max-width: 575px) {
  .hero-carousel h1 {
    font-size: 2rem;
  }
  .skew-section {
    padding: 60px 0;
  }
  .solutions-section .image-wrapper,
  .image-wrapper1 {
    height: 300px !important;
  }

  .solutions-section .image-wrapper::before {
    transform: skewY(-4deg) translate(12px, 10px);
    border-radius: 14px;
  }
  .solutions-section .image-wrapper1::before {
    transform: skewY(-4deg) translate(12px, 10px);
    border-radius: 14px;
  }

  .solutions-section .main-image-card,
  .main-image-card1 {
    transform: skewY(-4deg);
    border-radius: 14px;
  }

  .solutions-section .main-image-card img,
  .solutions-section .image-overlay-text {
    transform: skewY(4deg);
  }
  .solutions-section .main-image-card1 img,
  .solutions-section .image-overlay-text1 {
    transform: skewY(4deg);
  }

  .solutions-section .image-overlay-text,
  .image-overlay-text1 {
    padding: 24px;
  }

  .solutions-section .image-overlay-text h2,
  .image-overlay-text1 h2 {
    font-size: 22px;
    line-height: 1.3;
  }
}
