.temdeg-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
body{
    text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}
#temdeg-container{
    width: 1000px;
    margin: auto;
}
.temdeg-row-desktop {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.temdeg-group {
    display: flex;
    flex-direction: column;
    grid-column: span 2; /* 🔥 group = 2 column */
}
.temdeg-group {
    display: block;        /* 🔥 group block */
    grid-column: span 2;   /* 🔥 нэг group = 2 cell */
}
.temdeg-group {
    display: flex;
    flex-direction: column;   /* 🔥 дээр доор байрлана */
    justify-content: space-between;
    height: 100%;             /* row өндөртэй адил */
}
.temdeg-group img {
    width: 100%;
    height: 48px;        /* 🔥 100px-ийн тал орчим */
    object-fit: contain;
}

.temdeg-item {
    width: 100%;
}

.temdeg-item img {
    width: 100%;
    max-height: 100px;   /* 🔥 гол шийдэл */
    height: 80px;
    object-fit: contain; /* 🔥 шахахгүй */
}
.temdeg-group img {
    width: 100%;
    height: 48px;
    object-fit: contain;
}
/* Хэрвээ group дотор бас адилхан */
/* 🔥 BACKDROP */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5); /* хар background */

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

/* 🔥 CONTENT BOX */
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;

    width: 90%;
    max-width: 400px;

    text-align: center;
    position: relative;

    animation: fadeIn 0.3s ease;
}

/* 🔥 IMAGE */
#modal-img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* 🔥 TITLE */
#modal-title {
    margin: 10px 0 5px;
    font-size: 18px;
}

/* 🔥 DESCRIPTION */
#modal-tailbar {
    font-size: 14px;
    color: #555;
}

/* 🔥 CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

/* 🔥 HEADER */
.modal-header {
    width: 100%;
    text-align: right;
}
.gg6 .group-label{
    display: none;
}
.bosoo1 img{
    height: 120px;
}
.bosoo2 img{
    height: 150px;
    max-height: 150px;
}
/* 🔥 ANIMATION */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* MOBILE */
.temdeg-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.gg2 img{
    height: 140px;
    max-height: 140px;
}
.gg3 img{
    height: 40px;
    width: 100%;
}
.gg4 img{
    height: 140px;
    max-height: 140px;
}
/* DESKTOP */
.temdeg-row-desktop {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 🔥 desktop илүү өргөн */
    gap: 12px;
}
.left-section {

    align-items: center;

    background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 1px 1px;
  border-radius: 16px;
  margin: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  #temdeg-title{
    color: white;
    font-size: 20px;
  }


  @media (max-width: 600px) {
    #temdeg-title{
        font-size: 18px;
      }
  }
.close-btn {
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: red;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
/* hover */
.close-btn:hover {
    background: #f0f0f0;
  }
  .temdeg-item:hover{
    cursor: pointer;
  }
  
.row-label {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    margin-top: 0px;
  }
  .group-label {
    text-align: center;
    font-size: 11px;
    margin-top: 4px;
    font-weight: bold;
}
@media (max-width: 899px) {
    #temdeg-container{
        width: 100%;
    }
    .temdeg-item img {
      width: 80%;
    }

    .temdeg-item {
        width: 95%;

      }
      p{
        margin: 0; 
        font-size: 10px;
        font-family: Arial, Helvetica, sans-serif;
      }
  }