/* Medical Law Resource Library Corner - Responsive CSS */

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
}

/* Large Devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
}

/* Medium Devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .service-item-image {
    height: 180px;
  }
  
  .about-feature {
    margin-bottom: 30px;
  }
  
  .contact-info {
    margin-top: 30px;
  }
  
  .hero-section {
    min-height: 500px;
  }
}

/* Small Devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 1rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: var(--spacing-lg) 0;
  }
  
  .navbar-nav {
    background-color: var(--neutral-100);
    padding: 15px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .hero-section {
    height: auto;
    min-height: 450px;
  }
  
  .service-item,
  .team-member,
  .blog-item,
  .price-plan,
  .coreinfo-item {
    margin-bottom: 30px;
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
  
  .footer-col {
    margin-bottom: 30px;
  }
  
  /* Adjust animation for mobile */
  @media (prefers-reduced-motion) {
    .slide-up {
      transform: none;
      opacity: 1;
      transition: none;
    }
    
    .fade-in {
      opacity: 1;
      transition: none;
    }
  }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .section-padding {
    padding: var(--spacing-md) 0;
  }
  
  .hero-section {
    min-height: 400px;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
  }
  
  .service-item-image {
    height: 160px;
  }
  
  .page-header {
    height: 200px;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
}

/* For screens with reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .hero-slide-bg,
  .service-item-image img,
  .blog-item-image img,
  .team-member-image img,
  .about-image img {
    transition: none !important;
  }
  
  .about-feature:hover,
  .service-item:hover,
  .coreinfo-item:hover,
  .price-plan:hover,
  .blog-item:hover,
  .additional-element:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  }
  
  .swiper-container {
    --swiper-theme-color: var(--primary-color-1) !important;
  }
} 