/* ==========================================================================
   SHAPWORK - HOME PAGE BEAUTIFICATION & AESTHETIC ENHANCEMENT
   ========================================================================== */

/* 1. TYPOGRAPHY IMPORT & RESET OVERRIDES */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

body,
button,
input,
select,
textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Elegant Serifs for headings and quotes */
.serif-accent { 
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic;
    font-weight: 400;
} 

/* Modernize global spacing & scroll behavior */
html {
    scroll-behavior: smooth;
}

/* 2. OVERRIDING SPECIFIC INDEX ELEMENTS (WITH !IMPORTANT TO BEAT JS INLINE STYLE IN FOOTER) */

/* Global Roundness Enforcements */
.btn,
.cta-button,
.search-bar,
.search-bar button,
.search-bar input,
.newsletter-form input,
.newsletter-form button {
    border-radius: 50px;
}

.gig-card,
.category-card,
.step,
.testimonial-card,
.talent-card,
.faq-item {
    border-radius: 16px;
}

.freelancer-avatar,
.step-icon,
.talent-avatar,
.avatar-wrapper {
    border-radius: 50% !important;
}

/* Hero Section Refinements */
.hero {
    height: 650px !important;
    background: linear-gradient(135deg, #001F3F 0%, #000D1F 100%) !important;
}

.hero h2 {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -1px;
    margin-bottom: 1.2rem !important;
}

.hero p {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 2rem !important;
}

.hero::after {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 13, 31, 0.4) 100%) !important;
}

/* Hero Search Bar Beautiful Modernization */
.search-bar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 6px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15) !important;
}

.search-bar input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding-left: 20px !important;
    font-size: 0.95rem !important;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.search-bar button {
    background: var(--gold-gradient) !important;
    color: var(--primary-color) !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.search-bar button:hover {
    background: var(--secondary-dark) !important;
    transform: scale(1.02);
}

/* Category Cards Polish */
.category-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 5px 20px rgba(0, 31, 63, 0.03) !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease !important;
}

.category-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 31, 63, 0.08) !important;
    border-color: var(--secondary-color) !important;
}

.category-card .icon {
    font-size: 2.2rem !important;
    color: var(--primary-color) !important;
    background: rgba(0, 31, 63, 0.04);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 1.5rem !important;
    transition: all 0.3s ease;
}

.category-card:hover .icon {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: rotate(3deg) scale(1.05);
}

/* Dark mode for categories icon */
[data-theme="dark"] .category-card .icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color) !important;
}

[data-theme="dark"] .category-card:hover .icon {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
}

/* ============================================================
   GIG CARDS — PREMIUM REDESIGN
   ============================================================ */

.featured-gigs {
    background-color: var(--light-color) !important;
    padding: 5rem 0;
}

/* Section header with subtitle */
.featured-gigs .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.featured-gigs .section-header .section-title {
    margin-bottom: 0;
}

.featured-gigs .section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Grid: 4 col → 2 col → 1 col */
.featured-gigs .gig-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 1100px) {
    .featured-gigs .gig-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .featured-gigs .gig-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .featured-gigs .gig-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Card Base */
.gig-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.32s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.25s ease !important;
    box-shadow: 0 2px 12px rgba(0, 31, 63, 0.04) !important;
}

.gig-card:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 20px 45px rgba(0, 31, 63, 0.09) !important;
    border-color: rgba(0, 31, 63, 0.15) !important;
}

/* Thumbnail */
.gig-thumbnail {
    position: relative;
    overflow: hidden;
    height: 190px;
    background: var(--light-color);
    flex-shrink: 0;
}

.gig-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.gig-card:hover .gig-thumbnail img {
    transform: scale(1.08) !important;
}

/* Hover overlay quick-view button */
.gig-overlay-actions {
    position: absolute;
    inset: 0;
    background: rgba(0, 13, 31, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.gig-card:hover .gig-overlay-actions {
    opacity: 1;
}

.gig-quick-view {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color) !important;
    font-size: 1rem;
    text-decoration: none;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gig-card:hover .gig-quick-view {
    transform: scale(1);
}

/* Featured badge */
.gig-badge.featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px !important;
    z-index: 4;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Category tag bottom-left of thumbnail */
.gig-category-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 13, 31, 0.65);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px !important;
    z-index: 4;
    letter-spacing: 0.3px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Body */
.gig-content {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Seller row */
.gig-seller-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.85rem;
}

.gig-seller-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.gig-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.gig-avatar-wrap .freelancer-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--border-color) !important;
    display: block;
}

.gig-seller-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid var(--bg-card);
    border-radius: 50% !important;
}

.freelancer-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.gig-verify-icon {
    color: #3b82f6;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Inline star rating below name */
.gig-inline-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.gig-inline-rating i {
    font-size: 0.65rem;
}

.gig-inline-rating span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 4px;
    font-weight: 500;
}

.gig-new-tag {
    font-size: 0.7rem !important;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 1px 6px;
    border-radius: 20px !important;
    font-weight: 700 !important;
    margin-left: 4px;
}

[data-theme="dark"] .gig-new-tag {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

/* Gig title — 2-line clamp */
.gig-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--dark-color) !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Footer bar: price left, CTA right */
.gig-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

.gig-price-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.gig-price-from {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.gig-price-amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

[data-theme="dark"] .gig-price-amount {
    color: var(--secondary-color);
}

.gig-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-color);
    color: white !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px !important;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.gig-cta-btn:hover {
    background: var(--secondary-dark) !important;
    color: var(--primary-color) !important;
    transform: translateX(2px);
}

/* Empty state */
.gig-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.gig-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    display: block;
}

.gig-empty-state p {
    font-size: 1rem;
    font-weight: 500;
}


/* Testimonial Section Polish */
.testimonials {
    background-color: var(--light-color) !important;
}

.testimonial-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 8px 30px rgba(0, 31, 63, 0.03) !important;
    padding: 40px 30px !important;
    transition: transform 0.4s ease !important;
}

.testimonial-card:hover {
    transform: translateY(-5px) !important;
}

.testimonial-card .quote {
    color: var(--secondary-color) !important;
    opacity: 0.8 !important;
    position: relative !important;
    font-size: 2rem !important;
    margin-bottom: 0.5rem;
}

/* CTA and footer overrides */
.cta {
    background: linear-gradient(135deg, #001F3F 0%, #000D1F 100%) !important;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.cta-buttons .btn-primary {
    background: var(--gold-gradient) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--secondary-color) !important;
    font-weight: 700 !important;
}

.cta-buttons .btn-primary:hover {
    background: var(--secondary-dark) !important;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}

.cta-buttons .btn-secondary:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}


/* ==========================================================================
   3. NEW SECTIONS STYLING
   ========================================================================== */

/* --- Trust Stats Banner --- */
.trust-stats-section {
    padding: 3rem 0;
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color);
    margin-top: -30px;
    position: relative;
    z-index: 20;
}

.stats-card-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 31, 63, 0.04);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.stat-number span {
    color: var(--secondary-dark);
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stat-item::after {
        display: none !important;
    }
}

/* --- Why Choose Shapwork --- */
.why-shapwork-section {
    padding: 6rem 0;
    background-color: var(--light-color) !important;
}

[data-theme="dark"] .why-shapwork-section {
    background-color: var(--bg-body) !important;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 31, 63, 0.01);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 31, 63, 0.06);
    border-color: var(--secondary-color);
}

.why-card-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 31, 63, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.why-card:hover .why-card-icon {
    background: var(--primary-color);
    color: white;
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Top Talent Showcase --- */
.talent-showcase-section {
    padding: 6rem 0;
    background-color: var(--bg-body) !important;
}

.talent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.talent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 31, 63, 0.02);
}

.talent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 31, 63, 0.07);
    border-color: var(--border-color);
}

.avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.25rem;
}

.talent-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.talent-card:hover .talent-avatar {
    border-color: var(--secondary-color);
}

.status-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background-color: var(--success-color);
    border: 3px solid var(--bg-card);
    border-radius: 50% !important;
}

.talent-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.verify-badge {
    color: #3b82f6;
    font-size: 0.9rem;
}

.talent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.talent-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 1.25rem;
    height: 28px;
    overflow: hidden;
}

.talent-skills span {
    font-size: 0.75rem;
    background: rgba(0, 31, 63, 0.05);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 20px !important;
    font-weight: 600;
}

[data-theme="dark"] .talent-skills span {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
}

.talent-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.talent-rating i {
    color: #eab308;
}

.talent-rating span {
    color: var(--text-muted);
    font-weight: 400;
}

.talent-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.talent-btn:hover {
    color: var(--secondary-dark);
}

@media (max-width: 992px) {
    .talent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .talent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .talent-card {
        padding: 1rem 0.5rem;
    }

    .avatar-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }

    .talent-name {
        font-size: 0.85rem;
        gap: 0.2rem;
    }

    .talent-title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .talent-skills {
        height: auto;
        gap: 4px;
        margin-bottom: 0.8rem;
    }

    .talent-skills span {
        font-size: 0.65rem;
        padding: 2px 4px;
    }

    .talent-rating {
        font-size: 0.75rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.8rem;
    }

    .talent-btn {
        font-size: 0.75rem;
    }
}

/* --- Pure-CSS FAQS Section --- */
.faq-section {
    padding: 6rem 0;
    background-color: var(--light-color) !important;
}

.faq-wrapper {
    max-width: 800px;
    margin: 3.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-color);
    cursor: pointer;
    list-style: none;
    /* Hide default selector */
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
    /* Hide default webkit selector */
}

.faq-icon::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    display: inline-block;
}

[data-theme="dark"] .faq-icon::before {
    color: var(--secondary-color);
}

/* Custom Open Rotations */
.faq-item[open] summary .faq-icon::before {
    transform: rotate(180deg);
}

.faq-item[open] {
    box-shadow: 0 10px 25px rgba(0, 31, 63, 0.04) !important;
    border-color: var(--secondary-color) !important;
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid transparent;
    animation: slideDown 0.35s ease-out;
}

.faq-item[open] .faq-content {
    border-top-color: var(--border-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Premium Newsletter Banner --- */
.newsletter-section {
    padding: 5rem 0;
    background: var(--bg-body) !important;
}

.newsletter-card {
    background: linear-gradient(135deg, #001F3F 0%, #000D1F 100%) !important;
    border-radius: 20px !important;
    padding: 4.5rem 3rem;
    text-align: center;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 31, 63, 0.25);
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, transparent 60%);
    z-index: 1;
}

.newsletter-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white !important;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.newsletter-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px;
    transition: all 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.newsletter-form input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 12px 20px !important;
    outline: none;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: var(--gold-gradient) !important;
    color: var(--primary-color) !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.newsletter-form button:hover {
    background: var(--secondary-dark) !important;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
        background: transparent !important;
        border: none !important;
        gap: 1rem;
        padding: 0 !important;
    }

    .newsletter-form input {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .newsletter-form button {
        width: 100%;
        padding: 15px !important;
    }

    .newsletter-card {
        padding: 3rem 1.5rem !important;
    }
}

/* --- Quick Links Sidebar & Grid --- */
.gigs-sidebar-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
    margin-top: 2rem;
}

.main-gigs-content {
    min-width: 0;
}

.home-sidebar {
    position: sticky;
    top: 90px;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.02) !important;
}

.sidebar-widget {
    margin-bottom: 2.2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

[data-theme="dark"] .sidebar-widget h3 {
    color: var(--secondary-color) !important;
}

.sidebar-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
}

.sidebar-link-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    color: var(--text-color);
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
}

.sidebar-link-item i {
    width: 20px;
    color: var(--primary-color);
    text-align: center;
    font-size: 0.95rem !important;
    transition: color 0.25s ease !important;
}

[data-theme="dark"] .sidebar-link-item i {
    color: var(--secondary-color) !important;
}

.sidebar-link-item:hover {
    color: var(--secondary-dark) !important;
    transform: translateX(4px) !important;
}

.sidebar-link-item:hover i {
    color: var(--secondary-color)
}

.sidebar-info-card {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.04) 0%, rgba(0, 13, 31, 0.01) 100%) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.sidebar-info-card:last-child {
    margin-bottom: 0 !important;
}

.sidebar-info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .sidebar-info-card h4 {
    color: var(--secondary-color) !important;
}

.sidebar-info-card p {
    font-size: 0.82rem !important;
    color: var(--text-color) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

@media (max-width: 992px) {
    .gigs-sidebar-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .home-sidebar {
        position: static !important;
        margin-top: 2rem !important;
    }
}

/* ==========================================================================
   FEATURED GIGS — LAZY LOAD SKELETON + REVEAL
   ========================================================================== */

/* ── 1. Pre-reveal base state ───────────────────────────────────────────── */
.lazy-card {
    opacity: 0;
    transform: translateY(38px);
}

/* ── 2. Shimmer overlay while card is invisible ──────────────────────────
   ::after sits above all card content and plays the shimmer sweep.
   Removed via opacity:0 + animation:none once revealed.               */
.lazy-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(105deg,
            rgba(0, 31, 63, 0.05) 0%,
            rgba(0, 31, 63, 0.12) 40%,
            rgba(0, 31, 63, 0.05) 65%,
            rgba(0, 31, 63, 0.09) 100%);
    background-size: 250% 100%;
    animation: gig-shimmer 1.7s ease-in-out 3;
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

[data-theme="dark"] .lazy-card::after {
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.07) 40%,
            rgba(255, 255, 255, 0.02) 65%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 250% 100%;
}

@keyframes gig-shimmer {
    0% {
        background-position: 130% 0;
    }

    100% {
        background-position: -130% 0;
    }
}

/* ── 3. Thumbnail skeleton tint (before reveal) ─────────────────────────── */
.lazy-card:not(.gig-revealed) .gig-thumbnail {
    background: linear-gradient(135deg, #e8edf5 0%, #d6dce9 100%);
}

[data-theme="dark"] .lazy-card:not(.gig-revealed) .gig-thumbnail {
    background: linear-gradient(135deg, #1a2233 0%, #131b2c 100%);
}

/* ── 4. Reveal keyframe ──────────────────────────────────────────────────── */
.lazy-card.gig-revealed {
    animation: gig-card-reveal 0.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gig-card-reveal {
    from {
        opacity: 0;
        transform: translateY(38px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kill shimmer once revealed */
.lazy-card.gig-revealed::after {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

/* ── 5. Respect prefers-reduced-motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lazy-card {
        opacity: 0;
        transform: none;
    }

    .lazy-card.gig-revealed {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .lazy-card::after {
        animation: none;
    }
}

/* ==========================================================================
   NAVY BLUE & DARK YELLOW AI COURSE ADVERT BANNER FLEX
   ========================================================================== */
.ai-course-advert-card {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: linear-gradient(135deg, #091428 0%, #0f1d38 50%, #071020 100%);
    border: 1.5px solid rgba(217, 119, 6, 0.35);
    border-radius: 18px;
    padding: 1.6rem 2rem;
    margin-top: 1.75rem;
    text-decoration: none !important;
    color: #f8fafc !important;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(9, 20, 40, 0.4);
    width: 100%;
    box-sizing: border-box;
}

/* Subtle shine sweep on hover */
.ai-advert-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 3;
}

.ai-course-advert-card:hover .ai-advert-shine {
    left: 140%;
}

/* Glow Orbs in Navy & Warm Yellow */
.ai-advert-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ai-glow-1 {
    top: -40%;
    left: -15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 30, 60, 0.6) 0%, transparent 70%);
}

.ai-glow-2 {
    bottom: -40%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
}

.ai-course-advert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 119, 6, 0.65);
    box-shadow: 0 14px 40px rgba(9, 20, 40, 0.5), 0 0 20px rgba(217, 119, 6, 0.15);
}

/* Left Icon / Badge graphic */
.ai-advert-icon-wrap {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.ai-advert-icon-inner {
    width: 64px;
    height: 64px;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #eab308;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s ease;
}

.ai-course-advert-card:hover .ai-advert-icon-inner {
    transform: scale(1.06) rotate(-3deg);
}

.ai-gift-badge-overlay {
    position: absolute;
    bottom: -7px;
    right: -9px;
    background: #ca8a04;
    color: #091428;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    border: 2px solid #091428;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Content Area */
.ai-advert-left {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 250px;
}

.ai-advert-top-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.ai-advert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #eab308;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-advert-hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.25);
    color: #ca8a04;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.ai-advert-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #f8fafc !important;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    letter-spacing: -0.2px;
}

.ai-advert-title span.gift-highlight {
    color: #eab308;
    font-weight: 800;
}

.ai-advert-desc {
    font-size: 0.9rem;
    color: #94a3b8 !important;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    max-width: 590px;
}

.ai-advert-desc strong {
    color: #eab308;
    font-weight: 700;
}

.ai-advert-features {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ai-advert-feat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-advert-feat.gift-feat {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.3);
    color: #eab308;
}

.ai-advert-feat i {
    color: #eab308;
}

.ai-advert-feat.gift-feat i {
    color: #d97706;
}

/* Right CTA Area */
.ai-advert-right {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ai-advert-reward-box {
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 10px;
    padding: 5px 12px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.reward-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.reward-amt {
    font-size: 1.1rem;
    font-weight: 800;
    color: #eab308;
    line-height: 1.1;
}

.ai-advert-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #091428 !important;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(202, 138, 4, 0.3);
    white-space: nowrap;
}

.ai-course-advert-card:hover .ai-advert-cta-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(202, 138, 4, 0.45);
}

/* ── Responsive Styling ────────────────────────────────────────── */
@media (max-width: 992px) {
    .ai-advert-icon-wrap {
        display: none;
    }
}

@media (max-width: 768px) {
    .ai-course-advert-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.4rem;
        gap: 1.25rem;
    }

    .ai-advert-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 0.9rem;
    }

    .ai-advert-reward-box {
        text-align: left;
        align-items: flex-start;
    }

    .ai-advert-cta-btn {
        padding: 11px 20px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .ai-advert-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ai-advert-reward-box {
        text-align: center;
        align-items: center;
    }

    .ai-advert-cta-btn {
        width: 100%;
    }
}


/* ==========================================================================
   MOBILE RESPONSIVENESS — Header, Hero, Gigs (< 768px)
   ========================================================================== */

@media (max-width: 767px) {

    /* ── HEADER: Compact on mobile ────────────────────────────────────────── */
    .header-inner {
        min-height: 52px !important;
        padding: 0 0.75rem !important;
    }

    .shapwork-logo {
        height: 38px !important;
    }

    .shapwork-text {
        font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
    }

    .logo-link {
        gap: 0.4rem !important;
    }

    /* Hide sidebar on mobile */
    .home-sidebar {
        display: none !important;
    }

    /* ── HERO: Scale down all content ─────────────────────────────────────── */
    .hero {
        height: 420px !important;
    }

    .hero h2 {
        font-size: 1.55rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.25 !important;
    }

    .hero p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    /* Search bar: more compact */
    .search-bar {
        padding: 4px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
    }

    .search-bar input {
        padding: 10px 14px !important;
        font-size: 0.82rem !important;
    }

    .search-bar button {
        padding: 8px 16px !important;
        font-size: 0.82rem !important;
    }

    /* CTA buttons: smaller on mobile */
    .hero-cta-group {
        gap: 0.6rem !important;
        margin-top: 1rem !important;
    }

    .hero-cta-btn {
        padding: 0.55rem 1.15rem !important;
        font-size: 0.8rem !important;
    }

    /* Popular tags: smaller */
    .tags a {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.72rem !important;
    }

    .tags span {
        font-size: 0.78rem !important;
    }

    .tags {
        gap: 5px !important;
        margin-top: 0.75rem !important;
    }

    /* Hero slideshow controls: smaller */
    .hero-slide-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.8rem !important;
    }

    .hero-slide-prev {
        left: 0.75rem !important;
    }

    .hero-slide-next {
        right: 0.75rem !important;
    }

    /* ── FEATURED GIGS: Always 2 per row ──────────────────────────────────── */
    .featured-gigs .gig-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .featured-gigs {
        padding: 3rem 0 !important;
    }

    .featured-gigs .section-header {
        margin-bottom: 1.5rem !important;
    }

    /* Reduce card internal sizing for compact 2-col layout */
    .gig-thumbnail {
        height: 130px !important;
    }

    .gig-content {
        padding: 0.75rem 0.85rem 0.85rem !important;
    }

    .gig-title {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .gig-seller-row {
        margin-bottom: 0.5rem !important;
    }

    .gig-avatar-wrap .freelancer-avatar {
        width: 26px !important;
        height: 26px !important;
    }

    .freelancer-name {
        font-size: 0.72rem !important;
        max-width: 90px !important;
    }

    .gig-inline-rating i {
        font-size: 0.55rem !important;
    }

    .gig-inline-rating span {
        font-size: 0.65rem !important;
    }

    .gig-footer-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.4rem !important;
        padding-top: 0.6rem !important;
        margin-top: 0.6rem !important;
    }

    .gig-price-amount {
        font-size: 0.88rem !important;
    }

    .gig-price-from {
        font-size: 0.62rem !important;
    }

    .gig-cta-btn {
        font-size: 0.7rem !important;
        padding: 5px 10px !important;
    }

    .gig-category-tag {
        font-size: 0.62rem !important;
        padding: 2px 6px !important;
    }

    .gig-badge.featured {
        font-size: 0.62rem !important;
        padding: 3px 7px !important;
    }

    /* Section titles across the page */
    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.88rem !important;
    }

    /* ── POPULAR CATEGORIES: Smaller cards on mobile ──────────────────────── */
    .categories {
        padding: 2.5rem 0 !important;
    }

    .category-carousel {
        padding: 10px 0 !important;
        margin: 0 -5px !important;
    }

    .category-card {
        flex: 0 0 calc(45% - 10px) !important;
        min-width: 135px !important;
        max-width: 170px !important;
        margin: 0 5px !important;
        padding: 16px 10px !important;
        border-radius: 12px !important;
    }

    .category-card .icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
        margin: 0 auto 0.6rem !important;
        border-radius: 10px !important;
    }

    .category-card h3 {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.25 !important;
    }

    .category-card p {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
    }

    .carousel-control {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }
    
    .carousel-control.prev {
        left: -5px !important;
    }
    
    .carousel-control.next {
        right: -5px !important;
    }
}

/* Extra-small screens (< 400px): keep 2-col but tighten further */
@media (max-width: 400px) {
    .category-card {
        flex: 0 0 calc(48% - 8px) !important;
        min-width: 120px !important;
        padding: 12px 8px !important;
    }

    .category-card .icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.05rem !important;
        margin-bottom: 0.4rem !important;
    }

    .category-card h3 {
        font-size: 0.78rem !important;
    }

    .category-card p {
        font-size: 0.68rem !important;
    }

    .featured-gigs .gig-grid {
        gap: 0.5rem !important;
    }

    .gig-thumbnail {
        height: 105px !important;
    }

    .gig-content {
        padding: 0.6rem 0.7rem 0.7rem !important;
    }

    .gig-title {
        font-size: 0.72rem !important;
    }

    .gig-cta-btn {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }

    .hero h2 {
        font-size: 1.3rem !important;
    }

    .hero p {
        font-size: 0.78rem !important;
    }
}