
.main {display: flex;padding: 3rem 1rem;gap: 3rem;align-items: flex-start;justify-content: space-between;max-width: 1400px;}
.container{display: grid;place-items: center;}
.sidebar {width: 210px;display: flex;flex-direction: column;gap: 0.7rem;}

.country {
  padding: 0.9rem 1rem 0.9rem 2rem;
   background-color: transparent;
  border: 1px solid #ccc;
  color: #2f3e46;
  cursor: pointer;
  text-align: left;
  font-size: 0.925rem;
  border-radius: 0.15rem;
}

.country.active {
   background-color: #3d5aaa;
    color: #fff;
    border: 1px solid #3d5aaa;
}
.n2-ss-slider .n2-ss-slide-background-video {
    object-fit: fill !important;
}
.course-lists {
  min-width: 55vw;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  width: 100%;
}
.course-header-row {
    display: grid;
    grid-template-columns: 210px 1fr 80px 270px;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.825rem;
    background-color:#2f3e46;
    border-radius: 0.2rem;
    color: #fff;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.course-details,.infos {
    display: flex;
    gap: 0.5rem;
}
.course-details>*{
    flex: 0.4;
    text-align: center;
}

.course {
  background: #fff;
  border: none;
  display: grid;
  grid-template-columns: 210px 1fr 80px 270px;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  min-height: 120px;
  overflow: hidden;
}

.course img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course .info .title {
  font-size: 0.925rem;
  color: #424242;
  padding-left: 1rem;
}
.course .info .title h3 {
    font-size: 0.975rem;
    line-height: 1.6;
}
 a{
     text-decoration: none;
     color: #d1d5db;
 }
.course .price {
  background: #222;
  color: #d1d5db;
  border-radius: 0.2rem;
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
}

.course .action {
  background-color: #3d5aaa;
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 0.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background:#262d7888;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 1.5rem 2rem;
  width: 90%;
  max-width: 600px;
  border-radius: 0.6rem;
  position: relative;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
}

.modal-content input,
.modal-content textarea {
  width: 95%;
  padding: 0.8rem;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.modal-content button {
  width: 95%;
  background-color: black;
  color: white;
  padding: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: red;
}
@media (min-width:1800px) {
    .sidebar {
  width: 300px;
}
.main {
  max-width: 1600px;
}
.course-header-row {
    grid-template-columns: 250px 1fr 100px 300px;
}
.course {

  border: 1px solid #ccc;
  grid-template-columns: 250px 1fr 100px 300px;
  gap: 1rem;
  min-height: 180px;
}
}
/* Portrait mode (mobile vertical) */
@media screen and (max-width: 1050px) and (orientation: portrait) {
 .main {
  flex-direction: column;
  padding: 1rem;
}
.course .info .title h3 {
    font-size: 0.925rem;
}
  .sidebar {
  width: 870px;
  flex-direction: row;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 0.5rem 0;
  gap: 0.5rem;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge */      /* hides scrollbar in IE/Edge */
  }
  .country {
     background: transparent;           /* prevents buttons from shrinking */          /* space between buttons */
   padding: 0.5rem 1rem;
    white-space: nowrap;  
    border-radius: 0.3rem;/* prevents text from wrapping */
  }
  .sidebar::-webkit-scrollbar {
    display: none;                  /* hides scrollbar in Chrome/Safari */
  }
}
@media screen and (max-width: 1050px) and (orientation: landscape) {
    .main {
  flex-direction: column;
  padding: 1rem;
}
.course .info .title h3 {
    font-size: 0.925rem;
}
  .country {
     background: transparent;           /* prevents buttons from shrinking */          /* space between buttons */
   padding: 0.5rem 1rem;
    white-space: nowrap;  
    border-radius: 0.3rem;/* prevents text from wrapping */
  }
  .sidebar {
  width: 840px;
  flex-direction: row;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 0.5rem 0;
  gap: 0.5rem;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge */      /* hides scrollbar in IE/Edge */
  }

  .sidebar::-webkit-scrollbar {
    display: none;                  /* hides scrollbar in Chrome/Safari */
  }
}

@media  (max-width: 768px)  {
    .main {
  flex-direction: column;
  padding: 1.5rem;
}
  .sidebar {
  width: 750px;
  flex-direction: row;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 0.5rem 0;
  gap: 0.5rem;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge */      /* hides scrollbar in IE/Edge */
  }

  .sidebar::-webkit-scrollbar {
    display: none;                  /* hides scrollbar in Chrome/Safari */
  }
 .main {
    gap: 1rem;
}
  .country {
     background: transparent;           /* prevents buttons from shrinking */          /* space between buttons */
   padding: 0.5rem 1rem;
    white-space: nowrap;  
    border-radius: 0.3rem;/* prevents text from wrapping */
  }
  .course-header-row,
  .course {
    grid-template-columns: 160px 1fr 70px 270px;
    gap: 0.4rem;
  }

  .course img {
    width: 100%;
    margin-bottom: 10px;
  }

  .infos {
    flex-wrap: wrap;
  }
}
@media (max-width: 500px) {
    .course-header-row{
        display: none;
    }
    .sidebar {
  width: 350px;
  gap: 1rem;
    }
    .infos{
        padding: 1rem;
        justify-content: end
    }
    .course-lists {
        grid-template-columns: minmax(300px,1fr);
        place-items: center;
        gap: 1.5rem;
        width: 100%;
        padding: 0.9rem
    }
      .course {
    grid-template-columns:  1fr ;
    gap: 0.5rem;
    place-self: center;
    overflow: hidden;
        border-radius: 0.4rem;
  }
  .course img {
    width: 100%;
    aspect-ratio: 3 / 1.25;
  }

}
