.courses-area{
    width: 100%;
    height: auto;
    margin: auto;
    padding: 60px 0px;
    background: #eef5f8;

    }

.articles{
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 24px;
    align-items: center;
    justify-content: center;
}

article {
  --img-scale: 1.001;
  --title-color: black;
  --link-icon-translate: -20px;
  --link-icon-opacity: 0;
  position: relative;
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  height: 430px;
}

article a::after {
  /* position: absolute;
  inset-block: 0;
  inset-inline: 0; */
  cursor: pointer;
  content: "";
}

/* basic article elements styling */
article h2 {
  margin: 0 0 18px 0;
  font-family: "Montserrat";
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: var(--title-color);
  transition: color 0.3s ease-out;
}
article h5{
    font-family: "Montserrat";
}

figure {
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

article img {
  max-width: 100%;
  transform-origin: center;
  transform: scale(var(--img-scale));
  transition: transform 0.4s ease-in-out;
}

.article-body {
  padding: 24px;
}

article a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #28666e;
}

article a:focus {
  outline: 1px dotted #28666e;
}

article a .icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  transform: translateX(var(--link-icon-translate));
  opacity: var(--link-icon-opacity);
  transition: all 0.3s;
}

/* using the has() relational pseudo selector to update our custom properties */
article:has(:hover, :focus) {
  --img-scale: 1.1;
  --title-color: #28666e;
  --link-icon-translate: 0;
  --link-icon-opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}


/************************ 
Generic layout (demo looks)
**************************/

*,
*::before,
*::after {
  box-sizing: border-box;
}



/* Mobile styles */
@media (max-width: 768px) {
    .articles{
        width: 100%;
        height: auto;
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 24px;
        display: grid;
        grid-template-columns: repeat(1, auto);
        grid-gap: 24px;
        align-items: center;
        justify-content: center;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1080px) {
    .articles{
        width: 100%;
        height: auto;
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 24px;
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-gap: 24px;
        align-items: center;
        justify-content: center;
    }
}
    
/* 
  article {
    container: card/inline-size;
  }
  .article-body p {
    display: none;
  } */


@container card (min-width: 380px) {
  .article-wrapper {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }
  .article-body {
    padding-left: 0;
  }
  figure {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  figure img {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0); 
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap; 
  width: 1px;
}


/* =========== QUERY FORM POPUP CSS ========== */
.query-popup{
  width: 420px;
  height: auto;
  background-color: #fff;
  border-radius: 6px;
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  text-align: center;
  padding: 0 30px 30px;
  color: #333;
  visibility: hidden;
  transition: transform 0.4s, top 0.4s;
  z-index: 9999;
}
.query-popup form{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}
.query-popup form .input{
  width: 100%;
  padding: 10px 20px;
  border: 1px solid #eeeeee;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.query-popup form label{
  width: 100%;
}
.query-popup form textarea{
  width: 100%;
  outline: none;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.query-popup form input:focus{
  outline: none;
  transition: transform 0.4s, top 0.4s;
}


.open-query-popup{
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
}

.query-popup h2{
  font-size: 38px;
  font-weight: 500;
  margin: 30px 0 10px;
}
.query-popup button{
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
  background-color: #007bff;
  color: #fff;
  border: 0;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  position: relative;
}
.query-popup .closeTimes{
  color:#333;
  font-size: 45px;
  position: absolute;
  top: -10px; right: 10px;
  cursor: pointer;

}
/* =========== QUERY FORM POPUP CSS ========== */
