/* Custom Styles for Aiseocheckers */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-soft: rgba(67, 97, 238, 0.1);
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --success: #4cc9f0;
    --warning: #f72585;
    --purple: #7209b7;
}

/* Dark Mode Variables */
[data-theme-style="dark"] {
    --body-bg: #1a1d28;
    --card-bg: #252836;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #3a3f50;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

[data-theme-style="dark"] .hero-section {
    background: linear-gradient(135deg, #1a1d28 0%, #252836 100%);
}

.hero-shape-1, .hero-shape-2, .hero-shape-3 {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-soft);
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 100px;
    right: 100px;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 100px;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
}

.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.index-button {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.index-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.btn-primary.index-button {
    background: var(--gradient-primary);
    border: none;
}

.btn-outline-primary.index-button {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme-style="dark"] .btn-outline-primary.index-button {
    color: #e0e0e0;
}

.btn-outline-primary.index-button:hover {
    background: var(--primary);
    color: white;
}

.trust-indicators {
    opacity: 0.9;
}

/* Feature Cards */
.feature-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: var(--card-bg, white);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

[data-theme-style="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Steps */
.step-card {
    padding: 30px;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
}

/* Testimonials */
.testimonials {
    background: var(--gradient-primary);
    position: relative;
}

.testimonial-card {
    backdrop-filter: blur(10px);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
}

[data-theme-style="dark"] .testimonial-card {
    background: rgba(37, 40, 54, 0.95);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: inherit;
}

.testimonial-scroll-container {
    width: 300px;
    overflow: hidden;
}

.testimonial-scroll {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-scroll-item {
    flex: 0 0 auto;
    width: 300px;
}

.testimonial-mini {
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme-style="dark"] .testimonial-mini {
    background: rgba(37, 40, 54, 0.9);
}

/* CTA Section (Fixed Design) */
.cta-section {
    position: relative;
}

.cta-card {
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none !important;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0L1000,0L1000,1000L0,1000Z"></path></svg>');
    background-size: cover;
}

.cta-badge {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-secondary-button:focus,
.cta-secondary-button:active {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    box-shadow: none !important;
}

/* Primary button styles */
.cta-primary-button {
    background: white;
    color: #4361ee !important;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.cta-primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: #f8f9fa;
    color: #4361ee !important;
}

.cta-section .d-flex.flex-column.flex-sm-row {
    flex-wrap: wrap;
}

/* Contact Button Border Fix */
.cta-secondary-button {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hover effect for contact button */
.cta-secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Mobile view - buttons vertical */
@media (max-width: 576px) {
    .cta-section .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-section .btn:last-child {
        margin-bottom: 0;
    }
}

.cta-feature {
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

[data-theme-style="dark"] .cta-card {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

[data-theme-style="dark"] .cta-background {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.9) 0%, rgba(58, 12, 163, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0L1000,0L1000,1000L0,1000Z"></path></svg>');
}

/* FAQ */
.faq-accordion .card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg, white);
}

.faq-accordion .btn-link {
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

.faq-accordion .btn-link:hover {
    background-color: rgba(0,0,0,0.02);
}

[data-theme-style="dark"] .faq-accordion .btn-link:hover {
    background-color: rgba(255,255,255,0.05);
}

.faq-accordion .faq-toggle-icon {
    transition: transform 0.3s ease;
}

.faq-accordion .btn-link[aria-expanded="true"] .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Blog Section Styles */
.blog-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

[data-theme-style="dark"] .blog-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.blog-bg-shape-1, .blog-bg-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.05);
}

.blog-bg-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.blog-bg-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

.max-width-700 {
    max-width: 700px;
}

/* Modern Blog Card */
.modern-blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

[data-theme-style="dark"] .modern-blog-card {
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modern-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
}

[data-theme-style="dark"] .modern-blog-card:hover {
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.25);
}

/* Blog Image - Fixed Size (IMPORTANT FIX) */
.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px; /* Fixed height for desktop */
    max-height: 220px;
    display: block;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures image fits within container */
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.blog-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-image-link:hover .blog-image {
    transform: scale(1.05);
}

.blog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image-link:hover .blog-image-overlay {
    opacity: 1;
}

.read-more-overlay {
    color: white;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.blog-image-link:hover .read-more-overlay {
    transform: translateY(0);
}

/* Category Badge */
.blog-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.blog-category-badge .badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Blog Content */
.blog-content {
    padding: 25px;
}

/* Blog Meta */
.blog-meta {
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

[data-theme-style="dark"] .blog-meta {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blog Title */
.blog-title {
    color: #2d3748;
    transition: color 0.3s ease;
    line-height: 1.4;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme-style="dark"] .blog-title {
    color: #e2e8f0;
}

.blog-title:hover {
    color: var(--primary);
}

/* Blog Description */
.blog-description {
    line-height: 1.7;
    min-height: 85px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Footer */
.blog-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme-style="dark"] .blog-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-read-more {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary-dark) !important;
    transform: translateX(5px);
}

.blog-stats {
    font-size: 0.8rem;
}

/* Mobile Blog Spacing Fix */
@media (max-width: 992px) {
    .blog-section .row.g-5 > .col-12.col-lg-4 {
        margin-bottom: 2.5rem !important;
    }
    
    .blog-section .row.g-5 > .col-12.col-lg-4:last-child {
        margin-bottom: 0 !important;
    }
    
    .blog-image-wrapper {
        height: 200px;
        max-height: 200px;
    }
    
    .blog-section {
        padding: 4rem 0;
    }
    
    .blog-title {
        min-height: 60px;
        font-size: 1.1rem;
    }
    
    .blog-description {
        min-height: 75px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .blog-section .row.g-5 > .col-12.col-lg-4 {
        margin-bottom: 2rem !important;
    }
    
    .blog-image-wrapper {
        height: 180px;
        max-height: 180px;
    }
    
    .blog-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    /* Individual card spacing for mobile */
    .modern-blog-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-section .row.g-5 > .col-12.col-lg-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .blog-image-wrapper {
        height: 160px;
        max-height: 160px;
    }
    
    .blog-section {
        padding: 2.5rem 0;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-wrap: wrap;
    }
    
    .blog-read-time {
        margin-left: 0 !important;
        margin-top: 5px;
        width: 100%;
    }
}

/* Dark Mode Text Colors */
[data-theme-style="dark"] body {
    color: var(--text-color);
}

[data-theme-style="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme-style="dark"] .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme-style="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme-style="dark"] .border-top {
    border-top-color: var(--border-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons-wrapper .d-flex {
        flex-direction: column;
    }
    
    .cta-buttons-wrapper .mr-lg-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .testimonial-scroll-container {
        width: 200px;
    }
    
    .stat-number.display-4 {
        font-size: 2.5rem;
    }
    
    .cta-primary-button,
    .cta-secondary-button {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-primary-button.mr-sm-3 {
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .feature-card .card-body,
    .testimonial-card .card-body {
        padding: 2rem !important;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .cta-card .card-body {
        padding: 2rem !important;
    }
    
    /* Extra small devices blog spacing */
    .modern-blog-card {
        margin: 0 0.5rem 1rem 0.5rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* SEO Check Categories */
.check-category {
    border-radius: 15px;
    transition: transform 0.3s ease;
    background: var(--card-bg, white);
}

.check-category:hover {
    transform: translateY(-5px);
}

.check-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rating Stars */
.rating-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .blog-card:hover,
    .check-category:hover {
        transform: none;
    }
    
    .index-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Larger tap targets for mobile */
    .btn, .card, .feature-card {
        min-height: 44px;
    }
}

/* Print styles */
@media print {
    .hero-section,
    .testimonials,
    .cta-section {
        break-inside: avoid;
    }
}