/* START OF SECTION: PAGE LAYOUT */
.news-page {
  padding: 80px 0 75px;
  background: #020617;
  color: #f9fafb;
}

.news-page .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
/* END OF SECTION: PAGE LAYOUT */

/* START OF SECTION: HEADER */
.news-title{
  font-family: "Exo 2", sans-serif;
  
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.news-intro{
  max-width: 720px;
  color: #9ea4b5;
  
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 40px;
}
/* END OF SECTION: HEADER */

/* START OF SECTION: NEWS GRID */
.news-grid{
  display: grid;
  
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 2rem;
}

.news-item{
  position: relative;
  background: #071022;
  border-radius: 3px;
  border: 1px solid rgba(70,110,255,.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px rgba(0,0,0,.55);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}


.news-item:hover{
  transform: translateY(-6px) scale(1.02);
  border-color: #5b7cff;
  box-shadow: 0 25px 55px rgba(0,0,0,.75);
}


.news-item::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 18% 12%,
              rgba(100,140,255,.35),
              transparent 60%);
  opacity:0;
  transition: opacity .3s ease;
  pointer-events:none;
}

.news-item::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0);
  transition: background .25s ease;
  pointer-events:none;
}

.news-item:hover::before{
  opacity:1;
}

.news-item:hover::after{
  background: rgba(0,0,0,.25);
}


.news-image{
  position: relative;
  overflow:hidden;
}

.news-image img{
  width:100%;
  height:240px; 
  object-fit:cover;
  display:block;
  transform: scale(1);
  transition: transform .35s ease-out;
}

.news-item:hover .news-image img{
  transform: scale(1.15);
}

.news-content{
  padding: 1.25rem 1.4rem 1.5rem; 
}

.news-content h2{
  font-size: 1.05rem;
  margin-bottom: .6rem;
  line-height: 1.4;
  transition: color .2s ease;
}

.news-content p{
  font-size: .88rem;
  color:#9da5b3;
  line-height:1.5;
}


.news-item:hover .news-content h2{
  color: #8cb5ff;
}
/* END OF SECTION: NEWS GRID */

/* START OF SECTION: MEDIA QUERIES */
@media (max-width: 1020px){
  .news-grid{
    grid-template-columns: repeat(3,1fr);
    gap: 1.4rem;
  }
  .news-image img{
    height: 210px;
  }
}

@media (max-width: 780px){
  .news-grid{
    grid-template-columns: repeat(2,1fr);
  }
  .news-image img{
    height: 200px;
  }
}

@media (max-width: 520px){
  .news-grid{
    grid-template-columns: 1fr;
  }
  .news-image img{
    height: 220px;
  }
}
/* END OF SECTION: MEDIA QUERIES */


