/*
   Egyptian-Moroccan Business Council (EMBC)
   Responsive Stylesheet
*/

/* Tablets and smaller desktops */
@media (max-width: 992px) {
  /* Hero Section */
  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
  .about-content {
    flex-direction: column;
  }

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

  .header-container {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 1rem;
  }

  nav ul {
    justify-content: center;
  }

  nav ul li {
    margin: 0 0.75rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    height: 400px;
  }

  .hero-content {
    padding: 4rem 0;
  }
  .hero h1 {
    font-size: 2rem;
  }

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

  .section-title h2 {
    font-size: 1.75rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .language-selector {
    margin: 1rem 0 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* Hero Section */
  .hero {
    height: 350px;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .slider-controls {
    bottom: 10px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-arrow {
    font-size: 1rem;
    padding: 2px 6px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .news-grid,
  .members-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--primary-color);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none; /* Hide by default */
  }

  .nav-menu.active .close-menu {
    display: block; /* Show only when menu is active */
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
  }

  .overlay.active {
    display: block;
  }
}

