/* =========================================================
   BASE
========================================================= */

.med-page{
  --ink:#1A1D29;
  --slate:#646B7D;
  --line:#E7EAF1;
  --bg:#ffffff;
  --soft:#F5F7FB;

  --plum:#6A4C93;
  --plum-soft:#F3EEF9;

  --accent:#F7941D;

  font-family:'Inter',sans-serif;
  color:var(--ink);
  background:#fff;
}

.med-page *{
  box-sizing:border-box;
}

.med-page a{
  text-decoration:none;
}

.med-container{
  max-width:1280px;
  margin:auto;
  padding-left:24px;
  padding-right:24px;
}


/* =========================================================
   HERO
========================================================= */

.med-hero{
  padding:90px 0 70px;
  background:linear-gradient(135deg,#FAF7FD 0%,#fff 50%,#FFF7EE 100%);
  border-bottom:1px solid var(--line);
}

.med-hero__inner{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:60px;
  align-items:end;
}

.med-eyebrow{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  letter-spacing:3px;
  font-weight:700;
  color:var(--plum);
  margin-bottom:24px;
}

.med-eyebrow__line{
  width:38px;
  height:1px;
  background:var(--plum);
}

.med-hero__title{
  font-size:78px;
  line-height:1;
  font-weight:800;
  letter-spacing:-3px;
  margin:0;
}

.med-plum{
  color:var(--plum);
}

.med-accent{
  color:var(--accent);
}

.med-hero__desc{
  font-size:18px;
  line-height:1.7;
  color:var(--slate);
  margin:0;
}


/* =========================================================
   TABS
========================================================= */

.med-tabs-wrap{
  border-bottom:1px solid var(--line);
  background:#fff;
}

.med-tabs{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  padding:10px 0;
}

.med-tab{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border-radius:14px;
  color:var(--ink);
  font-weight:700;
  background:#fff;
  border:1px solid transparent;
  transition:.2s;
}

.med-tab:hover{
  background:var(--soft);
}

.med-tab--active{
  background:var(--plum-soft);
  border-color:#D9CCE9;
  color:var(--plum);
}

.med-tab__count{
  font-size:12px;
  opacity:.7;
}


/* =========================================================
   TAGS
========================================================= */

.med-tags-wrap{
  border-bottom:1px solid var(--line);
  background:#fff;
}

.med-tags{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  padding:10px 0;
}

.med-tags__label{
  font-size:11px;
  letter-spacing:2px;
  font-weight:700;
  color:#8B92A7;
}

.med-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--ink);
  font-size:12px;
  font-weight:600;
}

.med-tag:hover{
  background:var(--soft);
}

.med-tag--active{
  background:var(--ink);
  color:#fff !important;
  border-color:var(--ink);
}


/* =========================================================
   FEATURED
========================================================= */

.med-featured-sec{
  padding:60px 0 20px;
}

.med-featured{
  display:grid;
  grid-template-columns:1fr 1fr;
  overflow:hidden;
  border-radius:24px;
  border:1px solid var(--line);
  background:#fff;
}

.med-featured__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  min-height:500px;
}

.med-featured__content{
  padding:50px;
  display:flex;
  flex-direction:column;
}

.med-meta{
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  color:#7A8194;
  margin-bottom:20px;
}

.med-featured__title{
  font-size:44px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-1.5px;
  margin:0 0 20px;
}

.med-featured__desc{
  font-size:16px;
  line-height:1.7;
  color:var(--slate);
}

.med-featured__footer{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.med-author{
  display:flex;
  align-items:center;
  gap:12px;
}

.med-author__avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--plum);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
}

.med-author__name{
  font-size:14px;
  font-weight:700;
}

.med-author__role{
  font-size:13px;
  color:var(--slate);
}

.med-readmore{
  color:var(--plum);
  font-weight:700;
}


/* =========================================================
   GRID
========================================================= */

.med-grid-sec{
  padding:30px 0 90px;
}

.med-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.med-card{
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  transition:.25s;
}

.med-card:hover{
  transform:translateY(-4px);
}

.med-card__image img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}

.med-card__content{
  padding:24px;
}

.med-card__title{
  font-size:24px;
  line-height:1.2;
  font-weight:800;
  margin:0 0 14px;
  letter-spacing:-.5px;
}

.med-card__desc{
  font-size:14px;
  line-height:1.7;
  color:var(--slate);
  margin-bottom:20px;
}

.med-card__footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.med-card__author{
  font-size:13px;
  color:var(--slate);
}

.med-card__link{
  color:var(--plum);
  font-weight:700;
}


/* =========================================================
   NEWSLETTER
========================================================= */

.med-newsletter{
  padding:80px 0;
  background:#11141E;
}

.med-newsletter__box{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.med-newsletter__title{
  color:#fff;
  font-size:42px;
  line-height:1.1;
  font-weight:800;
  margin:0 0 14px;
}

.med-newsletter__desc{
  color:#B5BBCB;
  font-size:16px;
  line-height:1.7;
  margin:0;
}

.med-newsletter__form{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.med-newsletter__input{
  flex:1;
  min-width:240px;
  height:56px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:0 18px;
  font-size:15px;
}

.med-newsletter__input:focus{
  outline:none;
  border-color:var(--accent);
}

.med-newsletter__btn{
  height:56px;
  padding:0 24px;
  border:none;
  border-radius:12px;
  background:var(--accent);
  color:#111;
  font-weight:700;
  cursor:pointer;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1100px){

  .med-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .med-featured{
    grid-template-columns:1fr;
  }

  .med-featured__image img{
    min-height:320px;
  }

}

@media(max-width:767px){

  .med-hero{
    padding:70px 0 50px;
  }

  .med-hero__inner{
    grid-template-columns:1fr;
    gap:30px;
  }

  .med-hero__title{
    font-size:48px;
    letter-spacing:-2px;
  }

  .med-featured__content{
    padding:28px;
  }

  .med-featured__title{
    font-size:32px;
  }

  .med-grid{
    grid-template-columns:1fr;
  }

  .med-newsletter__box{
    grid-template-columns:1fr;
  }

  .med-newsletter__title{
    font-size:32px;
  }

  .med-tabs{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:10px;
  }

  .med-tab{
    white-space:nowrap;
  }

}