/* ============================================================================
   COMPACT FEATURED CARDS - HORIZONTAL SCROLL OPTIMIZATION
   Smaller cards with clean horizontal scrolling
   ============================================================================ */

/* Featured Track - Horizontal Scroll Container */
.featured-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    margin: 0;
}

/* Hide scrollbar but keep functionality */
.featured-track::-webkit-scrollbar {
    height: 3px;
}

.featured-track::-webkit-scrollbar-track {
    background: transparent;
}

.featured-track::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.3);
    border-radius: 10px;
}

/* Compact Featured Item Cards */
.featured-item {
    flex: 0 0 160px;
    max-width: 160px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .featured-item {
        flex: 0 0 170px;
        max-width: 170px;
    }
}

@media (min-width: 768px) {
    .featured-item {
        flex: 0 0 180px;
        max-width: 180px;
    }
}

@media (min-width: 1024px) {
    .featured-item {
        flex: 0 0 200px;
        max-width: 200px;
    }
}

/* Hover Effects */
.featured-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.featured-item:active {
    transform: translateY(-1px);
}

/* Featured Item Image */
.feat-thumb {
    width: 100%;
    aspect-ratio: 2.5 / 3 !important;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    overflow: hidden;
    position: relative;
}

.feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.featured-item:hover .feat-thumb img {
    transform: scale(1.05);
}

/* Featured Item Content */
.feat-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}

.feat-body h4 {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feat-body .meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feat-body .price {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a3a8a;
    margin: 0;
}

/* Featured Section Container */
.featured-section {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    overflow: hidden;
}

.featured-section:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

.featured-section .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 0;
}

.featured-section .page-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.featured-section .button {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 8px 16px;
    min-height: 36px;
    white-space: nowrap;
}

/* Featured Container Overall */
.featured-container {
    padding: 12px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.featured-container .featured-section {
    padding: 12px 0;
}

@media (max-width: 768px) {
    .featured-container {
        padding: 8px 0 !important;
    }
    
    .featured-section {
        padding: 10px 0;
    }
    
    .featured-section .page-header {
        margin-bottom: 10px;
    }
    
    .featured-section .page-header h2 {
        font-size: 1.15rem;
    }
    
    .featured-item {
        flex: 0 0 150px !important;
        max-width: 150px !important;
    }
    
    .feat-body {
        padding: 8px;
    }
    
    .feat-body h4 {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .feat-body .meta {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    
    .feat-body .price {
        font-size: 0.85rem;
    }
}

/* Clean Section Card Spacing */
.section-card {
    padding: 16px 0 !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.section-card.site-section {
    padding: 20px 0 !important;
}

@media (max-width: 768px) {
    .section-card {
        padding: 12px 0 !important;
        margin-bottom: 16px !important;
    }
    
    .section-card.site-section {
        padding: 16px 0 !important;
    }
}

/* Page Header Standardization */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    flex: 1;
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 12px;
        gap: 8px;
    }
    
    .page-header h2 {
        font-size: 1.2rem;
    }
}

/* Step Cards - How It Works */
.step-card {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    transition: all 250ms ease;
}

.step-card:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

/* FAQ Cards */
.faq-card {
    padding: 14px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 250ms ease;
}

.faq-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Policy Cards */
.policy-card {
    padding: 16px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 250ms ease;
}

.policy-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Reduce overall spacing */
@media (max-width: 768px) {
    .step-card,
    .faq-card,
    .policy-card {
        padding: 12px;
    }
    
    .step-card h3 {
        font-size: 0.95rem !important;
        margin: 8px 0 4px !important;
    }
    
    .step-card p,
    .faq-card p,
    .policy-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }
}

/* Clean listing cards */
.listing-card {
    border-radius: 10px !important;
    overflow: hidden;
    transition: all 250ms ease;
}

.listing-card:hover {
    transform: translateY(-2px);
}

/* Main Container Cleanup */
main {
    padding: 0;
}

/* Section Margins Optimization */
.steps-section,
.faq-section,
.policy-section,
.contact-section {
    margin-bottom: 24px !important;
    padding: 16px 0 !important;
}

@media (max-width: 768px) {
    .steps-section,
    .faq-section,
    .policy-section,
    .contact-section {
        margin-bottom: 18px !important;
        padding: 12px 0 !important;
    }
}
