/**
 * Content Single Promotion Block Styles
 *
 * @package EGM
 */

.promotion-detail-container {
    width: 100%;
    margin: 0 auto;
}

.promotion-detail-content {
    color: var(--color-black-trans-60);
}

/* Module 1: Two Column Grid */
.module-1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.module-1-col h3 {
    margin-bottom: 10px;
}

.module-1-col h6 {
    padding-bottom: 10px;
}

.module-1-col .module-1-desc {
    color: var(--color-black-trans-60);
}

/* Module 2: Image Banner */
.module-2-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.module-2-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Module 3 & 4: Lists & Typography */
.module-3-list,
.module-4-list {
    margin-bottom: 40px;
}

.promotion-module-item .module-3-title {
    text-align: center;
    margin-bottom: 20px;
}

.module-3-item,
.module-4-item {
    margin-bottom: 40px;
}

.module-3-desc {
    max-width: 396px;
}

.module-3-item h3,
.module-4-item h3 {
    margin-bottom: 10px;
}

.module-3-item .module-3-desc p,
.module-4-item .module-4-desc p {
    color: var(--color-black-trans-60);
    margin-bottom: 20px;
}

.module-3-desc p strong {
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
    color: var(--color-black);
}

/* Module 4: Table */
.module-4-table {
    margin-bottom: 20px;
    border: 1px solid var(--color-black-trans-10);
    border-radius: 20px;
}

.promotion-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-radius: 20px;
    border-style: hidden;
    overflow: hidden;
}

.promotion-table thead {
    background: var(--color-navy-blue);
    color: var(--color-white);
}

.promotion-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 500;
    font-family: var(--font-family);
    border: 0;
}

.promotion-table td {
    padding: 20px 40px 20px 20px;
    border-bottom: 1px solid var(--color-black-trans-10);
    vertical-align: middle;
    border-right: 0;
    border-left: 0;
    color: var(--color-black);
}

.promotion-table .wysiwyg-content p {
    margin-bottom: 20px;
    color: var(--color-black);
}

.promotion-table .wysiwyg-content p:last-child {
    margin-bottom: 0;
}

.promotion-table tbody tr:nth-child(odd) {
    background: var(--color-gray-light);
    border: 1px solid var(--color-black-trans-10);
}

.promotion-table td:first-child {
    padding-left: 40px;
    padding-right: 20px;
}

.promotion-table td:last-child {
    padding-right: 40px;
}

h6.lead-in-4.module-4-title {
    text-align: center;
    margin-bottom: 20px;
}

.module-4-desc {
    color: var(--color-black);
}

/* Module 5: Image Grid */
.module-5-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.module-5-grid .module-5-img img {
    width: 100%;
    height: 100% !important;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}

.module-5-img {
    aspect-ratio: 478 / 270;
    overflow: hidden;
}

/* Module 6: Title, Logos & Socials */
.promotion-module-item.module6 {
    padding-top: 40px;
}

.module-6-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.module-6-logos {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 40px;
}

.module-6-logos img {
    max-height: 64px;
    border-radius: 0;
    max-width: 160px !important;
    object-fit: contain;
}

.social-icons.module-6-social.social-icons {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* Module 7: Download links */
.module-7-downloads {
    border-bottom: 1px solid var(--color-black-trans-10);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0px;
    padding-bottom: 40px;
}

.module-7-link {
    background: var(--color-gray-light) !important;
}

.module-7-link:hover {
    background: var(--color-navy-blue) !important;
}

.module-7-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Media Queries (< 768px) */
@media (max-width: 767px) {
    .promotion-table td:first-child,
    .promotion-table th:first-child {
        padding-left: 30px;
    }

    .module-1-grid {
        padding: 50px 0 30px;
        grid-template-columns: 1fr;
        gap: 30px;
        justify-content: center;
        text-align: center;
    }

    .module-1-col h6 {
        text-align: center;
    }

    .module-2-image {
        margin-bottom: 30px;
    }

    .promotion-module-item .module-3-title {
        margin-bottom: 10px;
    }

    .module-3-item,
    .module-4-item {
        margin-bottom: 30px;
    }

    .module-3-list,
    .module-4-list {
        margin-bottom: 30px;
    }

    .module-3-list {
        border-bottom: 1px solid var(--color-black-trans-10);
    }

    .module-5-grid {
        margin-bottom: 30px;
        grid-template-columns: 1fr;
    }

    .module-7-downloads {
        padding-bottom: 30px;
    }

    .module-6-logos {
        margin-bottom: 30px;
        gap: 10px;
    }

    .promotion-module-item.module6 {
        padding-top: 30px;
    }

    .social-icons.module-6-social.social-icons {
        margin-bottom: 30px;
        justify-content: flex-start;
    }

    /* Mobile Table Layout for Module 4 */
    .module-4-table {
        border: none;
        background: transparent;
        margin-bottom: 0;
    }

    .module-4-table .promotion-table,
    .module-4-table .promotion-table tbody,
    .module-4-table .promotion-table tr,
    .module-4-table .promotion-table td {
        display: block;
        width: 100%;
    }

    .module-4-table .promotion-table thead {
        display: none;
    }

    .module-4-table .promotion-table tr {
        margin-bottom: 20px;
        background: var(--color-gray-light);
        border-radius: 20px;
        border: 1px solid var(--color-black-trans-10);
        overflow: hidden;
    }

    .module-4-table .promotion-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 20px 30px !important;
        border-bottom: 0;
    }

    .module-4-table .promotion-table td::before {
        content: attr(data-label);
        font-weight: 500;
        text-align: left;
        width: 38%;
        flex-shrink: 0;
        margin-right: 15px;
        color: var(--color-black-trans-60);
    }

    .module-4-table .promotion-table td .td-content {
        flex: 1;
        text-align: left;
        color: inherit;
    }

    .module-4-table .promotion-table .wysiwyg-content p {
        color: inherit;
    }

    /* First td styles - dark background */
    .module-4-table .promotion-table td:first-child {
        background: var(--color-navy-blue);
        color: var(--color-white);
        align-items: center;
        border-bottom: 1px solid var(--color-black-trans-10);
    }

    .module-4-table .promotion-table td:first-child::before {
        color: var(--color-white);
    }

    .module-4-table .promotion-table td:not(:first-child) {
        border-top: 0;
    }
}
