/* PDF to JPG - Main Stylesheet */
/* Primary Brand Color: #F54927 */

:root {
    --primary: #F54927;
    --primary-dark: #d93d1f;
    --primary-light: #ff6b4a;
    --primary-rgb: 245, 73, 39;
    --dark: #1a1a2e;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-md: 0 6px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #f8f9fa;
    --text-secondary: #ced4da;
    --text-muted: #adb5bd;
    --border-color: #374151;
    --gray-100: #16213e;
    --gray-200: #1f2937;
    --gray-300: #374151;
    --gray-800: #e5e7eb;
    --gray-900: #f9fafb;
    --white: #1a1a2e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-md: 0 6px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

.container-narrow {
    max-width: 800px;
}

/* Buttons */
.btn,
.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--text-primary);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff !important;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-nav-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    background: var(--bg-secondary);
    padding: 50px 0 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero h1 span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Converter Section */
.converter-section {
    padding: 60px 0 60px;
    background: var(--bg-secondary);
}

.converter-wrapper {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-secondary);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.upload-area.has-file {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* Compact upload area when files are selected */
.upload-area.compact {
    padding: 20px;
    border-style: dashed;
    border-width: 2px;
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.03);
}

.upload-area.compact .upload-icon,
.upload-area.compact .upload-title {
    display: none;
}

.upload-area.compact .upload-text {
    display: block;
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upload-area.compact .upload-btn {
    margin: 0;
    padding: 12px 24px;
    font-size: 0.95rem;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.upload-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.upload-btn {
    display: inline-block;
}

#file-input {
    display: none;
}

/* Files List */
.files-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.file-item-details h5 {
    font-size: 0.9rem;
    margin: 0 0 2px;
    color: var(--text-primary);
}

.file-item-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-item-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-muted);
    transition: var(--transition);
}

.file-item-remove:hover {
    color: #ef4444;
}

/* Conversion Settings */
.settings-panel {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.settings-panel.active {
    display: block;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.file-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.file-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.file-details p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.setting-select,
.setting-input {
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.setting-input {
    padding: 12px 15px;
    background-image: none;
}

.setting-select:focus,
.setting-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.page-selection {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.page-range-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 150px;
    font-size: 0.9rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.convert-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Progress Section */
.progress-section {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.progress-section.active {
    display: block;
}

.progress-bar-wrapper {
    background: var(--gray-300);
    border-radius: 50px;
    height: 20px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 50px;
}

.progress-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Results Section */
.results-section {
    display: none;
    margin-top: 30px;
}

.results-section.active {
    display: block;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-title svg {
    width: 28px;
    height: 28px;
    fill: #22c55e;
}

.results-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.image-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.image-preview {
    position: relative;
    padding-top: 141.4%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-info {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.image-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 50px);
}

.image-download {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    background: var(--primary);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.image-download:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.image-download svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 35px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-muted);
}

.step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

.step:last-child::after {
    display: none;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: var(--gray-900);
    color: var(--white);
}

[data-theme="dark"] .trust-section {
    background: #0f0f1a;
}

.trust-section .section-header h2 {
    color: #ffffff;
}

.trust-section .section-header p {
    color: #9ca3af;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 30px;
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.trust-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
}

.trust-item h3 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.trust-item p {
    color: #9ca3af;
    margin: 0;
}

/* SEO Content Section - Enhanced Design */
.seo-content {
    padding: 80px 0;
    background: var(--bg-primary);
}

.seo-content .container {
    max-width: 1000px;
}

.seo-content .section-header {
    margin-bottom: 50px;
}

/* Content Box Styles */
.content-box {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.content-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.content-box-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.content-box-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.content-box-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.content-box-title {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-primary);
    border: none;
    padding: 0;
    font-weight: 700;
}

.content-box-title-wrapper {
    flex: 1;
    padding-top: 2px;
}

.content-box-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.content-box p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1rem;
}

.content-box h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
    border: none;
    padding: 0;
}

.content-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.08) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.content-box h3::before {
    display: none;
}

.content-box h3:first-of-type {
    margin-top: 0;
}

.content-box ul,
.content-box ol {
    margin: 0 0 1.25rem 0;
    padding-left: 0;
    list-style: none;
    color: var(--text-secondary);
}

.content-box ul:not(.tips-list) li,
.content-box ol li {
    margin-bottom: 10px;
    line-height: 1.7;
    padding-left: 28px;
    position: relative;
}

.content-box ul:not(.tips-list) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.content-box ol {
    counter-reset: list-counter;
}

.content-box ol li::before {
    counter-increment: list-counter;
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Grid for 2 columns */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.content-grid .content-box {
    margin-bottom: 0;
}

.content-grid .content-box-header {
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* Highlight Box */
.content-box.highlight {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    border-color: rgba(var(--primary-rgb), 0.15);
    position: relative;
    overflow: hidden;
}

.content-box.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

[data-theme="dark"] .content-box.highlight {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.12) 100%);
}

/* Tips Box */
.tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tips-list li:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateX(5px);
}

.tips-list li:last-child {
    margin-bottom: 0;
}

.tips-list .tip-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.tips-list .tip-icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.tips-list li span:last-child {
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* Inline FAQ within Content */
.content-faq {
    margin-top: 10px;
}

.content-faq .faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.content-faq .faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

.content-faq .faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
}

.content-faq .faq-question {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
    font-family: inherit;
}

.content-faq .faq-question:hover {
    background: rgba(var(--primary-rgb), 0.03);
}

.content-faq .faq-item.active .faq-question {
    background: rgba(var(--primary-rgb), 0.05);
}

.content-faq .faq-question span {
    flex: 1;
    padding-right: 15px;
}

.content-faq .faq-icon {
    width: 28px;
    height: 28px;
    padding: 4px;
    fill: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
}

.content-faq .faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--primary);
    fill: #ffffff;
}

.content-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.content-faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.content-faq .faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-top: 5px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.content-faq .faq-answer a {
    color: var(--primary);
    font-weight: 500;
}

.content-faq .faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Content Box */
.content-box.cta-content {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.content-box.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.content-box.cta-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.4);
}

.content-box.cta-content .content-box-title {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.content-box.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content-box.cta-content .btn {
    background: #ffffff;
    color: var(--primary) !important;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.content-box.cta-content .btn:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* SEO Content - Only apply to direct children or wrapper, not content-boxes */
.seo-content-wrapper {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    border-radius: var(--radius-xl);
    padding: 50px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

[data-theme="dark"] .seo-content-wrapper {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
}

/* Only apply to seo-content-wrapper children, NOT content-boxes */
.seo-content-wrapper > h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-left: 15px;
    border-left: 4px solid var(--primary);
}

.seo-content-wrapper > h2:first-child {
    margin-top: 0;
}

.seo-content-wrapper > h3 {
    font-size: 1.35rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary);
}

.seo-content-wrapper > p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.seo-content-wrapper > ul,
.seo-content-wrapper > ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.seo-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    position: relative;
}

.seo-content ul li::marker {
    color: var(--primary);
}

.seo-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--primary);
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon svg {
    fill: #ffffff;
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 25px 25px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--text-primary);
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    gap: 10px;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #9ca3af;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo img {
    height: 45px;
}

.footer-about p {
    margin: 0;
    line-height: 1.7;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    transition: var(--transition);
}

.social-icon:hover svg {
    fill: #ffffff;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .made-with-love {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Blog Listing Page */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 50px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.blog-listing {
    padding: 60px 0;
    background: var(--bg-primary);
}

/* Blog Post Page */
.post-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 60px 0 40px;
}

.post-header .container {
    max-width: 900px;
}

.post-title {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.post-featured-image {
    margin: -20px auto 40px;
    max-width: 900px;
    padding: 0 20px;
}

.post-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Table of Contents */
.toc-wrapper {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.toc-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    overflow: hidden;
}

.toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
}

.toc-toggle:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.toc-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    transition: var(--transition);
}

.toc-toggle.active svg {
    transform: rotate(180deg);
}

.toc-content {
    display: none;
    padding: 0 25px 25px;
}

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

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
    transition: var(--transition);
}

.toc-list a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.toc-list .toc-h3 {
    padding-left: 20px;
    font-size: 0.9rem;
}

/* Post Content */
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.post-content h2 {
    font-size: 1.75rem;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.post-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.post-content h3 {
    font-size: 1.35rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.post-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.post-content li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--primary-dark);
}

/* CTA Box in Posts */
.cta-box {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cta-box .btn {
    text-decoration: none !important;
}

.cta-box .btn:hover {
    text-decoration: none !important;
}

/* Related Posts */
.related-posts {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Static Pages */
.static-page {
    padding: 40px 0 60px;
    background: var(--bg-primary);
}

.static-page .container {
    max-width: 900px;
}

.static-page h1 {
    margin-bottom: 30px;
    color: var(--text-primary);
}

.static-page h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.static-page h2:first-of-type {
    margin-top: 0;
}

.static-page h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.static-page p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.static-page ul {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.static-page li {
    margin-bottom: 8px;
}

.static-page a {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step::after {
        display: none;
    }

    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .post-title { font-size: 1.85rem; }

    .seo-content-wrapper {
        padding: 35px;
    }
}

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

    .content-box {
        padding: 25px;
    }

    .content-box-header {
        flex-direction: column;
        gap: 15px;
    }

    .content-box-icon {
        width: 50px;
        height: 50px;
    }

    .content-box-icon svg {
        width: 24px;
        height: 24px;
    }

    .content-box-title {
        font-size: 1.3rem;
    }

    .content-faq .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }

    .header-right {
        gap: 10px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 15px;
        border-top: 1px solid var(--border-color);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 30px 0 0;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .content-box.cta-content {
        padding: 35px 25px;
    }

    .content-box.cta-content .content-box-title {
        font-size: 1.4rem;
    }

    .tips-list li {
        padding: 14px 15px;
    }

    .converter-wrapper {
        padding: 20px;
        margin-top: -30px;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .upload-area.compact {
        padding: 15px;
    }

    .upload-area.compact .upload-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .image-name {
        font-size: 0.75rem;
        max-width: calc(100% - 45px);
    }

    .image-info {
        padding: 10px;
    }

    .image-download {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .settings-panel {
        padding: 20px;
    }

    .settings-header {
        justify-content: center;
    }

    .settings-title {
        text-align: center;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        padding: 0 5px;
    }

    .setting-select {
        width: 100%;
    }

    .features-section,
    .how-it-works,
    .trust-section,
    .seo-content,
    .blog-section,
    .faq-section {
        padding: 50px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .logo {
        display: flex;
        justify-content: center;
    }

    .footer-about .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .post-title {
        font-size: 1.6rem;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .seo-content-wrapper {
        padding: 25px 20px;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .convert-actions {
        flex-direction: column;
    }

    .convert-actions .btn {
        width: 100%;
    }

    .results-actions {
        flex-direction: column;
        width: 100%;
    }

    .results-actions .btn {
        width: 100%;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .toc-wrapper,
    .cta-box,
    .related-posts {
        display: none;
    }

    .post-content {
        max-width: 100%;
    }
}
