/* ==========================================================================
   eBay Charges Calculator — Trust Pages Styles
   Dedicated styling for About, Methodology, Editorial, Corrections, and Contact
   ========================================================================== */

/* Main Page Layout Wrapper */
.ebc-trust-page {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 420px, #f8fafc 100%);
    min-height: 100vh;
    font-family: var(--ebc-font);
}

/* Hero Section */
.ebc-trust-hero {
    background: transparent;
    color: var(--ebc-navy);
    padding: 46px 0 30px;
    position: relative;
    overflow: hidden;
}

.ebc-trust-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.13) 0%, transparent 58%);
    pointer-events: none;
}

.ebc-trust-hero .ebc-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ebc-gray-600);
    margin: 0 0 24px;
}

.ebc-trust-hero .ebc-breadcrumb a {
    color: var(--ebc-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.ebc-trust-hero .ebc-breadcrumb a:hover {
    color: var(--ebc-green-dark);
}

.ebc-trust-hero .ebc-breadcrumb a svg {
    display: inline-block;
    vertical-align: middle;
}

.ebc-trust-hero .ebc-breadcrumb-sep {
    color: var(--ebc-gray-400);
}

.ebc-trust-hero .ebc-breadcrumb-current {
    color: var(--ebc-gray-600);
}

.ebc-trust-hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.ebc-trust-hero-title {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto 14px;
    color: var(--ebc-navy) !important;
}

.ebc-trust-hero-subtitle {
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.55;
    color: var(--ebc-gray-600);
    max-width: 780px;
    margin: 0 auto 20px;
}

.ebc-trust-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13.5px;
    color: var(--ebc-gray-700);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 185, 129, 0.22);
    padding: 10px 18px;
    border-radius: 999px;
    display: inline-flex;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.ebc-meta-item strong {
    color: var(--ebc-navy);
}

.ebc-meta-sep {
    color: var(--ebc-gray-300);
}

/* Body Content Section */
.ebc-trust-body-section {
    padding: 18px 0 70px;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.ebc-trust-layout {
    max-width: 960px;
    margin: 0 auto;
}

.ebc-trust-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--ebc-gray-200);
    padding: 48px 64px;
}

/* Core Typography inside Content */
.ebc-trust-inner-content {
    color: var(--ebc-gray-800);
    font-size: 16px;
    line-height: 1.75;
}

.ebc-trust-inner-content p {
    margin: 0 0 22px 0;
}

.ebc-trust-inner-content h2 {
    font-size: 23px;
    font-weight: 700;
    color: var(--ebc-navy);
    margin: 40px 0 18px 0;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ebc-gray-200);
}

.ebc-trust-inner-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 45px;
    height: 3px;
    background-color: var(--ebc-purple);
    border-radius: 2px;
}

.ebc-trust-inner-content h2:first-of-type {
    margin-top: 0;
}

.ebc-trust-inner-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ebc-navy);
    margin: 30px 0 14px 0;
}

/* Lists styling */
.ebc-trust-inner-content ul, 
.ebc-trust-inner-content ol {
    margin: 0 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.ebc-trust-inner-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.ebc-trust-inner-content ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--ebc-purple);
}

.ebc-trust-inner-content ol {
    counter-reset: ebc-counter;
}

.ebc-trust-inner-content ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    counter-increment: ebc-counter;
}

.ebc-trust-inner-content ol li::before {
    content: counter(ebc-counter) ".";
    position: absolute;
    left: 4px;
    color: var(--ebc-purple);
    font-weight: 700;
}

/* Table styling */
.ebc-trust-inner-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ebc-gray-200);
}

.ebc-trust-inner-content th, 
.ebc-trust-inner-content td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--ebc-gray-200);
}

.ebc-trust-inner-content th {
    background-color: var(--ebc-gray-50);
    font-weight: 600;
    color: var(--ebc-navy);
}

.ebc-trust-inner-content tr:last-child td {
    border-bottom: none;
}

.ebc-trust-inner-content tr:nth-child(even) td {
    background-color: #fbfdfc;
}

/* Links */
.ebc-trust-inner-content a {
    color: var(--ebc-purple);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px dashed var(--ebc-purple-glow);
    transition: all 0.2s ease;
}

.ebc-trust-inner-content a:hover {
    color: var(--ebc-purple-dark);
    border-bottom-color: var(--ebc-purple-dark);
    border-bottom-style: solid;
}

/* Hide Default Markdown Related List & Metadata Footer */
.ebc-trust-inner-content h2:last-of-type,
.ebc-trust-inner-content h2:last-of-type ~ ul,
.ebc-trust-inner-content h2:last-of-type ~ p,
.ebc-trust-inner-content p:last-child {
    display: none !important;
}

/* Related Trust Pages Grid Section */
.ebc-trust-related-section {
    background-color: var(--ebc-gray-50);
    padding: 70px 0 90px;
    border-top: 1px solid var(--ebc-gray-200);
}

.ebc-related-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ebc-navy);
    text-align: center;
    margin: 0 0 35px 0;
}

.ebc-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.ebc-trust-card-link {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #ffffff;
    border: 1px solid var(--ebc-gray-200);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.ebc-trust-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.06);
    border-color: rgba(22, 163, 74, 0.25);
}

.ebc-trust-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background-color: var(--ebc-purple-glow);
    color: var(--ebc-purple);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ebc-trust-card-link:hover .ebc-trust-card-icon {
    background-color: var(--ebc-purple);
    color: #ffffff;
}

.ebc-trust-card-content {
    flex: 1;
}

.ebc-trust-card-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ebc-navy);
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    transition: color 0.2s;
}

.ebc-trust-card-link:hover .ebc-trust-card-content h3 {
    color: var(--ebc-purple);
}

.ebc-trust-card-content p {
    font-size: 13.5px;
    color: var(--ebc-gray-600);
    line-height: 1.5;
    margin: 0 !important;
}

.ebc-trust-card-arrow {
    color: var(--ebc-gray-400);
    transition: all 0.3s ease;
    align-self: center;
}

.ebc-trust-card-link:hover .ebc-trust-card-arrow {
    color: var(--ebc-purple);
    transform: translateX(4px);
}

/* Responsiveness */
@media (max-width: 768px) {
    .ebc-trust-hero {
        padding: 36px 0 28px;
    }
    
    .ebc-trust-hero-title {
        font-size: 34px;
    }
    
    .ebc-trust-hero-subtitle {
        font-size: 15px;
    }
    
    .ebc-trust-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        display: flex;
        border-radius: 16px;
        width: 100%;
        max-width: 420px;
        text-align: left;
    }
    
    .ebc-meta-sep {
        display: none;
    }
    
    .ebc-trust-body-section {
        margin-top: 0;
        padding-bottom: 40px;
    }
    
    .ebc-trust-card {
        padding: 30px 20px;
    }
    
    .ebc-trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 20px;
    }
}
