@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

.logo-text {
  font-family: 'Pacifico', cursive;
  color: black;
  font-size: 28px;
  font-weight: bold;
}
.logo-text .highlight {
  color: crimson;
  font-size: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all .2s linear;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #f7f7f7;
  font-family: 'Poppins', sans-serif;
}
*::selection {
  background: #2b3dda;
  color: #fff;
}
html::-webkit-scrollbar { width: .8rem; }
html::-webkit-scrollbar-track { background: rgb(235, 202, 245); }
html::-webkit-scrollbar-thumb { background: #420177; }

/* ── navbar ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146,161,176,.3);
}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: rgb(20, 20, 20);
  font-weight: 800;
  text-align: center;
}
.heading span { color: rgb(115, 3, 167); }

header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0E2431;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#meta3d {
  width: 54px;
  height: 23px;
  flex-shrink: 0;
}
header .logo:hover { color: #0f46a2; }

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li { margin-left: 2.5rem; }
header .navbar ul li a {
  font-size: 1.57rem;
  color: #0E2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #011aff;
  border-bottom: .2rem solid #011aff;
  padding: .5rem 0;
}

/* hamburger */
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}
@media(max-width:768px){
  #menu { display: block; }
  header .navbar {
    position: fixed;
    top: 6.5rem; right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
  }
  header .navbar ul { flex-flow: column; padding: 1rem; }
  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: .5rem;
    width: 26rem;
  }
  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: .5rem;
    border-bottom: .5rem solid #011aff;
  }
  .fa-times { transform: rotate(180deg); }
  header .navbar.nav-toggle { right: 0; }
}

/* ── blog section ── */
.blog {
  margin-top: 5rem;
  padding-bottom: 4rem;
}
.blog .quote {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: #555;
  font-style: italic;
  text-transform: none;
}

/* filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}
.filter-tabs .tab {
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  border-radius: 3rem;
  cursor: pointer;
  background: #fff;
  color: #0E2431;
  border: 2px solid #ddd;
  text-transform: capitalize;
  transition: all 0.2s ease;
}
.filter-tabs .tab:hover,
.filter-tabs .tab.active {
  background: #0f46a2;
  color: #fff;
  border-color: #0f46a2;
  box-shadow: 0 4px 14px rgba(15,70,162,0.35);
}

/* cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.8rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

/* individual card */
.card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15,70,162,0.18);
}

/* top accent bar */
.card-accent {
  height: 5px;
  border-radius: 1rem 1rem 0 0;
}
.card-accent.ml     { background: linear-gradient(90deg, #0f46a2, #5BA8FF); }
.card-accent.nlp    { background: linear-gradient(90deg, #420177, #b44aff); }
.card-accent.ds     { background: linear-gradient(90deg, #007a5e, #00e5b0); }
.card-accent.cloud  { background: linear-gradient(90deg, #d97706, #fbbf24); }
.card-accent.career { background: linear-gradient(90deg, crimson, #ff7096); }
.card-accent.dist   { background: linear-gradient(90deg, #0d6e4e, #10b981); }

.card-body {
  padding: 2.2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* category tag */
.card-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 1.2rem;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.card-tag.ml     { background: #e8f0ff; color: #0f46a2; }
.card-tag.nlp    { background: #f3e8ff; color: #6d02cc; }
.card-tag.ds     { background: #e6fff8; color: #007a5e; }
.card-tag.cloud  { background: #fff8e1; color: #b45309; }
.card-tag.career { background: #fff0f3; color: crimson; }
.card-tag.dist   { background: #e6fff6; color: #0d6e4e; }

.card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0E2431;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-transform: none;
}

.card-meta {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 1.2rem;
  text-transform: none;
}
.card-meta i { color: #0f46a2; margin-right: 0.3rem; }

.card-excerpt {
  font-size: 1.35rem;
  color: #444;
  line-height: 1.7;
  flex: 1;
  text-transform: none;
  margin-bottom: 2rem;
}

/* read more button */
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: flex-start;
  padding: 0.9rem 2rem;
  background: #0f46a2;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-transform: capitalize;
  transition: background 0.2s, transform 0.2s;
}
.card-btn:hover {
  background: #082e7a;
  transform: translateX(3px);
}
.card-btn i { font-size: 1.2rem; transition: transform 0.2s; }
.card-btn:hover i { transform: translateX(4px); }

/* no results */
.no-results {
  text-align: center;
  padding: 4rem;
  color: #aaa;
}
.no-results i { font-size: 4rem; margin-bottom: 1.5rem; display: block; }
.no-results p { font-size: 1.6rem; text-transform: none; }

/* back button */
.morebtn {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: .5em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, .6);
  text-align: center;
}
.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'Nunito', sans-serif;
}
.morebtn .btn i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.morebtn .btn:hover { background: #1a047e; }
.morebtn .btn:hover i { transform: translateX(-8px); }

/* responsive grid */
@media(max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; gap: 2rem; }
  .filter-tabs .tab { font-size: 1.3rem; padding: 0.7rem 1.5rem; }
}

/* ── footer ── */
.footer {
  min-height: auto;
  padding-top: 0;
  background: rgb(0, 1, 43);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: .7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #421cecf5;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: .3rem 0;
  display: block;
}
.footer .box-container .box a:hover { color: #421cecf5; }
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: .2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: .1rem solid rgb(180, 178, 178);
  color: #421cecf5;
}
.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: .1rem solid #fff3;
}
.footer .credit a { color: #421cecf5; }
.footer .fa {
  color: #E90606;
  margin: 0 .3rem;
  font-size: 1.5rem;
  animation: pound .35s infinite alternate;
}
@keyframes pound { to { transform: scale(1.1); } }

@media(max-width:450px){
  html { font-size: 55%; }
  body { padding-right: 0; }
  section { padding: 2rem; }
  .footer .box-container .box { margin: 2rem; }
  .footer .box-container .box p { padding: 0.7rem; }
  .footer .box-container .box .share a { padding: 1.1rem; }
}

/* ── scroll top ── */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #421cecf5;
  color: rgb(245, 244, 246);
  border-radius: 5rem;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active { top: calc(100% - 12rem); }
