/* 🌐 For screens smaller than 768px (Mobile view) */
@media (max-width: 768px) {
  /* Image responsive */
  section img {
    width: 100% !important;
    height: auto !important;
  }

  /* Paragraph responsive */
  section p {
    width: 100% !important;
    font-size: 0.95rem;
  }

  /* Grid layout responsive */
  section div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Padding adjust */
  section {
    padding: 2rem 5% !important;
  }

  /* Navbar links stack 
  nav div:last-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }*/

  nav a {
    display: block;
    text-align: center;
    margin: 8px 0 !important;
  }

  /* Headings smaller */
  h2 {
    font-size: 1.6rem !important;
  }

  h3 {
    font-size: 1rem !important;
  }

  /* Certificates cards */
  div[style*="box-shadow:0 4px 15px rgba(0,0,0,0.05)"] {
    padding: 15px !important;
  }
}

/* 🌐 Default hamburger hidden */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #dba8e2;
}

/* Mobile view styling */
@media (max-width: 768px) {

  nav {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 50px;
    border-radius: 8px;
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    color: #333;
    font-size: 16px;
  }

  /*.nav-links a:last-child {
    border-bottom: none;
  }*/

  /* Hide the Calm Companion button nav on mobile */
  nav[style*="margin-right"] {
    display: none !important;
  }
}


