@media only screen and (max-width: 1600px) {
  .projects-swiper {
    height: 50vw;
    display: flex;
    align-items: center;
  }

  .side-thumbs {
    top: 18vh;
  }

  .social-icons {
    bottom: 10vh;
  }

  .custom-menu-item {
    margin-bottom: 30px;
  }

  .custom-menu-content a {
    line-height: 1;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media only screen and (max-width: 1100px) {
  .about-number {
    color: #196F9F;
    font-weight: 500 !important;
    font-size: 3rem !important;
  }

  .about-title {
    color: #104867;
    font-weight: 500;
    font-size: 1.3rem;
  }

  .about-div {
    flex-direction: column;
    gap: 0 !important;
  }

  .projects-swiper {
    padding: 60px 60px;
  }
}

@media only screen and (max-width: 1500px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media only screen and (max-width: 991.98px) {
  .social-icons {
    left: 5px;
    bottom: 5vh;
  }

  .slider-arrows {
    bottom: 15vh;
    margin: 0 auto;
    left: 0;
    right: 0;
    transform: none;
    justify-content: center;
  }

  .side-thumbs {
    left: 5px;
    top: 15vh;
  }

  .side-thumbs img {
    width: 100px;
    height: 50px;
  }

  .side-thumbs .activeThumb {
    width: 120px;
  }

  .contact-info-wrapper {
    align-items: center;
    text-align: center;
  }

  .contact-address {
    max-width: 100%;
  }

  .map-wrapper {
    margin-top: 40px;
  }
}

@media only screen and (max-width: 991px) {
  #category-buttons {
    flex-direction: row;
  }

  .btn-category {
    display: flex;
    flex-wrap: wrap;
    width: 100px;
    font-size: 0.9rem;
    padding: 0 !important;
  }

  .projects-swiper {
    height: 40vh;
  }

  #customMenuBtn {
    display: none;
  }

  .navbar {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.5s;
    z-index: 3 !important;
    padding: 0 !important;
  }

  .navbar-collapse {
    background: rgba(16, 72, 103, 0.9);
    padding: 10px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-content {
    left: 5%;
    transform: none;
    top: 45vh;
  }

  .custom-menu-content {
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
  }

  .custom-menu-close {
    top: 20px;
    right: 20px;
  }

  .sub-project-hero-title {
    font-size: 3.5rem;
  }

  .sub-project-hero-content {
    top: 45vh;
    max-width: 90%;
  }

  .sub-project-detail-hero-title {
    font-size: 3rem;
  }

  .sub-project-detail-hero-description {
    font-size: 1.1rem;
  }

  .sub-project-detail-hero-content {
    top: 45vh;
    max-width: 90%;
  }

  .sub-project-detail-content-section {
    padding: 60px 0;
  }

  .project-detail-left {
    padding-right: 15px;
    margin-bottom: 40px;
  }

  .project-detail-right {
    padding-left: 15px;
  }

  .project-detail-main-title {
    font-size: 2.5rem;
  }

  .project-info-table {
    padding: 25px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .stat-unit {
    font-size: 1.2rem;
  }

  .sub-project-detail-gallery-section {
    padding: 60px 0;
  }

  .gallery-item {
    height: 150px;
  }

  .gallery-item.large {
    height: 309px;
    /* 2x mobile height + gap */
  }

  .floorplan-item {
    height: 200px;
    padding: 15px;
  }

  .btn-gallery-tab {
    padding: 10px 25px;
    font-size: 0.9rem;
    min-width: 130px;
  }
}

@media only screen and (max-width: 768px) {
  .projects-swiper {
    padding: 40px 30px;
  }

  .project-card {
    height: 300px;
  }

  .project-card-title {
    font-size: 1.1rem;
  }

  .projects-prev {
    left: 5px !important;
  }

  .projects-next {
    right: 5px !important;
  }

  .sub-project-card {
    height: 250px;
  }

  .sub-project-card-content {
    height: 100px;
    padding: 15px;
  }

  .sub-project-card-title {
    font-size: 1rem;
  }

  .btn-sub-category {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-corporate-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  #corporate-tab-buttons {
    justify-content: center !important;
  }
}

@media only screen and (max-width: 767.98px) {
  .form-container {
    padding: 40px 20px;
  }

  .btn-submit {
    width: 100px;
    height: 100px;
    font-size: 1rem;
  }

  .btn-submit i {
    font-size: 1.5rem;
  }

  .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .btn-submit {
    margin-top: 20px;
    align-self: flex-end;
  }
}

@media only screen and (max-width: 576px) {
  .sub-project-card {
    height: 220px;
  }

  .sub-project-card-content {
    height: 90px;
    padding: 10px;
  }

  .sub-project-card-title {
    font-size: 0.9rem;
  }

  .corporate-stat-number {
    font-size: 2.5rem;
  }

  .corporate-stat-label {
    font-size: 0.9rem;
  }

  .corporate-stats {
    padding: 0;
  }
}

@media only screen and (max-width: 575px) {
  .sub-project-hero-content {
    top: 40vh;
    max-width: 95%;
    left: 30vw;
  }

  .sub-project-hero-title {
    font-size: 2.5rem;
  }

  .sub-project-detail-hero-content {
    top: 40vh;
    max-width: 95%;
  }

  .sub-project-detail-hero-title {
    font-size: 2.2rem;
  }

  .sub-project-detail-hero-description {
    font-size: 1rem;
  }

  .sub-project-detail-content-section {
    padding: 40px 0;
  }

  .project-detail-left {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .project-detail-right {
    padding-left: 0;
  }

  .project-detail-main-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .project-detail-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .project-info-table {
    padding: 20px;
  }

  .info-label {
    font-size: 0.8rem;
  }

  .info-value {
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-unit {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .project-statistics {
    margin-top: 30px;
  }

  .sub-project-detail-gallery-section {
    padding: 40px 0;
  }

  .gallery-item {
    height: 120px;
  }

  .gallery-item.large {
    height: 249px;
    /* 2x mobile height + gap */
  }

  .floorplan-item {
    height: 180px;
    padding: 10px;
  }

  .btn-gallery-tab {
    padding: 8px 20px;
    font-size: 0.8rem;
    min-width: 110px;
  }

  .gallery-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .floorplan-title {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .sub-tab-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media only screen and (max-width: 480px) {
  .projects-swiper {
    padding: 30px 20px;
  }

  .project-card {
    height: 250px;
  }

  .project-card-title {
    font-size: 1rem;
    line-height: 1.1;
  }

  .project-card-content {
    padding: 15px 10px 10px;
  }

  .projects-prev,
  .projects-next {
    width: 35px !important;
    height: 35px !important;
    margin-top: -17px !important;
  }

  .projects-prev:after,
  .projects-next:after {
    font-size: 12px !important;
  }
}

@media only screen and (max-width: 360px) {
  .projects-swiper {
    padding: 20px 15px;
  }

  .project-card {
    height: 200px;
  }

  .project-card-title {
    font-size: 0.9rem;
    line-height: 1;
  }

  .project-card-content {
    padding: 10px 8px 8px;
  }
}