:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f1f5f9;
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-icon {
    color: var(--primary-color);
}

.logo-sub {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 5px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.lang-switch {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    border: none;
    background: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
}

/* Form */
.analysis-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    font-family: 'Inter', monospace;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.helper-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Config Section */
.config-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.upload-item {
    grid-column: span 1;
}

.file-upload-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.upload-label:hover {
    background: var(--input-bg);
}

.file-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Prompt Section */
.prompt-section {
    margin-bottom: 40px;
}

.prompt-chips {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 16px;
    background: #eff6ff;
    color: var(--primary-color);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: #dbeafe;
}

#custom-prompt {
    min-height: 100px;
}

/* Submit Button */
.submit-section {
    text-align: center;
}

.submit-btn {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .config-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-nav {
        display: none;
        /* Simplify for mobile for now */
    }
}

/* Cases Page Styles */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.case-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.case-tag {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.case-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.case-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.case-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.case-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.case-link:hover {
    text-decoration: underline;
}

/* Payment Page Styles */
.payment-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.preview-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.status-badge {
    background: #fef3c7;
    color: #d97706;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.preview-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.preview-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.chart-placeholder {
    height: 200px;
    background: #f1f5f9;
    border-radius: 12px;
    margin: 20px 0;
}

.blur-effect {
    filter: blur(4px);
    user-select: none;
    opacity: 0.6;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10;
}

.lock-icon {
    background: white;
    padding: 16px;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    color: var(--primary-color);
}

.payment-action {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    height: fit-content;
    text-align: center;
}

.price-tag {
    margin-bottom: 24px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-right: 8px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.discount-badge {
    display: block;
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    margin: 8px auto 0;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.feature-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.unlock-btn {
    width: 100%;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.unlock-btn:hover {
    transform: translateY(-2px);
}

.guarantee-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .payment-container {
        grid-template-columns: 1fr;
    }
}

/* Landing Page Styles */
.landing-page {
    max-width: 1200px;
}

.landing-hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn.primary {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.cta-btn.secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Steps */
.steps-section {
    margin-bottom: 80px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-item h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step-item p {
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials-section {
    margin-bottom: 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.rating {
    font-size: 0.9rem;
}

/* FAQ */
.faq-section {
    margin-bottom: 80px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.faq-item {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.faq-question {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-submit-btn {
    width: 100%;
    margin-top: 12px;
}

/* Progress Overlay Styles */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-overlay.active {
    display: flex;
    opacity: 1;
}

.progress-container {
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.progress-icon {
    color: var(--primary-color);
    margin-bottom: 24px;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.progress-status {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
    min-height: 1.5em;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Payment Preview Styles */
.payment-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.preview-section {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
    overflow: hidden;
}

.preview-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.preview-header h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fff7ed;
    color: #c2410c;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #ffedd5;
}

.preview-content-visible {
    margin-bottom: 0;
}

.preview-content-blurred {
    filter: blur(12px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
    margin-top: 20px;
    background: white;
}

.lock-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    /* Cover the bottom half */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding-top: 40px;
}

.lock-icon {
    background: var(--primary-color);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.lock-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lock-overlay p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.lock-sub {
    font-size: 0.9rem;
    color: #ef4444 !important;
    font-weight: 500;
}

.payment-action {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.price-tag {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.discount-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    max-width: 400px;
    text-align: left;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.unlock-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 400px;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.guarantee-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-methods {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-summary {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.read-more-btn:hover {
    gap: 8px;
}

/* Blog Template Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

.blog-article {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
}

.article-content {
    line-height: 1.8;
    color: var(--text-main);
}

.article-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 20px;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.related-list {
    list-style: none;
    padding: 0;
}

.related-item {
    margin-bottom: 15px;
}

.related-item a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
}

.related-item a:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BLOG STYLES - Semrush-inspired Layout
   ============================================ */

/* Featured Post Section */
.featured-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 48px;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.featured-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    display: inline-block;
    padding: 6px 14px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.featured-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blog Grid Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 20px 0 60px;
}

/* Blog Card Link Wrapper */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-image-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive Blog Layout */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .featured-content {
        padding: 32px 24px;
    }

    .featured-title {
        font-size: 1.6rem;
    }
}

/* ===== Homepage Features & Testimonials Grid ===== */
/* Features Section - 3 columns */
.features-section {
    margin: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section - 3 columns */
.testimonials-section {
    margin: 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-main);
}

.user-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.testimonial-text {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 15px;
}

.rating {
    font-size: 1.2rem;
}

/* Responsive - Tablet */
@media (max-width: 968px) {

    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card,
    .testimonial-card {
        padding: 30px 20px;
    }
}