/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0f1117;
  color: white;
  overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 8%;

  background: rgba(15, 17, 23, 0.95);

  backdrop-filter: blur(10px);

  z-index: 1000;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 30px;
  font-weight: 800;
  color: #ff4d00;
}

.navbar nav {
  display: flex;
  gap: 28px;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #ff4d00;
}

/* SEARCH */

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  width: 240px;

  padding: 12px 18px;

  border: none;
  outline: none;

  border-radius: 50px 0 0 50px;

  background: #1b1f2b;
  color: white;
}

.search-box button {
  border: none;

  background: #ff4d00;
  color: white;

  padding: 12px 18px;

  cursor: pointer;

  border-radius: 0 50px 50px 0;
}

/* =========================
   PAGE HERO
========================= */

/* =========================
   NEWS HERO
========================= */

.page-hero {
  min-height: 100vh;

  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85)),
    url("/bugatti-tourbillon.webp");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;

  padding: 180px 8% 120px;

  position: relative;
}

.page-hero::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 850px;
}

.hero-tag {
  display: inline-block;

  background: #ff5a00;

  color: white;

  padding: 14px 30px;

  border-radius: 50px;

  font-size: 15px;

  font-weight: 700;

  margin-bottom: 30px;

  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: 92px;

  font-weight: 800;

  line-height: 1.05;

  margin-bottom: 30px;

  color: white;
}

.hero-content p {
  font-size: 24px;

  line-height: 1.8;

  color: #d6d6d6;

  max-width: 850px;
}

/* =========================
   RESPONSIVE HERO
========================= */

/* ====================================
   PAGE HERO
==================================== */

.page-hero {
  height: 80vh;

  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.8)),
    url("lastest-ototmotive.jpg");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;

  padding: 140px 8% 80px;

  position: relative;
}

.page-hero::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 750px;
}

.hero-tag {
  display: inline-block;

  background: #ff5a00;

  color: white;

  padding: 12px 26px;

  border-radius: 50px;

  font-size: 14px;

  font-weight: 700;

  margin-bottom: 25px;
}

.hero-content h1 {
  font-size: 64px;

  font-weight: 800;

  line-height: 1.1;

  margin-bottom: 25px;

  color: white;
}

.hero-content p {
  font-size: 20px;

  line-height: 1.8;

  color: #d6d6d6;

  max-width: 700px;
}

/* ====================================
   RESPONSIVE
==================================== */

@media (max-width: 992px) {
  .page-hero {
    height: 70vh;

    padding: 120px 8% 60px;
  }

  .hero-content h1 {
    font-size: 52px;
  }

  .hero-content p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: auto;

    padding: 140px 8% 80px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-tag {
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 15px;
  }
}

/* =========================
   FEATURED NEWS
========================= */

.featured-news {
  display: grid;
  grid-template-columns: 1.2fr 1fr;

  gap: 50px;

  padding: 100px 8%;
}

.featured-image img {
  width: 100%;
  height: 450px;

  object-fit: cover;

  border-radius: 25px;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content span {
  color: #ff4d00;
  font-weight: 600;
}

.featured-content h2 {
  font-size: 42px;
  margin: 20px 0;
  color: white;
  transition: 0.3s ease;
}

.featured-news:hover .featured-content h2 {
  color: #ff6b00;
}

.featured-content p {
  color: #cfcfcf;

  line-height: 1.8;

  margin-bottom: 25px;
}

.featured-content a {
  text-decoration: none;

  color: white;

  font-weight: 600;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  transition: all 0.3s ease;
}

.featured-content a:visited {
  color: white;
}

.featured-content a:hover {
  color: #ff5a0a;

  transform: translateX(8px);

  text-shadow: 0 0 12px rgba(255, 90, 10, 0.4);
}

/* =========================
   NEWS SECTION
========================= */

.news-container {
  display: grid;
  grid-template-columns: 3fr 1fr;

  gap: 40px;

  padding: 0 8% 100px;
}

.news-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 30px;
}

.news-card {
  background: #171b24;

  border-radius: 25px;

  overflow: hidden;

  transition: 0.3s;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(255, 90, 10, 0.2);
}

.news-card img {
  width: 100%;
  height: 240px;

  object-fit: cover;
}

.news-content {
  padding: 25px;
}

.news-content span {
  color: #ff4d00;
  font-size: 13px;
  font-weight: 600;
}

.news-content h3 {
  margin: 15px 0;
  font-size: 22px;
  transition: 0.3s ease;
}

.news-card:hover h3 {
  color: #ff5a0a;

  transform: translateX(5px);
}

.news-content p {
  color: #bcbcbc;
  line-height: 1.7;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.news-card:hover .news-content p {
  color: #e2e8f0;

  transform: translateX(3px);
}

.news-content a {
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  color: white;
}

.news-card:hover a {
  color: #ff5a0a;

  transform: translateX(6px);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  background: #171b24;

  padding: 30px;

  border-radius: 25px;

  height: fit-content;

  position: sticky;
  top: 120px;
}

.sidebar h3 {
  margin-bottom: 25px;

  font-size: 24px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 18px;
}

.sidebar a {
  text-decoration: none;
  color: #d6d6d6;
  transition: 0.3s ease;
}

.sidebar a:hover {
  color: #ff4d00;
  padding-left: 10px;
}

/* =========================
   NEWSLETTER
========================= */

.newsletter {
  text-align: center;

  padding: 100px 8%;

  background: #171b24;
}

.newsletter h2 {
  font-size: 42px;
  margin-bottom: 15px;
}

.newsletter p {
  color: #bcbcbc;
  margin-bottom: 30px;
}

.newsletter form {
  display: flex;
  justify-content: center;
}

.newsletter input {
  width: 400px;

  padding: 15px 20px;

  border: none;
  outline: none;

  border-radius: 50px 0 0 50px;
}

.newsletter button {
  border: none;

  background: #ff4d00;

  color: white;

  padding: 15px 25px;

  cursor: pointer;

  border-radius: 0 50px 50px 0;
}

/* =========================
   FOOTER
========================= */

footer {
  background: #0b0d13;

  text-align: center;

  padding: 60px 8% 30px;
}

.footer-content h2 {
  color: #ff4d00;

  margin-bottom: 15px;
}

.footer-content p {
  color: #a0a0a0;
}

.footer-bottom {
  margin-top: 30px;

  color: #777;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
  .featured-news,
  .news-container {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 45px;
  }
}

@media (max-width: 768px) {
  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .newsletter form {
    flex-direction: column;
    gap: 15px;
  }

  .newsletter input,
  .newsletter button {
    width: 100%;
    border-radius: 50px;
  }

  .hero-content h1 {
    font-size: 36px;
  }
}

/* =========================
   HYPERDRIVE SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0b1220;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5a0a, #ff7a3d);

  border-radius: 20px;

  border: 2px solid #0b1220;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff7a3d, #ff9b66);
}
