/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-tech: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-light);
    font-size: 16px;
}

/* Main Container */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
}

.blog-post {
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-tech);
    color: white !important;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content * {
    color: white !important;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 1;
    color: white !important;
    font-weight: 500;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.breadcrumb span:last-child {
    font-weight: 700;
    color: white !important;
}

.blog-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: white !important;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.blog-meta span {
    background: rgba(255,255,255,0.25) !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-summary {
    font-size: 18px;
    line-height: 1.6;
    opacity: 1;
    max-width: 600px;
    color: white !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    font-weight: 400;
}

.hero-summary p {
    color: white !important;
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    margin: 0;
}

/* Featured Image Wrapper */
.featured-image-wrapper {
    background: var(--bg-white);
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.blog-featured-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: block;
    margin: 0 auto;
}

/* Content Wrapper */
.content-wrapper {
    padding: 40px;
}

/* Quick Tips Box */
.quick-tips-box {
    background: var(--gradient-tech);
    color: white !important;
    padding: 30px;
    margin: -20px 40px 40px;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-xl);
    z-index: 3;
}

.quick-tips-box * {
    color: white !important;
}

.quick-tips-box h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 700;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.quick-tips-box p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 1;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.lead-paragraph {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 32px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h2 {
    font-size: 32px;
    margin-top: 48px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-tech);
    border-radius: 2px;
}

h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Links */
.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.inline-link:hover {
    border-bottom-color: var(--primary-color);
}

/* Content with Image */
.content-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 32px 0;
}

.section-image {
    position: sticky;
    top: 20px;
}

.content-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Key Differences Grid */
.key-differences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.difference-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.difference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s;
}

.difference-card:hover::before {
    left: 100%;
}

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

.difference-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.difference-card h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 16px;
}

.difference-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Insight Box */
.insight-box {
    background: #f0f9ff;
    border-left: 5px solid var(--primary-color);
    padding: 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
    box-shadow: var(--shadow-sm);
}

.insight-box p {
    margin: 0;
    font-weight: 500;
}

/* Main Strategies Section */
.main-strategies {
    background: var(--bg-light);
    padding: 40px;
    margin: 0 -40px 48px;
    border-radius: 20px;
}

.section-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-style: italic;
}

.strategy-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.priority-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--danger-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strategy-content {
    margin-top: 16px;
}

/* Example Box */
.example-box {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    font-size: 14px;
}

.example-box h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 16px;
}

.before-after {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.before, .after {
    padding: 12px;
    border-radius: 6px;
}

.before {
    background: #fee2e2;
    border-left: 3px solid var(--danger-color);
}

.after {
    background: #dcfce7;
    border-left: 3px solid var(--success-color);
}

/* Formatting Grid */
.formatting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.format-do, .format-dont {
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.format-do {
    background: #f0fdf4;
    border: 2px solid var(--success-color);
}

.format-dont {
    background: #fef2f2;
    border: 2px solid var(--danger-color);
}

.format-do h4 {
    color: var(--success-color);
}

.format-dont h4 {
    color: var(--danger-color);
}

.format-do ul, .format-dont ul {
    list-style: none;
    margin: 16px 0 0 0;
}

.format-do li, .format-dont li {
    padding: 4px 0;
    font-size: 14px;
}

/* Tip Box */
.tip-box {
    background: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
}

/* Structure Steps */
.structure-steps {
    margin: 32px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    background: var(--gradient-tech);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    margin-bottom: 12px;
}

.step-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.step-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Warning Box */
.warning-box {
    background: #fef3c7;
    border: 2px solid var(--warning-color);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.warning-box h4 {
    color: var(--warning-color);
    margin-bottom: 8px;
}

/* Mistakes Grid */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.mistake-card {
    background: #fef2f2;
    border: 2px solid var(--danger-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.mistake-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.mistake-card h4 {
    color: var(--danger-color);
    margin-bottom: 12px;
    font-size: 16px;
}

.mistake-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Tips 2025 Grid */
.tips-2025-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.tip-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

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

.tip-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 16px;
}

.tip-card p {
    font-size: 14px;
    margin: 0;
}

/* Checklist */
.checklist {
    margin: 24px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.checklist-item label {
    cursor: pointer;
    font-weight: 500;
}

/* Format Comparison */
.format-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.format-option {
    padding: 24px;
    border-radius: 12px;
}

.format-option.recommended {
    background: #f0fdf4;
    border: 2px solid var(--success-color);
}

.format-option.not-recommended {
    background: #fef3c7;
    border: 2px solid var(--warning-color);
}

.format-option h4 {
    margin-bottom: 16px;
}

.format-option.recommended h4 {
    color: var(--success-color);
}

.format-option.not-recommended h4 {
    color: var(--warning-color);
}

/* Action Steps */
.action-steps {
    margin: 32px 0;
}

.action-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.action-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.action-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.action-content p {
    margin: 0;
    font-size: 14px;
}

/* Conclusion Section */
.conclusion {
    background: var(--bg-light);
    padding: 40px;
    margin: 48px -40px 0;
    border-radius: 20px 20px 0 0;
}

.key-takeaway {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.key-takeaway h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.next-steps {
    text-align: center;
    margin-top: 32px;
}

.next-steps h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

/* Related Articles */
.related-articles {
    background: var(--bg-white);
    padding: 40px;
    margin: 0 -40px;
    border-top: 1px solid var(--border-light);
}

/* Service Callout Box */
.service-callout {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 40px;
    margin: 32px 0;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.service-callout h3 {
    color: white !important;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-callout p {
    color: white !important;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.service-callout strong {
    color: white;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #1e3a8a !important;
    padding: 16px 32px;
    margin-top: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Related Articles */

.related-articles h3 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-size: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.related-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    text-decoration: none;
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h4 {
    padding: 20px 20px 12px;
    color: var(--text-primary);
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.related-card p {
    padding: 0 20px 12px;
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    flex-grow: 1;
    line-height: 1.5;
}

.read-more-link {
    display: inline-block;
    padding: 12px 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        margin: 0;
        box-shadow: none;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section * {
        color: white !important;
    }
    
    .blog-title {
        font-size: 28px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.4);
        color: white !important;
    }
    
    .hero-summary {
        font-size: 16px;
        text-shadow: 0 1px 4px rgba(0,0,0,0.3);
        color: white !important;
    }
    
    .hero-summary p {
        font-size: 16px;
        text-shadow: 0 1px 4px rgba(0,0,0,0.3);
        color: white !important;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-meta span {
        display: inline-block;
        width: fit-content;
        background: rgba(255,255,255,0.3) !important;
        border: 1px solid rgba(255,255,255,0.4);
        color: white !important;
    }
    
    .featured-image-wrapper {
        padding: 20px;
    }
    
    .blog-featured-image {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .quick-tips-box {
        margin: -10px 20px 20px;
        padding: 20px;
    }
    
    .quick-tips-box * {
        color: white !important;
    }
    
    .main-strategies {
        margin: 0 -20px 32px;
        padding: 20px;
    }
    
    .strategy-section {
        padding: 20px;
    }
    
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .key-differences-grid {
        grid-template-columns: 1fr;
    }
    
    .formatting-grid {
        grid-template-columns: 1fr;
    }
    
    .format-comparison {
        grid-template-columns: 1fr;
    }
    
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-2025-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .action-step {
        flex-direction: column;
        text-align: center;
    }
    
    .conclusion {
        margin: 32px -20px 0;
        padding: 20px;
    }
    
    .related-articles {
        padding: 20px;
        margin: 0 -20px;
    }
    
    .service-callout {
        padding: 24px;
        margin: 24px 0;
    }
    
    .service-callout h3 {
        font-size: 22px;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 16px;
        display: block;
        width: 100%;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 16px;
    }
    
    .hero-section * {
        color: white !important;
    }
    
    .blog-title {
        color: white !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }
    
    .hero-summary {
        color: white !important;
        text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }
    
    .hero-summary p {
        color: white !important;
        text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }
    
    .blog-meta span {
        color: white !important;
        background: rgba(255,255,255,0.3) !important;
    }
    
    .featured-image-wrapper {
        padding: 16px;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .quick-tips-box {
        margin: -8px 16px 16px;
        padding: 16px;
    }
    
    .quick-tips-box * {
        color: white !important;
    }
    
    .main-strategies {
        margin: 0 -16px 24px;
        padding: 16px;
    }
    
    .strategy-section {
        padding: 16px;
    }
    
    .conclusion {
        margin: 24px -16px 0;
        padding: 16px;
    }
    
    .related-articles {
        padding: 16px;
        margin: 0 -16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Print styles */
@media print {
    .blog-container {
        box-shadow: none;
    }
    
    .hero-section {
        background: var(--text-primary) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .related-articles {
        display: none;
    }
}