/* === MOBILE FIRST APPROACH === */
/* Max-width: 767px — Mobile devices */
@media (max-width: 767px) {
  .container {
    padding: 0 12px;
  }

  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  header .left {
    display: flex;
    align-items: center;
  }

  header .right {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  /* Hide search on mobile */
  header .right input,
  header .right button.search-btn {
    display: none;
  }

  header .right img {
    margin-left: 0;
    height: 40px;
    width: 40px;
    object-fit: cover;
  }

  /* Hamburger Icon */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    padding-left: 0;
    z-index: 100;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--orange-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Navigation */
  /* Slide-in Navigation */
  nav .topmenu {
    position: fixed;
    top: 60px; /* adjust if your header is taller */
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: var(--ele-blue);
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  }

  nav .topmenu.active {
    right: 0;
  }

  nav .topmenu-link {
    font-size: 1.25rem;
    padding: 8px 0;
  }

  .banner {
    height: 300px;
  }

  .banner .overlay .container h1 {
    font-size: 2.5rem;
  }

  .banner .overlay .container p {
    font-size: 1rem;
  }

  .stats-grid,
  .features-grid,
  .explore-grid,
  .rig-grid,
  .events-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .features,
  .explore {
    flex-direction: row;
    align-items: center;
    padding: 0 12px;
  }

  .blog-box {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .new-post-box,
  .blog-card {
    width: 100%;
    flex-direction: column;
  }

  .post-box-avatar {
    margin-bottom: 12px;
  }

  .top-box .page-title h1 {
    font-size: 1.5rem;
  }

  .right-sidebar {
    width: 100%;
  }

  .catch-box,
  .ai-rig-box {
    margin: 2rem auto;
    padding: 1rem;
  }

  .catch-box .bottom .form-weight-and-bait {
    grid-template-columns: 1fr;
  }

  .cat-box .left .forum-title {
    font-size: unset;
  }

  .cat-box .forum-tagline {
    display: none;
  }

  .topic-item .topic-stats,
  .topic-item .topic-user,
  .topics_box .header-stats,
  .topics_box .header-lastpost {
    display: none;
  }
}

/* === TABLET VIEW === */
/* Min-width: 768px and max-width: 1024px — Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  header .right input {
    width: 100%;
    max-width: 400px;
  }

  .banner {
    height: 400px;
  }

  .banner .overlay .container h1 {
    font-size: 3.5rem;
  }

  .stats-grid,
  .features-grid,
  .explore-grid,
  .rig-grid,
  .events-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .new-post-box,
  .blog-card {
    width: 100%;
  }

  .catch-box .bottom .form-weight-and-bait {
    grid-template-columns: 1fr 1fr;
  }

  .hamburger {
    display: none;
  }

  nav .topmenu {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 8px 0;
  }
}

/* === SMALL LAPTOPS === */
/* Max-width: 1200px */
@media (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }

  header .right input {
    width: 350px;
  }

  .blog-card,
  .new-post-box {
    width: 100%;
  }

  .stats-grid,
  .features-grid,
  .explore-grid,
  .rig-grid,
  .events-grid,
  .reviews-grid {
    gap: 1rem;
  }
}

/* === LARGER THAN LAPTOPS === */
@media (min-width: 1201px) {
  header .left .hamburger {
    display: none;
  }
}
