/* Rural Social Aid Roadshow - Responsive CSS */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  /* Hero adjustments */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Hero two columns */
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile specific styles (max-width: 767px) */
@media (max-width: 767px) {
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    --swiper-autoplay: 0 !important;
  }
  
  .swiper-slide {
    transition: none !important;
    transform: none !important;
  }
  
  /* Mobile navigation */
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem;
    margin: 0.25rem 0;
  }
  
  /* Hero adjustments */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
  }
  
  /* Smaller font sizes on mobile */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  p { font-size: 0.875rem; }
  
  /* Service cards */
  .service-card {
    margin-bottom: 1rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team members */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer */
  footer {
    text-align: center;
  }
  
  footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Buttons */
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
  }
  
  /* Decorative blobs */
  .blob-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -50px;
  }
  
  .blob-2 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    left: -75px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* FAQ */
  .accordion-button {
    font-size: 0.875rem;
    padding: 1rem;
  }
  
  /* Section padding */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Blog grid */
  #blog_grid {
    grid-template-columns: 1fr;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Gallery on very small screens */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Hero image on mobile */
  .hero-image {
    margin-top: 2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and footer */
  header, footer {
    display: none;
  }
  
  /* Adjust colors for print */
  * {
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Remove shadows and transitions */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color-1: #005555;
    --primary-color-2: #CC5500;
    --primary-color-3: #6600CC;
    --primary-color-4: #006600;
    --primary-color-5: #CC0000;
  }
  
  * {
    border-width: 2px !important;
  }
  
  .btn {
    border: 2px solid currentColor !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1A202C;
    --light-gray: #2D3748;
    --gray: #718096;
    --dark-gray: #E2E8F0;
    --black: #F7FAFC;
  }
  
  body {
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .service-card,
  .testimonial-item,
  .accordion-button {
    background: var(--light-gray);
    color: var(--dark-gray);
  }
  
  .contact-form {
    background: rgba(45, 55, 72, 0.95);
    color: var(--dark-gray);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  h1 { font-size: 1.5rem; }
  
  .navbar {
    padding: 0.5rem 0;
  }
} 