/* Global resets and body background */
    body {
      margin: 0;
      padding: 0;
      background-color: #262626; /* dark background */
      font-family: Arial, sans-serif;
      color: #eee;
      box-sizing: border-box; /* added global box-sizing */
    }
    *, *:before, *:after {
      box-sizing: inherit;
    }

    /* Page container */
    .page-container {
      max-width: 1096px;
      margin: 0 auto;
      padding: 40px 24px;
      box-sizing: border-box;
    }

    /* Banner Image Slider */
    .slider {
      position: relative;
      width: 100%;
      height: 551px;
      overflow: hidden;
      margin-bottom: 40px;
    }

    .slides {
      display: flex;
      height: 100%;
      transition: transform 0.5s ease;
    }

    .slide {
      flex: 0 0 100%; /* each slide full width */
    }

    .slide img {
      width: 100%;
      height: 551px;
      object-fit: cover;
      user-select: none;
    }

    /* Slider nav buttons */
    .slider-btns {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      padding: 0 12px;
      box-sizing: border-box;
      transform: translateY(-50%);
      pointer-events: none;
    }

    .slider-btn {
      background: rgba(0,0,0,0.5);
      color: #fff;
      border: none;
      font-size: 2rem;
      padding: 8px 14px;
      cursor: pointer;
      border-radius: 6px;
      pointer-events: auto;
      user-select: none;
      transition: background 0.3s ease;
    }

    .slider-btn:hover {
      background: rgba(0,0,0,0.8);
    }

    /* Hero heading */
    .hero-heading{
      font-size: 40px;
      max-width: 777px;
      margin-bottom: 10px;
      line-height: 1.5;
      font-weight: 400 !important;
    }

    /* Hero paragraph */
    .hero-paragraph {
      font-size: 18px;
      max-width: 569px;
      line-height: 1.5;
      margin-bottom: 30px;
      color: #ccc;
      margin-top: 32px;
    }
    
    .sec-moderne {
      position: relative;
      margin: 65px 0px 33px calc((100% - 980px) * 0.5);
      left: 101px;
      grid-area: 1 / 1 / 2 / 2;
      justify-self: start;
      align-self: start;
    }

    /* Elements filters */
    .elements-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-bottom: 20px;
      align-items: center;
    }
    h2.elemente-hed {
      font-weight: 400;
      font-size: 30px;
      margin-right: 25px;
    }

    .filter-btn {
      border: 1.5px solid #EFEFEF;
      color: #EFEFEF !important;
      border-radius: 25px;
      cursor: pointer;
      font-weight: 400;
      white-space: nowrap;
      user-select: none;
      transition: background-color 0.3s ease, border-color 0.3s ease;
      height: 28px;
      background: transparent !important;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      width: 165px;
      font-size: 12px;
    }
    .filter-btn:hover, .filter-btn.active {
      border-color: #EFEFEF;
      color: #EFEFEF;
      background: #665A4B!important;
    }

    /* Elements grid */
    @keyframes fadeUp {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .element-title,
    .element-text,
    .element-tags,
    .detail-title,
    .details-text {
      opacity: 0;
      transform: translateY(20px);
      animation-fill-mode: forwards;
    }

    .fade-up {
      animation: fadeUp 1.5s ease forwards;
    }

    .elements-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 30px;
      margin-bottom: 80px;
      width: 980px;
    }

    .element-card {
      background: linear-gradient(180deg, #262626 0%, #585858 100%);
      overflow: hidden;
      color: #ddd;
      user-select: none;
      display: flex;
      flex-direction: column;
      padding: 10px;
    }
    p.cat-name {
      margin-top: 0px;
      font-size: 13px;
    }
    .element-image img {
      width: 100%;
      height: 266px;
      object-fit: cover;
    }

    .element-content {
      padding: 25px 5px 20px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .element-title {
      font-weight: 400;
      font-size: 24px;
      margin-bottom: 20px;
      color: rgb(239, 239, 239);
      line-height: 1.4;
    }

    .element-text {
      font-size: 16px;
      color: rgb(239, 239, 239);
      flex-grow: 1;
      margin-bottom: 28px;
      line-height: 1.3;
    }

    .element-tags {
      font-size: 12px;
      color: rgb(239, 239, 239);
      text-align: center;
    }

    /* Details section */
    .detail-hed h2 {
      font-size: 30px;
      font-weight: 400;
    }
    
    .detail-title {
      font-weight: 400;
      font-size: 24px;
      margin-bottom: 20px;
      color: rgb(239, 239, 239);
      line-height: 1.4;
      margin-top: 20px;
    }
    
    .details-section {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 30px;
      margin-bottom: 50px;
      max-width: 980px;
      box-sizing: border-box;
    }

    .details-card {
      background: linear-gradient(180deg, #262626 0%, #585858 100%);
      overflow: hidden;
      color: #ddd;
      user-select: none;
      display: flex;
      flex-direction: column;
      padding: 10px;
    }

    .details-image img {
      width: 100%;
      height: 266px;
      object-fit: cover;
    }

    .details-text {
      font-size: 16px;
      color: rgb(239, 239, 239);
      flex-grow: 1;
      margin-bottom: 28px;
      line-height: 1.3;
    }

    /* Customer feedback section */
    .customer-feedback {
      margin-bottom: 50px;
      color: #ddd;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
      text-align: center;
      box-sizing: border-box;
      margin-top: 85px !important;
    }
    .feedback-column.col-2, .feedback-column.col-4 {
      max-width: 385px !important;
    }
    .customer-feedback h2 {
      font-weight: 400;
      margin-bottom: 6px;
      font-size: 56px;
    }

    .customer-feedback .names {
      margin-bottom: 20px;
      font-size: 18px;
      color: rgb(239, 239, 239);
      margin-top: 12px;
    }

    .feedback-columns {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
      text-align: left;
    }

    .feedback-column {
      flex: 1 1 380px;
      min-width: 220px;
      color: #bbb;
      font-size: 0.9rem;
    }

    .feedback-column h3 {
      color: #eee;
      font-weight: 600;
      margin-bottom: 10px;
      font-size: 1.1rem;
    }

    .feedback-column p {
      white-space: pre-wrap;
      line-height: 1.5;
      margin-bottom: 15px;
      width: 315px;
      font-size: 18px;
      color: rgb(239, 239, 239);
    }
    @media (max-width: 768px) {
  body {
    font-size: 16px; /* base font size */
    line-height: 1.4;
  }
  .hero-heading {
    font-size: 28px !important;
  }
  .hero-paragraph {
    font-size: 16px !important;
  }
  .elements-grid,
  .details-section {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  .customer-feedback h2 {
    font-size: 33px;
}
.feedback-column p {
    width: auto;
   }
   .slide img , .slider{
   height: 315px;
}
.sec-moderne {
    margin: 25px 0px 33px calc((100% - 100%) * 0.5);
    left: 0px;
}
.filter-btn {
    width: auto;
}
.elements-filters {
   gap: 15px;
   justify-content: center;
}
}