﻿@media all and (min-width: 992px) {
  .ch-port-l2-header ul li a svg {
    display: none;
  }
}

@media all and (max-width: 1440px) {
  .ch-port-l2_wrapper {
    grid-template-columns: 350px 1fr;
  }
  .ch-port-l2-photo-wrap img {
    height: 320px;
  }
  .ch-port-l2-about-grid .ch-port-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ch-port-l2-about-grid .ch-port-stat-card {
    padding: 15px;
    border-radius: 8px;
  }
  .ch-port-l2-testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media all and (max-width: 1366px) {
  .ch-port-l2-servicebox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media all and (max-width:1199px) {
  .ch-port-l2_wrapper {
    grid-template-columns: 300px 1fr;
    gap: 20px
  }
  .ch-port-l2-photo-wrap img {
    height: 270px;
  }
  .ch-port-l2-header ul li a {
    padding: 8px 16px;
    font-size: 16px;
  }
  .ch-port-l2-header ul {
    gap: 5px;
  }
}

@media all and (max-width:991px) {
  .ch-port-l2-servicebox-grid,
  .ch-port-l2-testi-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .ch-port-l2-contact-grid {
    grid-template-columns: 1fr;
  }
  .ch-port-l2-header ul li a {
    font-size: 0;
    padding: 8px;
  }
  .ch-port-l2-header ul li a svg {
    width: 28px;
    height: 28px;
  }
}

@media all and (max-width:767px) {
  .portfolio-page .section-width {
    padding: 0 15px;
  }
  .ch-port-l2-page {
    padding: 15px 0;
  }
  .ch-port-l2_wrapper {
    grid-template-columns: 1fr;
  }
  .ch-port-l2-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: flex-start;
    position: relative;
  }
  .ch-port-l2-photo-wrap{
    margin: 0;
  }
  .ch-port-l2-photo-wrap img {
    height: 200px;
  }
  .ch-port-l2-card-content * {
    text-align: left;
  }
  .ch-port-l2-info {
    background: transparent;
    padding: 0;
    border-radius: 0;
    gap: 5px;
    grid-template-columns: auto auto;
    justify-content: flex-start;
  }
  .ch-port-l2-info-row {
    background: rgba(0, 0, 0, .12);
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    gap: 6px;
  }
  .ch-port-l2-title {
    margin: 0 0 15px;
  }
  .ch-port-l2-socials {
    gap: 8px;
    justify-content: flex-start;
  }
  .ch-port-l2-cta {
    font-size: 14px;
    width: auto;
    padding: 10px 15px;
  }
  .ch-port-l2-header {
    position: sticky;
    top: 0px;
    z-index: 9;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.3);
  }
  .ch-port-l2-section-header h1 {
    font-size: 28px;
  }
  .ch-port-stat-number {
    font-size: 35px;
    font-weight: 400;
    letter-spacing: 2px;
  }
  .ch-port-stats-grid {
    gap: 10px;
  }
  .ch-port-l2-servicebox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ch-port-l2-servicebox-title {
    font-size: 18px;
  }
  .ch-port-l2-servicebox-desc {
    font-size: 14px;
    margin: 0 0 8px;
  }
  .ch-port-l2-servicebox-tags {
    font-size: 12px;
  }
  .ch-port-l2-testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ch-port-l2-footer-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 15px;
  }
  .ch-port-l2-footer-views,
  .ch-port-l2-footer-brand,
  .ch-port-l2-footer-copy {
    justify-self: center;
  }
  .ch-port-l2-footer-brand {
    order: 1;
  }
  .ch-port-l2-footer-copy {
    order: 2;
    text-align: center;
  }
  .ch-port-l2-footer-views {
    order: 3;
  }
  .ch-port-l2-footer-brand img {
    height: 50px;
  }
}

@media all and (max-width: 575px) {
  .ch-port-l2-card {
    grid-template-columns: 1fr;
    gap: 15px;
  } 
  .ch-port-l2-photo-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  .ch-port-l2-photo-wrap img {
    height: 180px;
  }
  .ch-port-l2-card-content * {
    text-align: center;
  }
  .ch-port-l2-info,
  .ch-port-l2-socials,
  .ch-port-l2-header ul {
    justify-content: center;
  }
  .ch-port-l2-cta {
    margin: 0 auto;
  }
  .ch-port-l2-name {
    font-size: 20px;
    margin-bottom: 5px;
  }
  .ch-port-l2-title {
    font-size: 14px;
    margin: 0 0 10px;
  }
  .ch-port-l2-socials {
    gap: 10px;
    margin: 10px 0;
  }
  .ch-port-l2-section-header h1 {
    font-size: 22px;
  }
  .ch-port-l2-about-grid .ch-port-stats-grid {
    grid-template-columns: 1fr;
  }
  .ch-port-stat-number {
    font-size: 30px;
  }
  .ch-port-l2-about-content p {
    font-size: 14px;
    font-weight: 500;
  }
  .ch-port-l2-header {
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
  }
  .ch-port-l2_wrapper {
    gap: 15px;
  }
  .ch-port-l2-servicebox-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
  .ch-port-l2-contact-row {
    grid-template-columns: 1fr;
  }
  .ch-port-l2-testi-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media all and (max-width: 480px) {
  .ch-port-l2-socials {
    gap: 10px;
  }
  .ch-port-l2-social-btn {
    width: 36px;
    height: 36px;
  }
  .ch-port-l2-servicebox-title {
    font-size: 18px;
  }
  .ch-port-l2-contact-actions {
    flex-direction: column;
  }
  .ch-port-l2-contact-btn--primary {
    order: 1;
  }
  .ch-port-l2-contact-btn--ghost {
    order: 2;
  }
  .ch-port-l2-footer-brand {
    flex-direction: column;
    gap: 8px;
  }
  .ch-port-l2-footer-copy {
    font-size: 14px;
  }
}