body {
  background: url("../IMG/poster-frame-children-room-kids-room-nursery.jpg");
  background-size: cover;        /* تخلي الصورة تغطي كل الشاشة */
  background-repeat: no-repeat;  /* تمنع تكرار الصورة */
  background-position: center;   /* تخلي الصورة في المنتصف */
  background-attachment: fixed;  /* دي اللي بتثبت الصورة */
  min-height: 10vh;             /* عشان الخلفية تمتد بطول الصفحة */
  scroll-behavior: smooth;       /* سكرول ناعم */
  overflow-y:scroll ;
  max-width: 100%;
  overflow-X: hidden;
}
section{
  margin-top: 60px;
  margin-bottom: 60px;
}
main{
  overflow-X: hidden;
  width: 90%;
  margin: auto;
  margin-top: 150px;
}
main .head-page {
  font-size: 3.5rem;
  font-weight: 600;
  margin-top: 30px;
  position: relative;
  width: fit-content;
  color: var(--secondary-color);
  margin: auto;
  text-align: center;
}
main .description-page {
  text-align: center;
  margin: auto;
  margin-top: 15px;
}
main .sub-title {
  font-size: 3rem;
  font-weight: 600;
  margin-top: 30px;
  position: relative;
  width: fit-content;
  color: var(--secondary-color);
}
main p {
  max-width: 800px;
  padding: 0px 10px;
  margin-top: 20px;
  font-size: 18px;
}

main .sub-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 90%;
  height: 4px;
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  border-radius: 2px;
}
main h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 90%;
  height: 4px;
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  border-radius: 2px;
}

.grid-system {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 330px));
  gap: 40px 20px;
  width: 100%;
  justify-content: center;
  overflow-y: hidden;
  padding-bottom: 20px;
}

.box {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.box-content {
  padding: 15px;
}

.box-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main, #B9CF25);
  margin-bottom: 10px;
  min-height: 45px ;
}

.box-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.duration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.duration p {
  color: var(--text-color);
  font-weight: 500;
}

.duration span {
  font-weight: 700;
  color: var(--primary-color, #002147);
}






@media (max-width:400px) {
  main{
    width: 95%;
  }
    main h1 {
        font-size: 2rem;
    }
    
    .box img {
        height: 130px;
    }

    

    .box-content h2 {
        font-size: .9rem;
        margin-bottom: 7px;
    }

    .box-content p {
        font-size: 0.8rem;
        margin-bottom: 11px;
    }

    .grid-system {
        grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
        gap: 20px 20px;
        justify-content: center;
    }
    main .head-page {
      font-size: 2.5rem;
    }
    main .sub-title {
      font-size: 2rem;
    }
    main p {
    font-size: 16px;
  }
}