.thumbnail {
  width: 500px;
  height: 200px;
  border-radius: 25px;
}

.thumbnail-row {                      
  align-items: center;
  margin-bottom: 8px;
  position: relative;
  justify-items: center;
}

.main-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 10px;
  justify-items: center;
  align-items: center;
  justify-content: center;
}

.main-info {
  justify-items: center;
  display: inline-block;
  position: center;
  width: 500px;
  /* background: rgba(202, 45, 81, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 32px 0 rgba(202, 45, 81, 0.1); */
  background: rgba(100, 246, 148, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px; /* Slightly reduced padding */
  box-shadow: 
    0 8px 32px 0 rgba(100, 246, 148, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-info:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px 0 rgba(100, 246, 148, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.main-title {
  color: white;
  text-align: center;
  font-size: 35px;
  font-weight: 1000;
  line-height: 1.4;
  margin-bottom: 15px;
  /*default theme*/
  text-shadow: 0 2px 4px rgba(255, 0, 212, 0.2);
  /*christmas theme*/
  /* text-shadow: 0 2px 4px rgb(255, 0, 0); */
}

.main-subtext{
  text-align: center;
  font-size: 20px;
  color: white;
  margin-bottom: 4px;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.main-grid {
  padding-top: 25px;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-between;
  justify-items: center;
  column-gap: 20px;
  row-gap: 40px;
  /* background-color: rgb(152, 251, 203); */
}

.acronym{
  color: white;
  font-weight: 1000;
  text-shadow: 0 2px 4px rgba(202, 45, 81, 0.4);
}



/* laptop 1440 ===================================================== */

@media (max-width: 1530px) {

  .thumbnail {
    width: 325px;
    height: 130px;
  }

  .main-info {
    width: 325px;
  }
}

/* laptop 1024 ===================================================== */

@media (max-width: 1024px) {

  .thumbnail {
    width: 250px;
    height: 100px;
  }

  .main-info {
    width: 250px;
  }

  
  .subject-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .subject-container .subject-image {
    order: -1;  /* Always show image first */
  }

  .subject-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .subject-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .subject-content .main-title,
  .subject-content .main-subtext {
    text-align: center;
  }
}

/* tablet 768 ===================================================== */

@media (max-width: 768px) {

  .thumbnail {
    width: 225px;
    height: 90px;
  }

  .main-info {
    width: 225px;
  }

  .main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* phone 676 ===================================================== */

@media (max-width: 676px) {

  .thumbnail {
    /* margin-top: 125px; */
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .main-grid {
    margin: 0;
    padding: 15px;
    grid-template-columns: 1fr;
  }

  .main-info {
    width: 100%;
    max-width: 400px;
  }

  .main-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .main-subtext {
    font-size: 16px;
    width: auto;
  }


}

/* laptop and large tablets */
@media (max-width: 1200px) {
  .thumbnail {
    width: 300px;
    height: 120px;
  }

  .main-info {
    width: 300px;
  }

  .main-title {
    font-size: 24px;
  }
}

/* tablets */
@media (max-width: 900px) {
  .thumbnail {
    width: 250px;
    height: 100px;
  }

  .main-info {
    width: 250px;
  }

  .main-subtext {
    font-size: 16px;
  }
}

/* Responsive breakpoints */
@media (max-width: 1530px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .thumbnail {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .main-info {
    width: 100%;
    max-width: 500px;
  }
}