/* ============================================================
   eBay Responsive Template Design Page - Modern Redesign
   ============================================================ */

/* --- CSS Variables / Brand Palette --- */
:root {
    --primary-color: #0b6c8f;
    --primary-hover: #074e69;
    --secondary-color: #f4b400;
    --secondary-hover: #db9e00;
    --dark-color: #14213d;
    --light-bg: #f8fcfe;
    --border-color: #e2eff3;
    --text-color: #4a5d68;
    --card-shadow: 0 4px 20px rgba(11, 108, 143, 0.08);
    --hover-shadow: 0 12px 30px rgba(11, 108, 143, 0.16);
    --transition-speed: 0.3s;
}

/* --- Hero Banner Section --- */
.ebay-hero {
    position: relative;
    width: 100%;
    min-height: 460px;
    background: linear-gradient(135deg, #073b4c 0%, #118ab2 60%, #06d6a0 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

.ebay-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

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

.ebay-hero-content {
    max-width: 650px;
}

.ebay-hero h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ebay-hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.ebay-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ebay-hero-bullets li {
    font-size: 0.95rem;
    position: relative;
    padding-left: 26px;
    font-weight: 600;
    color: #e6f7ff;
}

.ebay-hero-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #06d6a0;
    font-weight: 900;
    font-size: 1.1rem;
}

.ebay-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ebay-hero-btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.ebay-hero-btn.btn-primary {
    background-color: var(--secondary-color);
    color: #1a1a1a;
}

.ebay-hero-btn.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 180, 0, 0.4);
}

.ebay-hero-btn.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ebay-hero-btn.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* --- Section Formatting --- */
.ebay-section {
    padding: 70px 0;
    background-color: #ffffff;
}

.ebay-section.bg-light {
    background-color: var(--light-bg);
}

.ebay-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.ebay-section-title h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.ebay-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 160px;
    margin: 0 auto;
    gap: 8px;
}

.ebay-section-divider::before,
.ebay-section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-color);
}

.ebay-section-divider span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* --- Service grid --- */
.ebay-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ebay-service-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-speed) ease;
}

.ebay-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: #b3d7e4;
}

.ebay-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eaf6fa;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(11, 108, 143, 0.1);
}

.ebay-service-card:hover .ebay-service-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

.ebay-service-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
}

/* --- Tools Grid --- */
.ebay-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ebay-tools-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

.ebay-tool-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.ebay-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: #b3d7e4;
}

.ebay-tool-img-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ebay-tool-img-wrapper img {
    max-width: 85%;
    max-height: 90%;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.ebay-tool-card:hover .ebay-tool-img-wrapper img {
    transform: scale(1.05);
}

.ebay-tool-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.ebay-tool-link {
    display: inline-block;
    padding: 8px 24px;
    background-color: var(--primary-color);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all var(--transition-speed) ease;
}

.ebay-tool-card:hover .ebay-tool-link {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(11, 108, 143, 0.2);
}

/* --- Hire Section --- */
.ebay-hire-section {
    background: linear-gradient(135deg, #104f66 0%, #166480 100%);
    color: #ffffff;
    padding: 60px 0;
}

.ebay-hire-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.ebay-hire-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.ebay-hire-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.ebay-hire-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ebay-hire-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ebay-hire-icon img {
    height: 100%;
    object-fit: contain;
}

.ebay-hire-card p {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 991px) {
    .ebay-hero h1 {
        font-size: 2.1rem;
    }
    .ebay-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ebay-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ebay-tools-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .ebay-hire-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .ebay-hero {
        padding: 40px 0;
        text-align: center;
    }
    .ebay-hero-content {
        margin: 0 auto;
    }
    .ebay-hero-bullets {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 320px;
        margin: 0 auto 24px;
    }
    .ebay-hero-buttons {
        justify-content: center;
    }
    .ebay-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ebay-tools-grid,
    .ebay-tools-grid.four-cols {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .ebay-hire-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 30px auto 0;
    }
    .ebay-section {
        padding: 50px 0;
    }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

