@media screen and (width: 1280px) and (height: 800px) {
	.search-box {
		position: relative;
		top: -30px;
		left: 100px;
	}
}
/* CRITICAL: Prevent all drag behavior globally */
html, body, * {
-webkit-user-drag: none !important;
-khtml-user-drag: none !important;
-moz-user-drag: none !important;
-o-user-drag: none !important;
user-drag: none !important;
-webkit-user-select: none !important;
-khtml-user-select: none !important;
-moz-user-select: none !important;
-o-user-select: none !important;
user-select: none !important;
}

/* Allow text selection for input fields and content areas */
input, textarea, .content-area, .info-card p, .info-card h3, .info-card h4, .tip-description, .facility-name, .content p, .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
-webkit-user-select: text !important;
-khtml-user-select: text !important;
-moz-user-select: text !important;
-o-user-select: text !important;
user-select: text !important;
}

/* ============================================
PHASE 2: DESKTOP/COMPUTER STYLES (1920px+)
============================================ */

/* Page-level Global Header & Navigation */
.page-global-header {
position: sticky;
top: 0;
z-index: 1000;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
border-bottom: 2px solid #e2e8f0;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.page-nav {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 12px 20px;
flex-wrap: nowrap;
overflow-x: auto;
}

.page-nav .nav-link {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 12px 22px;
font-size: 1.2rem;
font-weight: 550;
line-height: 1.3;
color: #1e293b;
text-decoration: none;
border-radius: 14px;
border: 1px solid transparent;
background: rgba(255, 255, 255, 0.6);
box-shadow: inset 0 0 0 0 rgba(14, 165, 233, 0.15);
transition: all 0.25s ease;
min-height: 44px;
cursor: pointer;
}

.page-nav .nav-link:hover,
.page-nav .nav-link:focus-visible {
color: #0e7490;
border-color: rgba(14, 165, 233, 0.35);
background: rgba(14, 165, 233, 0.12);
box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
text-decoration: none;
}

.page-nav .nav-link[aria-current="page"] {
color: #0e7490;
border-color: rgba(14, 165, 233, 0.35);
background: rgba(14, 165, 233, 0.12);
box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.page-nav .nav-link-action {
background: rgba(255, 255, 255, 0.6);
border-color: transparent;
box-shadow: inset 0 0 0 0 rgba(14, 165, 233, 0.15);
}

/* Professional Health Articles Page Styles - Desktop */
.articles-page {
min-height: 100vh;
padding: 0;
background: #f8fafc;
}

.articles-container {
max-width: 1400px;
margin: 0 auto;
}

/* Hero Section - Desktop */
.articles-hero {
background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
padding: 60px 20px;
text-align: center;
color: #1e293b;
margin-bottom: 40px;
}

.articles-title {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 15px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
line-height: 1.2;
}

.articles-subtitle {
font-size: 1.3rem;
opacity: 0.95;
max-width: 700px;
margin: 0 auto 40px;
line-height: 1.5;
}

/* Search Box - Desktop */
.search-box {
max-width: 700px;
margin: 0 auto;
position: relative;
}

.search-box input {
width: 100%;
padding: 18px 50px 18px 25px;
border: none;
border-radius: 50px;
font-size: 1.1rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
outline: none;
background: white;
transition: box-shadow 0.3s ease;
}

.search-box input:focus {
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* Search icon inside input */
.search-box .search-icon {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
color: #667eea;
font-size: 1.2rem;
pointer-events: auto;
cursor: pointer;
z-index: 1;
transition: color 0.3s ease, transform 0.2s ease;
}

.search-box input:focus + .search-icon {
color: #5568d3;
}

.search-box .search-icon:hover {
color: #5568d3;
transform: translateY(-50%) scale(1.1);
}

.search-box .search-icon:active {
transform: translateY(-50%) scale(0.95);
}

/* Stats Section - Desktop */
.stats-section {
background: white;
padding: 40px 20px;
margin: 40px 20px;
border-radius: 16px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
text-align: center;
}

.stat-item h3 {
font-size: 2.5rem;
font-weight: 800;
background: linear-gradient(135deg, #667eea, #764ba2);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 10px;
}

.stat-item p {
color: #64748b;
font-size: 1rem;
font-weight: 500;
}

/* Category Filters - Desktop */
.category-filters {
background: white;
padding: 25px 20px;
margin-bottom: 30px;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-filters h3 {
font-size: 1.2rem;
margin-bottom: 20px;
color: #1e293b;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
}

.category-filters h3 i {
color: #667eea;
}

.filter-buttons {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

.filter-btn {
padding: 10px 20px;
border: 2px solid #e2e8f0;
background: white;
border-radius: 25px;
cursor: pointer;
font-size: 0.95rem;
font-weight: 500;
color: #64748b;
transition: all 0.3s ease;
min-height: 44px;
}

.filter-btn:hover {
border-color: #667eea;
color: #667eea;
background: #f0f4ff;
transform: translateY(-2px);
}

.filter-btn.active {
background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
color: #667eea;
border-color: #667eea;
}

.filter-btn:active {
transform: translateY(0);
}

/* Article Grid - Desktop */
.articles-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 30px;
padding: 0 20px 40px;
}

/* Article Card Link - Desktop */
.article-card-link {
text-decoration: none;
color: inherit;
display: block;
}

/* Article Card - Desktop */
.article-card {
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
cursor: pointer;
display: flex;
flex-direction: column;
height: 100%;
}

.article-card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Article Image - Desktop */
.article-image {
width: 100%;
height: 250px;
overflow: hidden;
position: relative;
background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
}

.article-image img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
display: block;
transition: transform 0.3s ease;
/* Image optimization for photos */
image-rendering: auto;
/* Prevent layout shift */
aspect-ratio: 350 / 250;
/* Performance optimization */
will-change: transform;
/* Immediate display - no fade in */
opacity: 1 !important;
/* Better image quality */
image-rendering: -webkit-optimize-contrast;
/* Ensure immediate visibility */
visibility: visible !important;
}

.article-card:hover .article-image img {
transform: scale(1.05);
}

/* Article Card Content - Desktop */
.article-card-content {
padding: 25px;
flex: 1;
display: flex;
flex-direction: column;
}

/* First aid card icon - matches firstaid article header style */
.article-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.article-category {
display: inline-block;
padding: 6px 14px;
background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
color: #667eea;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 15px;
width: fit-content;
}

.article-card-title {
font-size: 1.4rem;
font-weight: 700;
color: #1e293b;
margin-bottom: 12px;
line-height: 1.3;
}

.article-excerpt {
color: #64748b;
font-size: 0.95rem;
line-height: 1.6;
margin-bottom: 20px;
flex: 1;
}

.article-meta {
display: flex;
align-items: center;
gap: 20px;
font-size: 0.85rem;
color: #94a3b8;
margin-top: auto;
padding-top: 15px;
border-top: 1px solid #e2e8f0;
}

.article-meta span {
display: flex;
align-items: center;
gap: 6px;
}

.article-meta i {
font-size: 0.9rem;
}

/* No Results - Desktop */
.no-results {
text-align: center;
padding: 60px 20px;
color: #64748b;
}

.no-results i {
font-size: 4rem;
margin-bottom: 20px;
opacity: 0.5;
}

.no-results h3 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #1e293b;
}

.no-results p {
font-size: 1rem;
}

/* Desktop-specific optimizations */
@media (min-width: 1920px) {
.articles-container {
max-width: 1600px;
}

.articles-hero {
padding: 80px 20px;
}

.articles-title {
font-size: 4rem;
}

.articles-subtitle {
font-size: 1.4rem;
}

.articles-grid {
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
gap: 35px;
}
}

/* ============================================
PHASE 3: TABLET STYLES (768px - 1024px)
============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
/* Hero Section - Tablet */
.articles-hero {
padding: 50px 20px;
margin-bottom: 35px;
}

.articles-title {
font-size: 3rem;
margin-bottom: 12px;
}

.articles-subtitle {
font-size: 1.2rem;
margin-bottom: 35px;
}

/* Search Box - Tablet */
.search-box {
max-width: 650px;
}

.search-box input {
padding: 16px 50px 16px 22px;
font-size: 1rem;
}

/* Search icon - Tablet */
.search-box .search-icon {
right: 18px;
font-size: 1.1rem;
}

/* Stats Section - Tablet */
.stats-section {
padding: 35px 20px;
margin: 35px 20px;
}

.stats-grid {
grid-template-columns: repeat(4, 1fr);
gap: 25px;
}

.stat-item h3 {
font-size: 2.2rem;
}

.stat-item p {
font-size: 0.95rem;
}

/* Category Filters - Tablet */
.category-filters {
padding: 22px 18px;
margin-bottom: 25px;
}

.category-filters h3 {
font-size: 1.15rem;
margin-bottom: 18px;
}

.filter-buttons {
gap: 10px;
}

.filter-btn {
padding: 9px 18px;
font-size: 0.92rem;
min-height: 44px;
}

/* Article Grid - Tablet (2-3 columns) */
.articles-grid {
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 25px;
padding: 0 20px 35px;
}

/* Article Card Content - Tablet */
.article-card-content {
padding: 22px;
}

.article-card-title {
font-size: 1.3rem;
}

.article-excerpt {
font-size: 0.92rem;
}

/* Article Image - Tablet */
.article-image {
height: 220px;
}

/* No Results - Tablet */
.no-results {
padding: 50px 20px;
}

.no-results i {
font-size: 3.5rem;
}

.no-results h3 {
font-size: 1.4rem;
}

.no-results p {
font-size: 0.95rem;
}

/* Navigation - Tablet adjustments */
.page-nav {
padding: 10px 15px;
}

.page-nav .nav-link {
padding: 10px 18px;
font-size: 1.1rem;
}
}

/* ============================================
PHASE 4: MOBILE STYLES (320px - 767px)
============================================ */

@media (max-width: 767px) {
/* Page-level adjustments */
.articles-page {
padding: 0;
}

.articles-container {
padding: 0;
}

/* Hero Section - Mobile */
.articles-hero {
padding: 40px 15px;
margin-bottom: 30px;
}

.articles-title {
font-size: 2.2rem;
margin-bottom: 10px;
line-height: 1.2;
}

.articles-subtitle {
font-size: 1rem;
margin-bottom: 30px;
padding: 0 10px;
line-height: 1.4;
}

/* Search Box - Mobile */
.search-box {
max-width: 100%;
padding: 0 10px;
}

.search-box input {
padding: 14px 45px 14px 18px;
font-size: 0.95rem;
border-radius: 40px;
min-height: 44px;
}

/* Search icon - Mobile */
.search-box .search-icon {
right: 16px;
font-size: 1rem;
}

/* Stats Section - Mobile */
.stats-section {
padding: 30px 15px;
margin: 30px 15px;
border-radius: 12px;
}

.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.stat-item h3 {
font-size: 2rem;
margin-bottom: 8px;
}

.stat-item p {
font-size: 0.9rem;
}

/* Category Filters - Mobile */
.category-filters {
padding: 20px 15px;
margin: 0 15px 25px;
border-radius: 10px;
}

.category-filters h3 {
font-size: 1.1rem;
margin-bottom: 15px;
}

.filter-buttons {
gap: 8px;
justify-content: flex-start;
overflow-x: auto;
padding-bottom: 5px;
-webkit-overflow-scrolling: touch;
}

.filter-buttons::-webkit-scrollbar {
height: 4px;
}

.filter-buttons::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 2px;
}

.filter-buttons::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 2px;
}

.filter-btn {
padding: 8px 14px;
font-size: 0.85rem;
border-radius: 20px;
white-space: nowrap;
min-height: 44px;
flex-shrink: 0;
}

/* Article Grid - Mobile (Single Column) */
.articles-grid {
grid-template-columns: 1fr;
gap: 20px;
padding: 0 15px 30px;
}

/* Article Card - Mobile */
.article-card {
border-radius: 12px;
}

.article-card:hover {
transform: none;
}

/* Article Image - Mobile */
.article-image {
height: 180px;
}

.article-card:hover .article-image img {
transform: none;
}

/* Article Card Content - Mobile */
.article-card-content {
padding: 20px;
}

.article-category {
padding: 5px 12px;
font-size: 0.8rem;
margin-bottom: 12px;
}

.article-card-title {
font-size: 1.2rem;
margin-bottom: 10px;
line-height: 1.3;
}

.article-excerpt {
font-size: 0.9rem;
margin-bottom: 15px;
line-height: 1.5;
}

.article-meta {
gap: 15px;
font-size: 0.8rem;
padding-top: 12px;
flex-wrap: wrap;
}

.article-meta span {
gap: 5px;
}

.article-meta i {
font-size: 0.85rem;
}

/* No Results - Mobile */
.no-results {
padding: 40px 15px;
}

.no-results i {
font-size: 3rem;
margin-bottom: 15px;
}

.no-results h3 {
font-size: 1.3rem;
margin-bottom: 8px;
}

.no-results p {
font-size: 0.9rem;
}

/* Navigation - Mobile */
.page-global-header {
position: static !important;
top: auto !important;
}

.page-nav {
overflow-x: auto;
padding: 8px 12px;
justify-content: flex-start;
-webkit-overflow-scrolling: touch;
}

.page-nav .nav-link {
flex: 0 0 auto;
padding: 10px 16px;
min-width: auto;
font-size: 1rem;
white-space: nowrap;
}

.page-nav::-webkit-scrollbar {
height: 4px;
}

.page-nav::-webkit-scrollbar-track {
background: #f1f5f9;
}

.page-nav::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 2px;
}
}

/* ============================================
PHASE 5: SMALL MOBILE STYLES (320px - 480px)
============================================ */

@media (max-width: 480px) {
/* Hero Section - Small Mobile */
.articles-hero {
padding: 30px 12px;
margin-bottom: 25px;
}

.articles-title {
font-size: 1.8rem;
margin-bottom: 8px;
}

.articles-subtitle {
font-size: 0.9rem;
margin-bottom: 25px;
padding: 0 5px;
}

/* Search Box - Small Mobile */
.search-box {
padding: 0 5px;
}

.search-box input {
padding: 12px 45px 12px 15px;
font-size: 0.9rem;
border-radius: 35px;
min-height: 44px;
}

/* Search icon - Small Mobile */
.search-box .search-icon {
right: 14px;
font-size: 0.95rem;
}

/* Stats Section - Small Mobile */
.stats-section {
padding: 25px 12px;
margin: 25px 12px;
border-radius: 10px;
}

.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}

.stat-item h3 {
font-size: 1.8rem;
margin-bottom: 6px;
}

.stat-item p {
font-size: 0.85rem;
}

/* Category Filters - Small Mobile */
.category-filters {
padding: 18px 12px;
margin: 0 12px 20px;
border-radius: 8px;
}

.category-filters h3 {
font-size: 1rem;
margin-bottom: 12px;
}

.category-filters h3 i {
font-size: 0.9rem;
}

.filter-buttons {
gap: 6px;
}

.filter-btn {
padding: 7px 12px;
font-size: 0.8rem;
border-radius: 18px;
min-height: 44px;
}

/* Article Grid - Small Mobile */
.articles-grid {
gap: 15px;
padding: 0 12px 25px;
}

/* Article Image - Small Mobile */
.article-image {
height: 160px;
}

/* Article Card Content - Small Mobile */
.article-card-content {
padding: 18px;
}

.article-category {
padding: 4px 10px;
font-size: 0.75rem;
margin-bottom: 10px;
}

.article-card-title {
font-size: 1.1rem;
margin-bottom: 8px;
}

.article-excerpt {
font-size: 0.85rem;
margin-bottom: 12px;
}

.article-meta {
gap: 12px;
font-size: 0.75rem;
padding-top: 10px;
}

.article-meta span {
gap: 4px;
}

.article-meta i {
font-size: 0.7rem;
}

/* No Results - Small Mobile */
.no-results {
padding: 30px 12px;
}

.no-results i {
font-size: 2.5rem;
margin-bottom: 12px;
}

.no-results h3 {
font-size: 1.1rem;
margin-bottom: 6px;
}

.no-results p {
font-size: 0.85rem;
}

/* Navigation - Small Mobile */
.page-nav {
padding: 6px 10px;
}

.page-nav .nav-link {
flex: 0 0 auto;
min-width: auto;
padding: 8px 12px;
font-size: 0.9rem;
}
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
.articles-title {
font-size: 1.6rem;
}

.articles-subtitle {
font-size: 0.85rem;
}

.stats-grid {
grid-template-columns: 1fr;
gap: 12px;
}

.filter-btn {
padding: 6px 10px;
font-size: 0.75rem;
}

.article-card-title {
font-size: 1rem;
}

.article-image {
height: 150px;
}

.article-card-content {
padding: 15px;
}
}

/* ============================================
PHASE 7: TOUCH AND INTERACTION OPTIMIZATION
============================================ */

/* Touch-friendly base styles */
* {
-webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
-webkit-touch-callout: none;
}

/* Prevent text selection on touch (except inputs) */
button, .article-card, .filter-btn, .nav-link {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
}

/* Touch feedback for buttons */
.filter-btn:active,
.nav-link:active {
transform: scale(0.95);
opacity: 0.8;
}

/* Article card touch feedback */
.article-card:active {
transform: scale(0.98);
opacity: 0.9;
}

/* Smooth touch scrolling */
.filter-buttons,
.page-nav,
.articles-grid {
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
}

/* Prevent double-tap zoom on buttons and cards */
button,
.article-card,
.filter-btn,
.nav-link {
touch-action: manipulation;
}

/* Better touch targets - ensure minimum size */
.search-box input {
min-height: 44px;
touch-action: manipulation;
}


.filter-btn {
min-width: 44px;
min-height: 44px;
}

.nav-link {
min-width: 44px;
min-height: 44px;
}

/* Touch-friendly hover alternatives for mobile */
@media (hover: none) and (pointer: coarse) {
/* Remove hover effects on touch devices */
.article-card:hover {
transform: none;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-card:hover .article-image img {
transform: none;
}


.filter-btn:hover {
transform: none;
}

.nav-link:hover {
transform: none;
}

/* Use active state for touch feedback instead */
.article-card:active {
transform: scale(0.98);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}


.filter-btn:active {
transform: scale(0.95);
background: linear-gradient(135deg, #d0d7ff, #e9d5ff);
}

.nav-link:active {
transform: scale(0.95);
}
}

/* Touch gesture optimizations */
@media (max-width: 767px) {
/* Prevent pull-to-refresh on article cards */
.article-card {
overscroll-behavior: contain;
}

/* Smooth scrolling for filter buttons */
.filter-buttons {
scroll-snap-type: x proximity;
}

.filter-btn {
scroll-snap-align: start;
}

/* Better touch feedback on mobile */
.article-card:active {
transform: scale(0.97);
transition: transform 0.1s ease;
}


.filter-btn:active {
transform: scale(0.92);
transition: transform 0.1s ease;
}

/* Prevent accidental zoom on double tap */
.article-card-link,
.article-card,
button,
.filter-btn {
touch-action: manipulation;
}
}

/* Enhanced active states for better touch feedback */

.filter-btn:focus-visible {
outline: 2px solid #667eea;
outline-offset: 2px;
}

.article-card:focus-visible {
outline: 2px solid #667eea;
outline-offset: 4px;
}

/* Ripple effect for touch devices (optional enhancement) */
@media (hover: none) and (pointer: coarse) {
.filter-btn,
.article-card {
position: relative;
overflow: hidden;
}

.filter-btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: translate(-50%, -50%);
transition: width 0.3s ease, height 0.3s ease;
}

.filter-btn:active::after {
width: 200px;
height: 200px;
}
}

/* Prevent text selection during touch interactions */
.article-card-link {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

/* Smooth transitions for all interactive elements */
button,
.article-card,
.filter-btn,
.nav-link {
transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

/* Loading state for better UX */
.article-image {
background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
}

.article-image img {
/* No opacity transition - instant display */
opacity: 1 !important;
transition: transform 0.3s ease;
}

/* Ensure images don't cause layout shift on load */
.article-image img[loading="eager"] {
opacity: 1 !important;
}

/* Prevent FOUC - Hide body until language is applied */
body:not(.lang-applied) {
visibility: hidden;
opacity: 0;
}

body.lang-applied {
visibility: visible;
opacity: 1;
transition: opacity 0.1s ease;
}
/* Footer link styles - Touch-friendly for mobile and tablet */
/* NOTE: Footer CSS has been moved to css/footer.css - this rule is for mobile only */
@media (max-width: 768px) {
.footer .legal-links {
display: flex !important;
flex-wrap: nowrap !important;
justify-content: center !important;
align-items: center !important;
gap: 6px !important;
white-space: nowrap !important;
overflow-x: visible !important;
}
}

/* REMOVED: Desktop footer styles - Now handled by footer.css and footer.html inline styles */
/* This was causing conflicts - footer.css and footer.html should control footer styling */
/* @media (min-width: 769px) { ... } - COMMENTED OUT TO ALLOW footer.css TO WORK */

/* Force legal links to stay in one row - override any inline styles */
.footer .legal-links[style*="flex-wrap"] {
flex-wrap: nowrap !important;
}

.footer .legal-links a.footer-link {
color: #94a3b8 !important;
text-decoration: none !important;
font-size: 1rem !important;
transition: all 0.3s ease !important;
cursor: pointer !important;
-webkit-tap-highlight-color: rgba(0, 255, 122, 0.3) !important;
touch-action: manipulation !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 6px 8px !important;
min-height: 44px !important;
min-width: auto !important;
pointer-events: auto !important;
z-index: 10 !important;
position: relative !important;
border-radius: 6px !important;
white-space: nowrap !important;
}

.footer .legal-links a.footer-link:hover {
color: #00ff7a !important;
background-color: rgba(0, 255, 122, 0.1) !important;
}

.footer .legal-links a.footer-link:active {
color: #00ff7a !important;
background-color: rgba(0, 255, 122, 0.2) !important;
transform: scale(0.95) !important;
}

.footer .legal-links a.footer-link:focus {
outline: 2px solid #00ff7a !important;
outline-offset: 2px !important;
}

/* Footer responsive fixes for mobile and tablet */
@media (max-width: 1024px) {
.footer {
padding: 30px 16px 20px !important;
overflow-x: hidden !important;
}

.footer > div[style*="max-width: 1400px"] {
max-width: 100% !important;
padding: 0 !important;
}

/* Fix grid layout */
.footer div[style*="grid-template-columns: repeat(auto-fit, minmax(250px"] {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
gap: 20px !important;
padding-left: 0 !important;
}

/* Remove negative margins on tablet */
.footer div[style*="margin-left: -40px"],
.footer div[style*="margin-left: -22px"],
.footer div[style*="margin-left: -50px"] {
margin-left: 0 !important;
}

.footer div[style*="margin-left: 70px"] {
margin-left: 0 !important;
}

.footer div[style*="padding-left: 20px"] {
padding-left: 0 !important;
}

.footer div[style*="padding-right: 50px"] {
padding-right: 0 !important;
}

/* Fix contact info alignment */
.footer div[style*="margin-left: 22px"] {
margin-left: 0 !important;
text-align: left !important;
}

/* Center app download section on tablet */
.footer div[style*="display: flex"][style*="gap: 12px"][style*="flex-wrap: wrap"] {
justify-content: center !important;
margin-left: 0 !important;
}

/* Center contact info on tablet */
.footer div[style*="margin-left: 70px"][style*="display: flex"][style*="flex-direction: column"] {
align-items: center !important;
margin-left: 0 !important;
}
}

/* Tablet specific footer alignment (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
/* Center footer logo and company info section */
.footer > div > div > div:first-child {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
}

.footer > div > div > div:first-child > a[href="index.html"] {
justify-content: center !important;
margin-left: auto !important;
margin-right: auto !important;
width: fit-content !important;
}

/* Center app download icons (Google Play + App Store) */
.footer div[style*="display: flex"][style*="gap: 10px"][style*="flex-wrap: wrap"][style*="margin-left: 0px"] {
justify-content: center !important;
align-items: center !important;
margin-left: 0 !important;
width: 100% !important;
}

/* Center Quick Links section */
.footer div[style*="padding: 0 0 0 90px"] {
padding: 0 !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
}

/* Center Quick Links heading */
.footer #footer-quick-links {
text-align: center !important;
}

/* Center individual quick link items */
.footer div[style*="padding: 0 0 0 90px"] .footer-link {
text-align: center !important;
}
}

@media (max-width: 768px) {
.footer {
padding: 25px 15px 20px !important;
overflow-x: hidden !important;
}

.footer > div[style*="max-width: 1400px"] {
max-width: 100% !important;
padding: 0 !important;
}

/* Stack all columns on mobile */
.footer div[style*="grid-template-columns"] {
grid-template-columns: 1fr !important;
gap: 20px !important;
padding-left: 0 !important;
}

/* Reduce logo size on mobile */
.footer video[style*="width: 50px"] {
width: 45px !important;
height: 45px !important;
margin-right: 12px !important;
}

.footer svg[role="img"] {
height: 28px !important;
}

/* Keep heading sizes - only reduce margins */
.footer h4 {
font-size: 1.15rem !important;
margin-bottom: 12px !important;
margin-top: 0 !important;
}

/* Keep paragraph and text sizes - only reduce margins */
.footer p {
font-size: 0.95rem !important;
margin-bottom: 8px !important;
line-height: 1.5 !important;
}

/* Keep link sizes */
.footer a[style*="font-size: 1rem"] {
font-size: 0.95rem !important;
}

/* Reduce gaps in flex containers */
.footer div[style*="display: flex"][style*="flex-direction: column"][style*="gap: 12px"] {
gap: 8px !important;
}

/* Reduce app download section spacing */
.footer div[style*="margin-bottom: 20px"] {
margin-bottom: 12px !important;
}

/* Keep social media icon size */
.footer a[style*="font-size: 1.5rem"] {
font-size: 1.3rem !important;
}

/* Reduce app download images size */
.footer img[alt*="Google Play"],
.footer img[alt*="App Store"] {
height: 50px !important;
width: 155px !important;
object-fit: contain !important;
}

/* Reduce contact info spacing */
.footer div[style*="display: flex"][style*="align-items: center"][style*="gap: 12px"] {
gap: 8px !important;
margin-bottom: 8px !important;
}

/* Keep icon sizes in contact */
.footer i[style*="font-size: 1.2rem"] {
font-size: 1.1rem !important;
width: 20px !important;
}

/* Reduce social media section spacing */
.footer div[style*="margin-top: 25px"] {
margin-top: 15px !important;
}

/* Center footer logo and company info section on mobile */
.footer > div > div > div:first-child {
margin-bottom: 12px !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
}

.footer > div > div > div:first-child > a[href="index.html"] {
justify-content: center !important;
margin-left: auto !important;
margin-right: auto !important;
width: fit-content !important;
}

/* Reduce logo margin */
.footer a[style*="margin-bottom: 15px"] {
margin-bottom: 10px !important;
margin-top: 0 !important;
}

/* Center app download icons (Google Play + App Store) on mobile */
.footer div[style*="display: flex"][style*="gap: 10px"][style*="flex-wrap: wrap"][style*="margin-left: 0px"] {
justify-content: center !important;
align-items: center !important;
margin-left: 0 !important;
width: 100% !important;
}

/* Center Quick Links section on mobile */
.footer div[style*="padding: 0 0 0 90px"] {
padding: 0 !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
}

/* Center Quick Links heading on mobile */
.footer #footer-quick-links {
text-align: center !important;
}

/* Center individual quick link items on mobile */
.footer div[style*="padding: 0 0 0 90px"] .footer-link {
text-align: center !important;
}

/* Keep about section font size - only reduce spacing */
.footer p[style*="max-width: 300px"] {
max-width: 100% !important;
font-size: 0.95rem !important;
line-height: 1.5 !important;
}

/* Reduce quick links section spacing */
.footer div[style*="flex-direction: column"][style*="gap: 12px"] {
gap: 8px !important;
}

/* Remove all negative margins on mobile */
.footer *[style*="margin-left: -40px"],
.footer *[style*="margin-left: -22px"],
.footer *[style*="margin-left: -50px"],
.footer *[style*="margin-left: 70px"] {
margin-left: 0 !important;
}

.footer *[style*="padding-left: 20px"],
.footer *[style*="padding-left: 10px"] {
padding-left: 0 !important;
}

.footer *[style*="padding-right: 50px"] {
padding-right: 0 !important;
}

/* Center align app download section */
.footer div[style*="text-align: center"][style*="margin-left: -40px"] {
margin-left: 0 !important;
text-align: center !important;
}

/* Fix app download images container - center on mobile */
.footer div[style*="display: flex"][style*="gap: 12px"][style*="margin-left: -40px"] {
margin-left: 0 !important;
justify-content: center !important;
align-items: center !important;
width: 100% !important;
}

/* Center app download images */
.footer div[style*="display: flex"][style*="gap: 12px"][style*="flex-wrap: wrap"] {
justify-content: center !important;
align-items: center !important;
margin-left: 0 !important;
width: 100% !important;
}

/* Fix contact info section */
.footer h4[style*="margin-left: 22px"] {
margin-left: 0 !important;
text-align: center !important;
}

/* Fix contact info container - center on mobile */
.footer div[style*="margin-left: 70px"][style*="display: flex"][style*="flex-direction: column"] {
margin-left: 0 !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
}

/* Center individual contact info items */
.footer div[style*="margin-left: 70px"] > div[style*="display: flex"] {
justify-content: center !important;
width: 100% !important;
max-width: 100% !important;
margin-left: 0 !important;
text-align: center !important;
}

/* Ensure contact info flex items are centered */
.footer div[style*="margin-left: 70px"] > div[style*="display: flex"][style*="align-items: center"] {
justify-content: center !important;
width: 100% !important;
}

/* Fix quick links padding on mobile */
.footer div[style*="padding: 0 0 0 90px"] {
padding: 0 !important;
}
}