/* Responsive Styles for Hive Pakistan */

/* Base responsive adjustments for all screen sizes */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Mobile touch improvements */
.menu-item, .leader-card, .rule-card {
  -webkit-tap-highlight-color: transparent;
}

/* Add smooth transitions for all devices */
.menu-item, .content-container, .menu-btn, .join-button {
  transition: all 0.3s ease;
}

/* Content overlay for better readability with background images */
.content-overlay {
  position: relative;
  z-index: 5;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Larger Mobile devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
  /* Menu Navigation */
  .menu-nav {
    height: auto;
    padding: 10px 0;
  }
  
  .menu-nav .container {
    padding: 0 10px;
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 10px;
  }
  
  .logo h1 {
    font-size: 16px;
  }
  
  .menu-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  
  .menu-btn {
    padding: 6px 10px;
    font-size: 14px;
    margin: 0 2px;
  }
  
  /* Welcome Section */
  .welcome-section {
    height: auto;
    padding: 60px 10px 30px;
    margin-top: 0;
  }
  
  .welcome-content {
    font-size: 32px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .welcome-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .welcome-content p {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .join-button {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  /* Menu Carousel */
  .menu-carousel {
    padding: 20px 0;
    height: auto;
  }
  
  .carousel-container {
    height: auto;
  }
  
  .menu-item {
    padding: 15px;
    height: auto;
    min-height: 200px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
  
  .menu-item h2 {
    font-size: 24px;
  }
  
  .menu-item p {
    font-size: 16px;
  }
  
  .carousel-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .stat-item {
    width: 100%;
    padding: 10px;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .stat-label {
    font-size: 16px;
  }
  
  .nav-arrow {
    width: 35px;
    height: 35px;
    opacity: 0.7;
  }
  
  /* Content Sections */
  .content-section {
    padding: 20px 10px;
  }
  
  .content-container {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
  
  .description-text {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  /* Leadership Grid */
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  
  .leader-card {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
  }
  
  /* Rules Grid */
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  
  .rule-card {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
  }
  
  .rule-number {
    font-size: 24px;
  }
  
  .rule-text {
    font-size: 15px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .welcome-content h1 {
    font-size: 36px;
  }
  
  .menu-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .menu-btn {
    margin: 0 5px;
  }
  
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Add subtle background to content on tablets */
  .welcome-content, .menu-item, .content-container {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .menu-carousel {
    height: 320px;
  }
  
  .leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .rules-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Fix for mobile menu and carousel navigation */
@media (max-width: 480px) {
  .menu-nav .container {
    flex-direction: column;
    padding: 5px;
  }
  
  .logo {
    margin-bottom: 5px;
  }
  
  .menu-buttons {
    width: 100%;
  }
  
  .nav-arrow {
    width: 30px;
    height: 30px;
    top: calc(50% - 15px);
  }
  
  /* Improve touch targets for mobile */
  .menu-btn, .nav-arrow, .join-button {
    min-height: 44px; /* Apple's recommended minimum touch target size */
  }
  
  /* Additional mobile fixes for image overlaps */
  .welcome-content, .menu-item, .content-container, .leader-card, .rule-card {
    position: relative;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    padding: 15px;
  }
}