* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}
body {
  font-family: poppins;
  font-size: 16px;
}
nav {
  height: 100px;
  width: 100%;
  /* background: #34495e; */
  background: white;
  /* z-index: 999; */
}
nav ul {
  float: right;
  margin-right: 40px;
}
nav li {
  display: inline-block;
  margin: 0 8px;
  line-height: 80px;
}
.logo {
  padding-top: 10px;
}
nav a {
  color: #555;
  /* font-size: 18px; */
  text-transform: uppercase;
  border: 1px solid transparent;
  padding: 7px 10px;
  border-radius: 3px;
}
a.active,
a:hover {
  border: 1px solid white;
  transition: 0.5s;
  background: white;
}
nav #icon {
  color: #333;
  font-size: 30px;
  line-height: 80px;
  float: right;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}
@media (max-width: 1048px) {
  /* .logo {
    padding-left: 60px;
  } */
  nav ul {
    margin-right: 20px;
  }
  nav a {
    font-size: 17px;
  }
}
@media (max-width: 909px) {
  nav #icon {
    display: block;
  }
  nav ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #2f3640;
    top: 80px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }
  nav a {
    font-size: 20px;
  }
  a.active,
  a:hover {
    border: none;
    color: #3498db;
  }
  nav ul.show {
    left: 0;
  }
}

@media (max-width: 768px) {
  nav #icon {
    display: block;
  }
  nav ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
    top: 80px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }
  nav li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }
  nav a {
    font-size: 20px;
  }
  a.active,
  a:hover {
    border: none;
    color: #3498db;
  }
  nav ul.show {
    left: 0;
    z-index: 999;
  }
}

/* KNOWLEDGE HUB */

.knowledge-hub {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #333;
}

/* HERO */

.kh-hero {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 55px 25px;
  border-radius: 16px;
  background: linear-gradient(135deg, #082d59, #135b91, #167a91);
  color: white;
}

.kh-hero-content {
  max-width: 750px;
}

.kh-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: #ffc15a;
  font-weight: 700;
  margin-bottom: 15px;
}

.kh-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
  line-height: 1.2;
}

.kh-hero p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.kh-button {
  display: inline-block;
  background: #ff9900;
  color: #fff;
  text-decoration: none;
  padding: 13px 25px;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s ease;
}

.kh-button:hover {
  background: #e88900;
  transform: translateY(-2px);
}

/* INTRODUCTION */

.kh-intro {
  max-width: 850px;
  margin: 55px auto;
  text-align: center;
}

.kh-intro h2,
.kh-search-area h2 {
  color: #104b78;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.kh-intro p {
  line-height: 1.9;
  color: #555;
  font-size: 1rem;
}

/* SEARCH */

.kh-search-area {
  text-align: center;
  margin: 50px 0 30px;
}

.kh-search-area p {
  color: #666;
  margin-bottom: 20px;
}

.kh-search-area input {
  width: 100%;
  max-width: 550px;
  padding: 14px 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.kh-search-area input:focus {
  border-color: #135b91;
  box-shadow: 0 0 0 3px rgba(19, 91, 145, 0.12);
}

/* SESSION GRID */

.kh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin: 30px auto 55px;
}

.kh-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.kh-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.kh-card-top {
  background: #edf5fb;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kh-category {
  background: #dcecf8;
  color: #104b78;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.kh-icon {
  font-size: 1.8rem;
}

.kh-card-content {
  padding: 22px;
}

.kh-date {
  color: #e18a00;
  font-size: 0.8rem;
  font-weight: 600;
}

.kh-card h3 {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #104b78;
  margin: 12px 0;
}

.kh-card-content > p {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.7;
  min-height: 90px;
}

.kh-speaker {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eee;
  padding-top: 18px;
  margin-top: 15px;
}

.kh-speaker > span {
  font-size: 1.5rem;
}

.kh-speaker small,
.kh-speaker strong {
  display: block;
}

.kh-speaker small {
  color: #888;
  margin-bottom: 4px;
}

.kh-speaker strong {
  color: #333;
  font-size: 0.9rem;
}

.kh-resource {
  display: inline-block;
  margin-top: 20px;
  color: #135b91;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.kh-resource:hover {
  color: #ff9900;
}

.kh-no-results {
  text-align: center;
  color: #777;
  padding: 20px;
}

/* CALL TO ACTION */

.kh-cta {
  background: #edf5fb;
  border-radius: 14px;
  text-align: center;
  padding: 45px 25px;
  margin: 50px 0 20px;
}

.kh-cta h2 {
  color: #104b78;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.kh-cta p {
  max-width: 700px;
  margin: 0 auto 25px;
  line-height: 1.8;
  color: #555;
}

/* TABLETS */

@media (max-width: 900px) {
  .kh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .kh-hero {
    min-height: 320px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .knowledge-hub {
    width: 92%;
    margin: 25px auto;
  }

  .kh-hero {
    min-height: 300px;
    padding: 40px 18px;
    border-radius: 10px;
  }

  .kh-hero h1 {
    font-size: 2rem;
  }

  .kh-hero p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .kh-intro {
    margin: 35px auto;
  }

  .kh-intro h2,
  .kh-search-area h2 {
    font-size: 1.45rem;
  }

  .kh-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kh-card-content > p {
    min-height: auto;
  }

  .kh-cta {
    padding: 35px 18px;
  }

  .kh-cta h2 {
    font-size: 1.5rem;
  }
}

/* footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  background-color: #000;
  padding: 60px 0;
  line-height: 2rem;
}
footer p {
  color: lightgray;
  font-size: 14px;
}
.social {
  font-size: 2rem;
}

@media (max-width: 700px) {
  footer p {
    font-size: 12px;
  }
}

img {
  vertical-align: middle;
}

footer a {
  text-decoration: none;
  color: #fff;
  margin: 10px;
}
footer li i {
  color: #f5f5f5;
}
