@charset "utf-8";
/* CSS Document */
/* Mobile-first responsive styles for State industries page */

.main-content {
    min-height: 100vh;
    margin-top: 20px;
}

@media (min-width: 1024px) {
    .main-content {
        margin-top: 5vh;
        position: relative;
        z-index: 5;
    }
}

/* ====== PLAY BUTTON ====== */
.play {
    padding: 10px;
    margin-right: 16px;
    margin-bottom: 15px;
    margin-top: 15px; /* Fixed syntax error */
    background: rgba(0, 51, 102, 1);
    font-family: "bebas-neue-pro", sans-serif;
    font-size: 1.15em;
    text-transform: uppercase;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    text-align: center;
}

.play:hover {
    background: rgba(0, 51, 102, 0.9);
    border-color: #da9434;
    transform: translateY(-2px);
}

.play i {
    transition: transform 0.3s ease;
}

.play:hover i {
    transform: translateX(5px);
}

.fa-circle-chevron-right {
    color: #da9434;
}

/* ====== ACCESSIBILITY ====== */
.play:focus {
    outline: 3px solid #da9434;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .play,
    .play i {
        transition: none;
        transform: none;
    }
    
    .play:hover {
        transform: none;
    }
}

/* Container - Optimized for wider cards */
.container {
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Controls Section */
.controls-section {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.search-box button:hover {
    color: #3b82f6;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #d1d5db;
    background: rgba(27, 27, 86, 1.00);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: white;
}

.filter-btn:hover {
    border-color: #DA9434;
    color: goldenrod;
}

.filter-btn.active {
    background: #DA9434;
    border-color: rgba(27, 27, 86, 1.00);
    color: white;
}

/* Industries Grid - Optimized for wider cards */
.industries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Mobile: Single column with wider cards */
@media (min-width: 480px) {
    .industries-grid {
        gap: 2rem;
    }
}

/* Small tablets: 2 columns */
@media (min-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Large tablets/small desktop: 3 columns */
@media (min-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Large desktop: Still 3 columns but wider cards */
@media (min-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* Industry Cards - Optimized heights for different screen sizes */
.industry-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 550px; /* Reduced from 600px for mobile */
}

/* Responsive card heights */
@media (min-width: 768px) {
    .industry-card {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .industry-card {
        height: 650px;
    }
}

@media (min-width: 1200px) {
    .industry-card {
        height: 700px;
    }
}

.industry-card h4 {
    font-size: 1.4rem;
}

.industry-card ul {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0;
    padding-top: 0;
    list-style-position: inside;
}

.industry-card li {
    display: flex;
    margin-bottom: 8px;
    list-style: none;
}

.industry-card li strong {
    min-width: 80px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 10px;
}

.industry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.industry-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
	position:relative;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.industry-card:hover .industry-image img {
    transform: scale(1.05);
}

/* Image Caption Styles */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-style: italic;
    text-align: right;
    opacity: 0.9;
	z-index:2;
}

/* Content area with improved scrolling */
.industry-content {
    padding: 1.25rem; /* Slightly reduced for mobile */
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Responsive padding */
@media (min-width: 768px) {
    .industry-content {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .industry-content {
        padding: 2rem;
    }
}

/* Webkit scrollbar styling */
.industry-content::-webkit-scrollbar {
    width: 6px;
}

.industry-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.industry-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.industry-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.industry-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem 0;
}

.industry-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.industry-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.industry-quote {
    margin: 1rem 0;
    padding: 1rem 1.75rem;
    border-left: 4px solid #0066cc;
    background-color: #f8f9fa;
    font-style: italic;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.industry-quote::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.5rem;
    color: #0066cc;
    position: absolute;
    top: .5rem;
    left: 0;
    opacity: 0.6;
}

.industry-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9em;
    font-style: normal;
    color: #666;
}

/* Resources Section */
.industry-resources {
    margin: 1.5rem 0 1rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.resources-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    background: none;
    border: none;
    font-size: 0.975rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.resources-toggle:hover,
.resources-toggle:focus {
    color: #3b82f6;
    outline: none;
}

.resources-toggle:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.resources-toggle__icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.resources-toggle[aria-expanded="true"] .resources-toggle__icon {
    transform: rotate(180deg);
}

.resources-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.resources-list[hidden] {
    display: none;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8125rem;
    color: #374151;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.resource-link:hover,
.resource-link:focus {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateX(2px);
}

.resource-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.resource-icon {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.resource-link:hover .resource-icon,
.resource-link:focus .resource-icon {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .resource-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .resource-icon {
        width: 12px;
        height: 12px;
    }
    
    .resources-toggle {
        font-size: 0.8125rem;
    }
}

/* Controls section responsive layout */
@media (min-width: 768px) {
    .controls-section {
        display: flex;
        align-items: flex-end;
        gap: 2rem;
    }
    
    .search-box {
        flex: 1;
        margin-bottom: 0;
        max-width: 400px;
    }
    
    .filter-tabs {
        flex-shrink: 0;
    }
    
    .industry-meta {
        flex-direction: row;
        gap: 1rem;
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Hidden state for filtering */
.industry-card.hidden {
    display: none;
}

/* Accessibility & Motion */
@media (prefers-reduced-motion: reduce) {
    .industry-card,
    .industry-image img,
    .filter-btn,
    .search-box input,
    .search-box button,
    .resource-link,
    .resources-toggle__icon {
        transition: none;
    }
    
    .industry-card:hover {
        transform: none;
    }
    
    .industry-card:hover .industry-image img {
        transform: none;
    }
    
    .resource-link:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.filter-btn:focus,
.search-box input:focus,
.search-box button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Improved focus styles for cards */
.industry-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .industry-card {
        border: 2px solid #000;
    }
    
    .filter-btn {
        border-width: 2px;
    }
    
    .search-box input {
        border-width: 2px;
    }
}

/* Dark mode support (optional) 
@media (prefers-color-scheme: dark) {
	h1, h2, h3, h4, h5, h6 p {
		color:var(--gray);
	}
	
    .industry-card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .industry-content {
        scrollbar-color: #4b5563 #374151;
    }
    
    .industry-name {
        color: #f9fafb;
    }
    
    .industry-description {
        color: #d1d5db;
    }
    
    .industry-quote {
        background-color: #374151;
        border-left-color: #60a5fa;
    }
    
    .search-box input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .search-box input:focus {
        border-color: #60a5fa;
    }
} */

/* Print styles */
@media print {
    .controls-section {
        display: none;
    }
    
    .industry-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        height: auto;
        overflow: visible;
        page-break-inside: avoid;
    }
    
    .industry-content {
        overflow: visible;
        padding: 1rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .play {
        display: none;
    }
    
    .resources-list {
        display: block !important;
    }
    
    .resources-toggle {
        display: none;
    }
}

/* Loading states (optional enhancement) */
.industry-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.industry-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.industry-card.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.industry-card.error .industry-content {
    color: #991b1b;
}

/* Utility classes for better spacing */
.mt-auto {
    margin-top: auto;
}

.flex-1 {
    flex: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced mobile touch targets */
@media (max-width: 767px) {
    .filter-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .search-box button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .resources-toggle {
        min-height: 44px;
        padding: 0.75rem 0;
    }
}

/* Improved grid for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .industries-grid {
        gap: 1rem;
    }
    
    .industry-card {
        height: 500px;
    }
    
    .industry-content {
        padding: 1rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .container {
        padding: 0 2rem;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .industry-card {
        height: 400px;
    }
    
    .main-content {
        margin-top: 10px;
    }
}

/* Hover effects for desktop only */
@media (hover: hover) and (pointer: fine) {
    .industry-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .industry-card:hover .industry-image img {
        transform: scale(1.05);
    }
}

/* Remove hover effects on touch devices */
@media (hover: none) {
    .industry-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .industry-card:hover .industry-image img {
        transform: none;
    }
}

/* Container queries support (future enhancement) */
@supports (container-type: inline-size) {
    .industries-grid {
        container-type: inline-size;
    }
    
    @container (min-width: 768px) {
        .industry-card {
            height: 600px;
        }
    }
    
    @container (min-width: 1024px) {
        .industry-card {
            height: 650px;
        }
    }
}
