/* Responsive CSS for Consumer Law Resource Library & Helpdesk */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-padding {
    padding: 80px 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    max-width: 100%;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .about-image {
    margin-bottom: 2rem;
  }
  
  .coreinfo-item,
  .service-item,
  .price-item {
    margin-bottom: 1.5rem;
  }
  
  .team-item, 
  .blog-item {
    margin-bottom: 2rem;
  }
  
  .footer {
    padding: 60px 0 30px;
  }
  
  .footer-widget {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    max-width: 100%;
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .about-image {
    margin-bottom: 2rem;
  }
  
  .coreinfo-item,
  .service-item,
  .price-item {
    margin-bottom: 1.5rem;
  }
  
  .team-item, 
  .blog-item {
    margin-bottom: 2rem;
  }
  
  .footer {
    padding: 50px 0 30px;
  }
  
  .footer-widget {
    margin-bottom: 2rem;
  }
  
  .hero-section {
    height: auto;
    min-height: 500px;
  }
  
  .hero-image {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 2rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    max-width: 100%;
    font-size: 0.95rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 1rem;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .about-image {
    margin-bottom: 2rem;
  }
  
  .coreinfo-item,
  .service-item,
  .price-item {
    margin-bottom: 1.5rem;
  }
  
  .team-item, 
  .blog-item {
    margin-bottom: 2rem;
  }
  
  .footer {
    padding: 50px 0 30px;
  }
  
  .footer-widget {
    margin-bottom: 2rem;
  }
  
  .hero-section {
    height: auto;
    min-height: 450px;
  }
  
  .hero-image {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
  }
  
  .feature-item {
    flex-direction: column;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .contact-info-item {
    flex-direction: column;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Animation and other effects respect prefers-reduced-motion */
@media (prefers-reduced-motion) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 0 !important;
  }
}

/* Specific adjustments for the space page */
@media (max-width: 767px) {
  .space-container {
    min-height: 50vh;
    margin: 80px 0;
  }
  
  .space-container::before,
  .space-container::after {
    width: 150px;
    height: 150px;
  }
} 