/* Personal Fitness Trainer Certification - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 1.89rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.55rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.18rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .price-card {
    margin-bottom: 1.72rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.34rem;
  }
  
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .price-value {
    font-size: 1.89rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.83rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .row.g-4 > * {
    margin-bottom: 1.73rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.22rem;
  }
  
  .section-title {
    font-size: 2.00rem;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .service-card,
  .feature-card {
    height: auto;
    min-height: 350px;
  }
  
  .team-card {
    min-height: 400px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.46rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card,
  .feature-card {
    min-height: 380px;
  }
  
  .team-card {
    min-height: 420px;
  }
  
  .price-card {
    min-height: 450px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 2.60rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card,
  .feature-card {
    min-height: 400px;
  }
  
  .team-card {
    min-height: 450px;
  }
  
  .price-card {
    min-height: 480px;
  }
}

/* Specific responsive adjustments */

/* Hero Section Responsive */
@media (max-width: 991.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 0.70rem;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    margin: 0.25rem 0;
  }
}

/* Services Grid Responsive */
@media (max-width: 767.98px) {
  .services-grid .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid .col-md-4:nth-child(2n+1) {
    clear: left;
  }
}

/* Team Grid Responsive */
@media (max-width: 575.98px) {
  .team-photo {
    height: 200px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .team-photo {
    height: 220px;
  }
}

/* Price Plan Responsive */
@media (max-width: 767.98px) {
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .price-card.featured:hover {
    transform: translateY(-5px);
  }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
  .process-item {
    margin-bottom: 2rem;
  }
}

/* Timeline Responsive */
@media (max-width: 575.98px) {
  .timeline-item {
    border-left: 2px solid var(--primary-blue);
    padding-left: 1rem;
  }
  
  .timeline-item::before {
    left: -6px;
    width: 10px;
    height: 10px;
  }
}

/* Contact Form Responsive */
@media (max-width: 767.98px) {
  .contact-section .row > div {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    order: 2;
  }
  
  .contact-info {
    order: 1;
  }
}

/* FAQ Responsive */
@media (max-width: 575.98px) {
  .faq-question {
    padding: 1rem;
    font-size: 1.03rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.02rem;
  }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
  footer .row > div {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-links li {
    margin-bottom: 0;
  }
}

/* Gallery Responsive */
@media (max-width: 991.98px) {
  .gallery-image {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  .gallery-image {
    height: 180px;
  }
}

/* Blog Cards Responsive */
@media (max-width: 767.98px) {
  .blog-image {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
}

/* Form Elements Responsive */
@media (max-width: 575.98px) {
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1.5rem;
    width: 100%;
  }
}

/* Utility Classes for Responsive */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
}

.d-desktop-none {
  display: block;
}

@media (min-width: 768px) {
  .d-desktop-none {
    display: none;
  }
}

/* Text Alignment Responsive */
@media (max-width: 767.98px) {
  .text-md-start {
    text-align: center !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
}

/* Spacing Adjustments */
@media (max-width: 575.98px) {
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
}

/* Container Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .breadcrumb,
  footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    background: none !important;
  }
  
  .hero-title,
  .section-title {
    color: #000 !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.6);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.7);
  }
  
  .navbar {
    border-bottom: 2px solid var(--gray-dark);
  }
  
  .card,
  .service-card,
  .feature-card,
  .team-card,
  .price-card {
    border: 2px solid var(--gray-dark);
  }
}