/* --- Global Reset & Variables --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #10b981;
  --text-color: #334155;
  --text-light: #64748b;
  --background: #f8fafc;
  --background-dark: #0f172a;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  padding: 4rem 5%;
  gap: 3rem;
  max-width: 100%;
  margin: 0 auto;
}

.hero-content { flex: 1; }

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--background-dark);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-buttons { display: flex; gap: 1rem; }

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* --- Tools Grid Section --- */
.tools-section {
  padding: 4rem 10%;
  background-color: var(--card-bg);
}

.tools-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--background-dark);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.tool-card {
  display: block;
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tool-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--background-dark);
}

.tool-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.use-tool {
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Call to Action Banner --- */
.all-tools-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 2rem;
  border-radius: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.all-tools-banner h3 { font-size: 2rem; margin-bottom: 1rem; }
.all-tools-banner p { margin-bottom: 2rem; font-size: 1.125rem; }
.all-tools-banner .btn { background-color: white; color: var(--primary-color); }
.all-tools-banner .btn:hover { background-color: rgba(255, 255, 255, 0.9); }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .hero-buttons { flex-direction: column; }
  .btn, .btn-outline { width: 100%; text-align: center; }
}


        /* Alt Text Checker Specific Styles */
        .alt-tool-main {
            padding: 2.5rem;
            margin-top: 30px;
            padding-left: 180px;
            padding-right: 180px;
        }

        .alt-tool-header {
            background: linear-gradient(120deg, #ff6b6b, #4ecdc4);
            color: white;
            padding: 2.5rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-bottom: 2rem;
            border-radius: 12px;
        }

        .alt-tool-header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
            transform: rotate(30deg);
        }

        .alt-tool-header h1 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            position: relative;
        }

        .alt-tool-header p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
            position: relative;
        }

        .alt-tool-container {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .alt-input-section {
            margin-bottom: 2.5rem;
        }

        .alt-method-selector {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            background: white;
            padding: 1rem;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .alt-method-btn {
            flex: 1;
            padding: 1rem;
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-weight: 600;
            color: #6c757d;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .alt-method-btn:hover {
            border-color: #ff6b6b;
            background: #ffeaea;
        }

        .alt-method-btn.active {
            border-color: #ff6b6b;
            background: #ff6b6b;
            color: white;
        }

        .alt-input-wrapper {
            position: relative;
        }

        .alt-url-input, .alt-textarea {
            width: 100%;
            padding: 1.2rem 1.5rem;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .alt-textarea {
            min-height: 200px;
            resize: vertical;
        }

        .alt-url-input:focus, .alt-textarea:focus {
            outline: none;
            border-color: #ff6b6b;
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
        }

        .alt-btn {
            background: linear-gradient(to right, #ff6b6b, #4ecdc4);
            color: white;
            border: none;
            padding: 1.2rem 2rem;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
            width: 100%;
            margin-top: 1rem;
        }

        .alt-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
            background: linear-gradient(to right, #ff5252, #3dbdb4);
        }

        .alt-btn:active {
            transform: translateY(0);
        }

        .error-message {
            background: #fee;
            color: #dc3545;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            border-left: 4px solid #dc3545;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .success-message {
            background: #e8f7ee;
            color: #198754;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            border-left: 4px solid #198754;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .alt-results-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .alt-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .alt-stat-card {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            border: 1px solid #e9ecef;
        }

        .alt-stat-card.good {
            border-top: 4px solid #4ecdc4;
        }

        .alt-stat-card.warning {
            border-top: 4px solid #ffc107;
        }

        .alt-stat-card.error {
            border-top: 4px solid #ff6b6b;
        }

        .alt-stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .alt-stat-card.good .alt-stat-number {
            color: #4ecdc4;
        }

        .alt-stat-card.warning .alt-stat-number {
            color: #ffc107;
        }

        .alt-stat-card.error .alt-stat-number {
            color: #ff6b6b;
        }

        .alt-stat-label {
            color: #6c757d;
            font-size: 0.9rem;
        }

        .alt-images-list {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .images-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #e9ecef;
        }

        .images-header h3 {
            color: #212529;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .images-filter {
            display: flex;
            gap: 0.5rem;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            color: #6c757d;
            transition: all 0.2s ease;
        }

        .filter-btn:hover {
            background: #e9ecef;
        }

        .filter-btn.active {
            background: #ff6b6b;
            color: white;
            border-color: #ff6b6b;
        }

        .image-item {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border-left: 4px solid #dee2e6;
            transition: all 0.3s ease;
        }

        .image-item.good {
            border-left-color: #4ecdc4;
            background: #f0f9f8;
        }

        .image-item.warning {
            border-left-color: #ffc107;
            background: #fff9e6;
        }

        .image-item.error {
            border-left-color: #ff6b6b;
            background: #ffeaea;
        }

        .image-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .image-number {
            font-weight: 600;
            color: #495057;
            background: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.9rem;
        }

        .image-status {
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .image-status.good {
            background: #d4edda;
            color: #155724;
        }

        .image-status.warning {
            background: #fff3cd;
            color: #856404;
        }

        .image-status.error {
            background: #f8d7da;
            color: #721c24;
        }

        .image-preview-container {
            display: grid;
            grid-template-columns: 150px 1fr;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        @media (max-width: 768px) {
            .image-preview-container {
                grid-template-columns: 1fr;
            }
        }

        .image-preview {
            width: 150px;
            height: 150px;
            border-radius: 8px;
            overflow: hidden;
            background: #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #dee2e6;
        }

        .image-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .image-preview-placeholder {
            color: #6c757d;
            text-align: center;
            padding: 1rem;
        }

        .image-preview-placeholder i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            color: #adb5bd;
        }

        .image-details {
            flex: 1;
        }

        .image-url {
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            color: #495057;
            margin-bottom: 1rem;
            word-break: break-all;
            background: white;
            padding: 0.8rem;
            border-radius: 6px;
            border: 1px solid #dee2e6;
        }

        .image-attributes {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .attribute-item {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }

        .attribute-label {
            font-size: 0.85rem;
            color: #6c757d;
            font-weight: 600;
        }

        .attribute-value {
            font-size: 0.95rem;
            color: #212529;
            word-break: break-word;
        }

        .attribute-value.empty {
            color: #adb5bd;
            font-style: italic;
        }

        .image-analysis {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px dashed #dee2e6;
        }

        .analysis-issues, .analysis-suggestions {
            margin-bottom: 1rem;
        }

        .analysis-title {
            font-weight: 600;
            color: #495057;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .issue-list, .suggestion-list {
            list-style: none;
            padding-left: 0;
        }

        .issue-list li, .suggestion-list li {
            padding: 0.5rem 0.8rem;
            margin-bottom: 0.5rem;
            border-radius: 6px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .issue-list li {
            background: #f8d7da;
            color: #721c24;
            border-left: 3px solid #dc3545;
        }

        .suggestion-list li {
            background: #d1ecf1;
            color: #0c5460;
            border-left: 3px solid #17a2b8;
        }

        .no-images {
            text-align: center;
            padding: 3rem;
            color: #6c757d;
        }

        .no-images i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #adb5bd;
        }

        .alt-recommendations {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 2rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .recommendations-list {
            list-style: none;
            padding-left: 0;
        }

        .recommendations-list li {
            padding: 1rem;
            margin-bottom: 0.8rem;
            border-radius: 8px;
            background: #f8f9fa;
            border-left: 4px solid #4ecdc4;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .alt-tips-section {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-top: 2rem;
        }

        .alt-tips-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .alt-tip-card {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 8px;
            border-left: 4px solid #ff6b6b;
        }

        .alt-tip-card h4 {
            color: #ff6b6b;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .alt-tip-card p {
            color: #495057;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .loading {
            display: none;
            text-align: center;
            padding: 2rem;
        }

        .loading-spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #ff6b6b;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .example-html {
            margin-top: 1rem;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #dee2e6;
        }

        .example-html h4 {
            color: #495057;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .example-code {
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            color: #212529;
            white-space: pre-wrap;
            word-break: break-all;
        }

        .method-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .method-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .alt-tool-main {
                padding-left: 40px;
                padding-right: 40px;
            }
        }

        @media (max-width: 1024px) {
            .alt-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .alt-tool-header {
                padding: 1.5rem;
            }
            
            .alt-tool-header h1 {
                font-size: 2rem;
            }
            
            .alt-tool-main {
                padding: 1.5rem;
                margin-top: 70px;
            }
            
            .alt-tool-container {
                padding: 1.5rem;
            }
            
            .alt-method-selector {
                flex-direction: column;
            }
            
            .alt-stats-grid {
                grid-template-columns: 1fr;
            }
            
            .images-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .images-filter {
                width: 100%;
                overflow-x: auto;
                padding-bottom: 0.5rem;
            }
            
            .alt-tips-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .alt-tool-main {
                margin-top: 60px;
            }
            
            .alt-btn {
                padding: 1rem 1.5rem;
                font-size: 0.95rem;
            }
            
            .image-attributes {
                grid-template-columns: 1fr;
            }
            
            .filter-btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }
        }
    
	  .seo-content-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
  }
  
  .seo-content-section .container {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .seo-content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #212529;
  }
  
  .seo-content-section h3 {
    color: #4361ee;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
  
  .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .content-block {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .content-block p {
    line-height: 1.7;
    color: #495057;
  }
  
  .seo-benefits {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .seo-benefits h3 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .seo-benefits ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
  }
  
  .seo-benefits li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
  }
  
  .seo-benefits p {
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.5rem;
  }
  
  @media (max-width: 768px) {
    .seo-content-section {
      padding: 2rem 1rem;
    }
    
    .seo-content-section h2 {
      font-size: 2rem;
    }
    
    .content-grid {
      grid-template-columns: 1fr;
    }
    
    .content-block,
    .seo-benefits {
      padding: 1.5rem;
    }
  }