/* Mental Health Workshops - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .h1 {
        font-size: 1.81rem;
    }
    
    .h4 {
        font-size: 1.19rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.23rem !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.92rem;
    }
    
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    .accordion-button {
        font-size: 0.99rem;
        padding: 0.75rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .process-step {
        width: 50px;
        height: 50px;
    }
    
    .process-step .h4 {
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2.66rem !important;
        padding-bottom: 2.62rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    /* Gallery grid */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Team layout */
    .team .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.26rem;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 4rem 0;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    .timeline::before {
        left: 0;
        transform: none;
    }
    
    /* Services grid */
    .services .col-lg-4 {
        margin-bottom: 1.58rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.32rem !important;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
    
    /* Team layout adjustments */
    .team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Process steps */
    .process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* FAQ accordion */
    .accordion {
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Large devices (desktops, 997px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 6rem 0;
    }
    
    .container {
        max-width: 960px;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Better spacing for large screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 7rem 0;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .h1 {
        font-size: 2.62rem;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    .lead {
        font-size: 1.31rem;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 3.58rem !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Container adjustments for different screen sizes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 8rem 0;
    }
    
    .display-4 {
        font-size: 3.52rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }
    
    .navbar {
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
    }
}

/* Print media adjustments */
@media print {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background: none !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #c5bcbc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .text-white,
    .text-white-75 {
        color: black !important;
    }
    
    .bg-light,
    .bg-dark {
        background: white !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .card:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .accordion-button {
        min-height: 48px;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .gallery img,
    .nav-link,
    .form-control {
        transition: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
}

/* Focus visible support */
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-5px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Specific breakpoint for team layout */
@media (min-width: 992px) {
    .team .row {
        justify-content: center;
    }
    
    .team .col-lg-2 {
        flex: 0 0 auto;
        width: 18%;
        margin: 0 1%;
    }
}

/* FAQ section responsive */
@media (max-width: 768px) {
    .accordion {
        max-width: 100%;
    }
    
    .accordion-button {
        text-align: left;
        padding: 1rem;
    }
}

/* Gallery responsive grid */
@media (max-width: 768px) {
    .gallery .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
} 