/* ===================================
   GALLERY PAGE STYLES - UPDATED WITH GREEN THEME
   =================================== */

/* Gallery Introduction */
.gallery-intro {
    padding: 3rem 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    background: linear-gradient(135deg, #D97706 0%, #059669 50%, #0D9488 100%);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.intro-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.intro-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.highlight-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Gallery Grid - RESPONSIVE IMAGES */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 0.5rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

/* RESPONSIVE IMAGE CONTAINER */
.gallery-image {
    position: relative;
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
    background: var(--bg-secondary);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio while filling container */
    object-position: center;
    transition: transform var(--transition-normal);
    display: block;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

/* Image loading state */
.gallery-image img[loading="lazy"] {
    background: var(--bg-secondary);
    min-height: 250px;
}

/* Gallery Content */
.gallery-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-content h3 {
    background: linear-gradient(135deg, #D97706 0%, #059669 50%, #0D9488 100%);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.gallery-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1.05rem;
}

.gallery-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.feature-tag {
    padding: 0.375rem 0.875rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue-dark);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Facility Features Section */
.facility-features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 0.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    background: linear-gradient(135deg, #D97706 0%, #059669 50%, #0D9488 100%);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

/* Support Overview */
.support-overview {
    padding: 4rem 0;
}

.support-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.support-text h2 {
    background: linear-gradient(135deg, #D97706 0%, #059669 50%, #0D9488 100%);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.support-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.support-types {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.support-type {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.support-type:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.support-type h3 {
    background: linear-gradient(135deg, #059669 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.support-type p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

.support-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D97706 0%, #059669 50%, #0D9488 100%);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-heading);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Location Information */
.location-info {
    padding: 4rem 0;
}

.location-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.location-text h2 {
    background: linear-gradient(135deg, #D97706 0%, #059669 50%, #0D9488 100%);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.location-details {
    margin-bottom: 3rem;
}

.location-item {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.location-item h3 {
    background: linear-gradient(135deg, #059669 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.location-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.location-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-tag {
    padding: 0.375rem 0.875rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue-dark);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.service-areas h3 {
    background: linear-gradient(135deg, #059669 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
}

.areas-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 0.5rem;
}

.area-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.area-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.area-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.area-content h4 {
    background: linear-gradient(135deg, #D97706 0%, #059669 50%, #0D9488 100%);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.area-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Gallery CTA */
/* Gallery CTA - Blue Gradient Background */
.gallery-cta {
    background: linear-gradient(135deg, #D97706 0%, #059669 50%, #0D9488 100%);;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.cta-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.cta-link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.cta-separator {
    color: rgba(255, 255, 255, 0.6);
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.phone-link a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

.phone-link a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* CTA Button on Blue Background */
.gallery-cta .cta-button.primary {
    background: var(--bg-primary);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.gallery-cta .cta-button.primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   RESPONSIVE DESIGN FOR GALLERY
   =================================== */

@media (max-width: 1024px) {
    .support-content,
    .location-content,
    .cta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .support-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .intro-highlights {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px; /* Smaller height on mobile */
    }
    
    .gallery-content {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .intro-highlights {
        flex-direction: column;
        align-items: center;
    }
    
    .highlight-item {
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }
    
    .stat-card {
        padding: 2rem;
    }
    
    .support-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        height: 180px; /* Even smaller on very small screens */
    }
    
    .gallery-content {
        padding: 1.25rem;
    }
    
    .gallery-content h3 {
        font-size: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .intro-content {
        padding: 0 1rem;
    }
    
    .highlight-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .location-item,
    .support-type {
        padding: 1.5rem;
    }
}

/* Image optimization for different screen densities */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .gallery-image {
        background: #1a1a1a;
    }
    
    .gallery-image img[loading="lazy"] {
        background: #1a1a1a;
    }
}

/* Center and style feature icons */
.feature-icon {
    font-size: 3.5rem;
    margin: 0 auto 1.5rem auto;
    display: block;
    text-align: center;
    width: 100%;
    line-height: 1;
}

.feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}