/* ====== Responsive Layouts ====== */

/* Breakpoint: max-width 900px */
@media screen and (max-width: 900px) {
  .responsive-iframe {
    height: 300px;
  }
}

/* Breakpoint: max-width 600px */
@media screen and (max-width: 600px) {
  /* Global adjustments */
  .cards {
    grid-template-columns: 1fr;
  }

  .responsive-iframe {
    height: 250px;
  }

  /* Hero section */
  .hero {
    height: 40vh;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2rem;
  }

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

  .hero-content .btn-primary,
  .hero-content .btn-secondary {
    width: 100%;
    margin-top: 10px;
  }

  /* Service cards */
  .service-card img {
    max-width: 240px;
    height: auto;
  }

  /* Team section */
  .team .cards {
    grid-template-columns: 1fr;
  }

  .team-card img {
    width: 100px;
    height: 100px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-card p {
    font-size: 1rem;
  }

  .testimonial-card span {
    font-size: 0.875rem;
  }

  /* Blog / Insights */
  .insights .cards {
    grid-template-columns: 1fr;
  }

  .blog-card h4 {
    font-size: 1.125rem;
  }

  .blog-card p {
    font-size: 0.95rem;
  }

  /* About section */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    max-width: 360px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-content {
    padding: 0 16px;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Breakpoint: max-width var(--breakpoint-md) */
@media screen and (max-width: var(--breakpoint-md)) {
  .card {
    flex: 1 1 calc(45% - 20px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Breakpoint: max-width var(--breakpoint-sm) */
@media screen and (max-width: var(--breakpoint-sm)) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .brand img {
    order: 1;
  }

  #nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff;
    flex-direction: column;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    border-radius: var(--border-radius);
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  #nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #nav-links a {
    color: var(--primary-color);
    padding: 10px;
    font-size: 1rem;
  }

  .card {
    flex: 1 1 100%;
  }
}

/* Breakpoint: min-width 1200px */
@media screen and (min-width: 1200px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card img {
    max-height: 320px;
  }

  .service-card img {
    max-width: 400px;
    height: 280px;
  }

  .service-card h4 {
    font-size: 1.5rem;
  }

  .service-card p {
    font-size: 1.125rem;
  }
}
/* ====== Mobile Navigation ====== */
@media screen and (max-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
  }

  #nav-links {
    position: absolute;
    top: 60px;
    right: 16px;
    background-color: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    border-radius: var(--border-radius);
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  #nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #nav-links a {
    padding: 10px 0;
    font-size: 1rem;
    color: var(--primary-color);
    display: block;
  }

  /* Ensure all cards stack vertically */
  .cards {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}
/* Space below the “View All Articles” button in blog section on homepage */
.blog.container .btn-primary {
  margin-top: 3rem;   /* you can adjust 3rem to your preferred spacing */
  margin-bottom: 3rem; /* ensures space before the footer */
}
