/**
 * DentiMax Affiliate Resources Portal Stylesheet
 * 
 * Avant-garde partner portal aesthetics using premium spacing, custom card states,
 * and high-contrast grids.
 */

/* -------------------------------------------------------------
 * 1. Step Cards Grid (Section 2)
 * ------------------------------------------------------------- */
.dmax-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.dmax-step-card {
    background: #ffffff;
    border: 1px solid rgba(11, 31, 51, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(11, 31, 51, 0.02);
}

.dmax-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--global-palette3);
    /* Cyan Accent */
    box-shadow: 0 12px 24px rgba(11, 31, 51, 0.06);
}

.dmax-step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(60, 188, 230, 0.15);
    /* Light Cyan opacity */
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.dmax-step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--global-palette6);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.dmax-step-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--global-palette5);
    margin: 0;
}

.dmax-step-card a {
    color: var(--global-palette3);
    font-weight: 600;
    text-decoration: none;
    /* transition: opacity 0.2s ease; */
    /* transition: all .2s ease-in-out; */
    /* transform: translate3d(0, 0, 0); */
}

.dmax-step-card a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* -------------------------------------------------------------
 * 2. Document & Feature File Table (Section 3)
 * Note: Core table block styles consolidated to css/10-table.css
 * ------------------------------------------------------------- */

.dmax-file-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.dmax-file-icon {
    font-size: 1.25rem;
    color: #e04b4b;
    /* Vibrant PDF Red */
}

/* Category Pill Badges */
.dmax-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dmax-badge-pm {
    background: rgba(21, 84, 146, 0.08);
    color: var(--global-palette1);
}

.dmax-badge-img {
    background: rgba(60, 188, 230, 0.1);
    color: var(--global-palette2);
}

.dmax-badge-int {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.dmax-badge-bill {
    background: rgba(239, 108, 0, 0.08);
    color: #d84315;
}

.dmax-badge-train {
    background: rgba(156, 39, 176, 0.08);
    color: #6a1b9a;
}

.dmax-badge-care {
    background: rgba(0, 150, 136, 0.08);
    color: #00695c;
}

.dmax-file-format {
    font-family: monospace;
    font-weight: 700;
    color: #718096;
    background: #edf2f7;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.dmax-file-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--global-palette1);
    transition: color 0.2s ease;
}

.dmax-file-action-btn:hover {
    color: var(--global-palette3);
}

/* -------------------------------------------------------------
 * 3. Responsive Payout Table (Section 4)
 * Note: Core table block styles consolidated to css/10-table.css
 * ------------------------------------------------------------- */

.dmax-payout-amount {
    font-weight: 800;
    color: var(--global-palette1);
    font-size: 1.05rem;
}

/* -------------------------------------------------------------
 * 4. Brand & Media Assets (Section 5)
 * ------------------------------------------------------------- */
.dmax-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.dmax-asset-card {
    background: #ffffff;
    border: 1px solid rgba(11, 31, 51, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.dmax-asset-card:hover {
    border-color: rgba(11, 31, 51, 0.12);
    box-shadow: 0 10px 22px rgba(11, 31, 51, 0.05);
}

.dmax-asset-thumb-wrap {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 51, 0.02);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    padding: 1rem;
    overflow: hidden;
}

.dmax-asset-thumb-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.dmax-asset-card:hover .dmax-asset-thumb-wrap img {
    transform: scale(1.05);
}

.dmax-asset-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--global-palette6);
    margin: 0 0 0.5rem 0;
}

.dmax-asset-details {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 1.25rem;
}

.dmax-asset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    background: transparent;
    color: var(--global-palette1);
    border: 2px solid var(--global-palette1);
    transition: all 0.2s ease;
}

.dmax-asset-btn:hover {
    background: var(--global-palette1);
    color: #ffffff;
}

/* -------------------------------------------------------------
 * 5. Media Queries for Compact Views
 * ------------------------------------------------------------- */
@media (max-width: 768px) {

    .dmax-payout-table th,
    .dmax-payout-table td {
        padding: 1rem;
    }

    .dmax-step-card {
        padding: 1.5rem;
    }
}

/* -------------------------------------------------------------
 * 6. FAQ Accordion All-Expanded Initial State
 * ------------------------------------------------------------- */
.dmax-faq .kt-accordion-inner-wrap:not(.kt-accordion-initialized) .kt-accordion-panel {
    /* display: block;
    height: auto;
    overflow: visible; */
}
