/* ===================================
   GLOBAL
=================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

::selection {
  background-color: black;
  color: white;
}

html {
  scroll-behavior: smooth;
}

#footer {
  cursor: auto;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* ===========================
   NAVBAR
=========================== */

.navbar {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);

  width: 92%;
  max-width: 1400px;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  padding: 18px 40px;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);

  z-index: 1000;

  transition: all 0.35s ease;
}

/* ===========================
   LOGO
=========================== */

.logo {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.logo a {
  text-decoration: none;
  color: #111;

  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 12px;

  transition: opacity 0.3s ease;
}

.logo a:hover {
  opacity: 0.7;
}

/* ===========================
   NAV LINKS
=========================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  position: relative;

  text-decoration: none;
  color: #111;

  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2.5px;

  padding: 10px;

  padding-left: 20px;
  padding-right: 20px;

  border-radius: 999px;

  transition: all 0.3s ease;
}

/* Active Page */

.nav-links a.active {
  background: #111;

  color: white;
}

/* Hover */

.nav-links a:hover {
  background: #111;

  color: white;

  transform: translateY(-2px);
}

/* ===========================
   MOBILE MENU BUTTON
=========================== */

.menu-toggle {
  display: none;

  background: none;
  border: none;

  font-size: 24px;

  cursor: pointer;
}

/* ===========================
   MOBILE
=========================== */

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 20px);
    max-width: 85dvw;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 20px;

    border-radius: 18px;
  }

  .logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;

    margin: 0;
  }

  .logo a {
    margin: 0;
    font-size: 22px;
    letter-spacing: 8px;
  }

  .menu-toggle {
    display: block;

    background: none;
    border: none;

    font-size: 22px;

    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    margin-top: -5px;

    top: calc(100% + 12px);
    left: 0;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 24px;

    padding: 28px 0;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 18px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);

    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0.35s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 13px;
  }
}

body {
  font-family: "Poppins", sans-serif;
  color: #111;
  background: #fff;
  overflow-x: hidden;
}

/* ===================================
   SHARED CONTAINER
=================================== */

.blog-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

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

.blog-hero {
  width: 100%;
  padding: 180px 0 80px;
}

.back-link {
  display: inline-block;
  margin-bottom: 50px;

  color: #666;
  text-decoration: none;

  font-size: 15px;
  font-weight: 400;

  transition: all 0.3s ease;
}

.back-link:hover {
  color: #111;
  transform: translateX(-4px);
}

.category {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;

  letter-spacing: 3mm;
  text-transform: uppercase;

  margin-bottom: 25px;
}

.blog-hero h1 {
  max-width: 1200px;

  font-family: "Poppins", sans-serif;
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 400;

  line-height: 1.05;
  letter-spacing: -2px;

  margin-bottom: 40px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;

  color: #666;

  font-size: 15px;
  font-weight: 300;
}

/* ===================================
   COVER IMAGE
=================================== */

.blog-cover {
  width: 90%;
  max-width: 1600px;

  margin: 0 auto 140px;
}

.blog-cover img {
  width: 100%;
  height: 750px;

  object-fit: cover;

  border-radius: 30px;
}

/* ===================================
   BLOG CONTENT
=================================== */

.blog-content {
  width: 100%;
  margin-bottom: 160px;
}

.blog-content .blog-container {
  max-width: 1100px;
}

.lead {
  font-size: 32px;
  font-weight: 300;

  color: #111;

  line-height: 1.8;

  margin-bottom: 80px;
}

.blog-content h2 {
  font-family: "Poppins", sans-serif;

  font-size: 52px;
  font-weight: 400;

  color: #111;

  margin: 100px 0 30px;
}

.blog-content p {
  font-family: "Poppins", sans-serif;

  font-size: 20px;
  font-weight: 300;

  color: #555;

  line-height: 2;

  margin-bottom: 30px;
}

blockquote {
  margin: 80px 0;

  padding-left: 40px;

  border-left: 4px solid #111;

  font-size: 34px;
  font-weight: 300;

  color: #111;

  line-height: 1.6;
}

.content-image {
  width: 100%;

  border-radius: 30px;

  margin: 80px 0;
}

/* ===================================
   RELATED ARTICLES
=================================== */

.related-posts {
  width: 90%;
  max-width: 1400px;

  margin: 0 auto 160px;
}

.heading {
  text-align: center;
  margin-bottom: 80px;
}

.heading .small-title {
  font-family: "Poppins", sans-serif;

  font-size: 14px;
  font-weight: 500;

  letter-spacing: 3mm;
  text-transform: uppercase;

  margin-bottom: 20px;
}

.heading h2 {
  font-family: "Poppins", sans-serif;

  font-size: 56px;
  font-weight: 400;

  line-height: 1.2;
}

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

.related-card {
  padding: 40px;

  border: 1px solid #e8e8e8;
  border-radius: 25px;

  transition: all 0.35s ease;

  background: white;
}

.related-card:hover {
  transform: translateY(-8px);

  border-color: #111;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.related-card h3 {
  font-family: "Poppins", sans-serif;

  font-size: 28px;
  font-weight: 400;

  line-height: 1.4;

  margin-bottom: 25px;
}

.related-card a {
  text-decoration: none;

  color: #111;

  font-size: 15px;
  font-weight: 500;

  transition: all 0.3s ease;
}

.related-card a:hover {
  opacity: 0.7;
}

/* ===================================
   FOOTER
=================================== */

footer {
  text-align: center;

  padding: 100px 20px;

  border-top: 1px solid #eee;
}

footer h3 {
  font-family: "Poppins", sans-serif;

  font-size: 32px;
  font-weight: 500;

  margin-bottom: 15px;
}

footer p {
  font-size: 16px;
  font-weight: 300;

  color: #666;

  margin-bottom: 20px;
}

footer small {
  color: #999;
  font-size: 14px;
}

/* ===================================
   TABLET
=================================== */

@media (max-width: 1024px) {
  .blog-cover img {
    height: 500px;
  }

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

  .blog-content h2 {
    font-size: 42px;
  }
}

/* ===================================
   MOBILE
=================================== */

@media (max-width: 768px) {
  .blog-hero {
    padding: 130px 0 60px;
  }

  .back-link {
    margin-bottom: 35px;
    font-size: 14px;
  }

  .category {
    font-size: 12px;
    letter-spacing: 2mm;
    margin-bottom: 20px;
  }

  .blog-hero h1 {
    font-size: 42px;
    line-height: 1.15;

    margin-bottom: 25px;
  }

  .blog-meta {
    gap: 10px;
    font-size: 13px;
  }

  .blog-cover {
    margin-bottom: 80px;
  }

  .blog-cover img {
    height: 260px;
    border-radius: 20px;
  }

  .blog-content {
    margin-bottom: 100px;
  }

  .blog-content .blog-container {
    width: 90%;
  }

  .lead {
    font-size: 22px;
    line-height: 1.8;

    margin-bottom: 50px;
  }

  .blog-content h2 {
    font-size: 30px;

    margin: 60px 0 20px;
  }

  .blog-content p {
    font-size: 15px;
    line-height: 1.9;
  }

  blockquote {
    font-size: 22px;

    padding-left: 20px;

    margin: 50px 0;
  }

  .content-image {
    margin: 50px 0;
    border-radius: 20px;
  }

  .related-posts {
    margin-bottom: 100px;
  }

  .heading {
    margin-bottom: 50px;
  }

  .heading .small-title {
    font-size: 12px;
    letter-spacing: 2mm;
  }

  .heading h2 {
    font-size: 36px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .related-card {
    padding: 30px;
  }

  .related-card h3 {
    font-size: 22px;
  }

  footer {
    padding: 80px 20px;
  }

  footer h3 {
    font-size: 26px;
  }

  footer p {
    font-size: 14px;
  }
}
