/* ================================
   Responsive Overrides
   ================================ */

/* Tablets and below */
@media (max-width: 992px) {

  /* General container padding */
  .container {
    padding: 15px !important;
  }

  /* Header adjustments */
  header {
    flex-direction: column;
    text-align: center;
  }

  header nav {
    margin-top: 10px;
  }

  header nav a {
    display: inline-block;
    margin: 5px 10px;
  }

  /* Sidebar collapses on smaller screens */
  .container {
    flex-direction: column !important;
  }

  .sidebar {
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
  }

  .content {
    flex: 1;
    height: auto !important;
  }

  .content iframe {
    height: 400px !important; /* shorter frame */
  }

  /* Newsletter form stack */
  .newsletter form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .newsletter input {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
  }

  .newsletter button {
    width: 100%;
  }

  /* Buttons inside tool-box */
  .buttons {
    flex-direction: column;
  }

  .buttons button {
    width: 100%;
  }
}

/* Mobile phones */
@media (max-width: 576px) {

  /* Hero section text */
  .hero h1 {
    font-size: 1.8rem !important;
  }

  .hero p {
    font-size: 1rem !important;
  }

  /* Cards in tutorials / homepage */
  .cards, .tutorial-list, .features {
    grid-template-columns: 1fr !important;
  }

  .card, .feature-card {
    padding: 1rem !important;
  }

  /* Sidebar */
  .sidebar h2 {
    font-size: 16px !important;
  }

  /* Tutorial nav links */
  .nav-links {
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}
