/* ==========================================================================
   APLxPERT MODULE DETAIL PAGES
   Common styles for all module pages
   ========================================================================== */

/* ==========================================================================
   PAGE
   ========================================================================== */

.aplx-module-page {
    width: 100%;
    padding: 70px 0;
    overflow: hidden;
    background: #04121e;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
}

.aplx-module-page *,
.aplx-module-page *::before,
.aplx-module-page *::after {
    box-sizing: border-box;
}

.aplx-module-page p,
.aplx-module-page li,
.aplx-module-page h1,
.aplx-module-page h2,
.aplx-module-page h3 {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.aplx-module-hero {
    padding: 30px 0 75px;
}

.aplx-module-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aplx-module-back-link:hover,
.aplx-module-back-link:focus {
    color: #1277a0;
    text-decoration: none;
}

.aplx-module-back-link i {
    flex-shrink: 0;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.aplx-module-back-link:hover i,
.aplx-module-back-link:focus i {
    transform: translateX(-4px);
}

.aplx-module-hero-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, 0.85fr);
    gap: 70px;
    align-items: center;
}

.aplx-module-hero-content {
    min-width: 0;
}

.aplx-module-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        #1277a0 0%,
        #1d4266 100%
    );
}

.aplx-module-icon i {
    color: #ffffff;
    font-size: 44px;
    line-height: 1;
}

.aplx-module-code,
.aplx-module-section-label,
.aplx-highlight-label {
    display: block;
    margin-bottom: 12px;
    color: #1277a0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.aplx-module-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.aplx-module-lead {
    max-width: 760px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.55;
}

/* ==========================================================================
   PRIMARY BUTTON
   ========================================================================== */

.aplx-module-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 215px;
    height: 54px;
    padding: 0 28px;
    border: none !important;
    border-radius: 50px;
    background: linear-gradient(
        90deg,
        #1277a0 0%,
        #1d4266 100%
    );
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.aplx-module-primary-btn:hover,
.aplx-module-primary-btn:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: none;
}

.aplx-module-primary-btn::before,
.aplx-module-primary-btn::after {
    display: none !important;
}

/* ==========================================================================
   HERO HIGHLIGHT CARD
   ========================================================================== */

.aplx-module-highlight-card {
    min-width: 0;
    padding: 32px;
    border: 1px solid rgba(18, 119, 160, 0.65);
    border-radius: 10px;
    background: #051220;
}

.aplx-module-highlight-card h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
}

.aplx-module-highlight-card > p {
    margin: 0 0 23px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.55;
}

.aplx-highlight-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aplx-highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.45;
}

.aplx-highlight-list i {
    flex-shrink: 0;
    margin-top: 2px;
    color: #1277a0;
    font-size: 19px;
    line-height: 1;
}

/* ==========================================================================
   MODULE STATS
   ========================================================================== */

.aplx-module-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 70px;
    overflow: hidden;
    border: 1px solid rgba(18, 119, 160, 0.45);
    border-radius: 10px;
    background: #051220;
}

.aplx-module-stat {
    min-width: 0;
    padding: 24px 20px;
    text-align: center;
}

.aplx-module-stat + .aplx-module-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.aplx-module-stat strong {
    display: block;
    margin-bottom: 7px;
    color: #1277a0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.aplx-module-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   COMMON SECTIONS
   ========================================================================== */

.aplx-module-section {
    padding: 68px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.aplx-module-section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.aplx-module-section-heading h2,
.aplx-payment-overview-content h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.aplx-module-section-heading > p,
.aplx-payment-overview-content > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    line-height: 1.6;
}

/* ==========================================================================
   BENEFITS
   ========================================================================== */

.aplx-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.aplx-benefit-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid rgba(18, 119, 160, 0.42);
    border-radius: 10px;
    background: #051220;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.aplx-benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 119, 160, 0.82);
}

.aplx-benefit-card > i {
    display: block;
    margin-bottom: 17px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
}

.aplx-benefit-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.aplx-benefit-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.55;
}

/* ==========================================================================
   PAYMENT OVERVIEW
   ========================================================================== */

.aplx-payment-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 60px;
    align-items: center;
}

.aplx-payment-overview-content {
    min-width: 0;
}

.aplx-payment-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.aplx-payment-channels span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 17px 16px;
    border: 1px solid rgba(18, 119, 160, 0.4);
    border-radius: 8px;
    background: #051220;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.aplx-payment-channels i {
    flex-shrink: 0;
    color: #1277a0;
    font-size: 25px;
    line-height: 1;
}

/* ==========================================================================
   ACCORDIONS
   ========================================================================== */

.aplx-accordion-list {
    display: grid;
    gap: 13px;
}

.aplx-accordion {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #051220;
}

.aplx-accordion[open] {
    border-color: rgba(18, 119, 160, 0.62);
}

.aplx-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 21px 24px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.aplx-accordion summary::-webkit-details-marker {
    display: none;
}

.aplx-accordion summary::marker {
    content: "";
}

.aplx-accordion summary i {
    flex-shrink: 0;
    color: #1277a0;
    font-size: 21px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.aplx-accordion[open] summary i {
    transform: rotate(45deg);
}

.aplx-accordion-content {
    padding: 0 24px 24px;
}

.aplx-accordion-content ul {
    margin: 0;
    padding-left: 20px;
}

.aplx-accordion-content li {
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.55;
}

.aplx-accordion-content li:last-child {
    margin-bottom: 0;
}

.aplx-accordion-content li::marker {
    color: #1277a0;
}

.aplx-accordion-note {
    margin-top: 24px;
}

.aplx-accordion-note strong {
    display: block;
    margin-bottom: 8px;
}

.aplx-accordion-note p {
    margin: 0;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.aplx-module-cta {
    padding: 75px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.aplx-module-cta-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.aplx-module-cta-content .aplx-module-section-label {
    text-align: center;
}

.aplx-module-cta-content h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.aplx-module-cta-content p {
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.6;
}

/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1050px) {
    .aplx-module-hero-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .aplx-module-highlight-card {
        max-width: 720px;
    }

    .aplx-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aplx-benefits-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aplx-payment-overview-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .aplx-module-page {
        padding: 190px 0 55px;
    }

    .aplx-module-hero {
        padding: 0 0 55px;
    }

    .aplx-module-back-link {
        margin-bottom: 32px;
        font-size: 15px;
    }

    .aplx-module-hero-layout {
        gap: 36px;
    }

    .aplx-module-icon {
        width: 74px;
        height: 74px;
        margin-bottom: 21px;
    }

    .aplx-module-icon i {
        font-size: 36px;
    }

    .aplx-module-code,
    .aplx-module-section-label,
    .aplx-highlight-label {
        font-size: 12px;
        letter-spacing: 0.14em;
    }

    .aplx-module-hero h1 {
        font-size: 36px;
    }

    .aplx-module-lead {
        margin-bottom: 27px;
        font-size: 17px;
    }

    .aplx-module-primary-btn {
        min-width: 195px;
        height: 49px;
        padding: 0 23px;
        font-size: 16px;
        line-height: 1.35;
    }

    .aplx-module-highlight-card {
        max-width: none;
        padding: 25px 21px;
    }

    .aplx-module-highlight-card h2 {
        font-size: 20px;
    }

    .aplx-module-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 55px;
    }

    .aplx-module-stat:nth-child(3) {
        border-left: 0;
    }

    .aplx-module-stat:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .aplx-module-section {
        padding: 55px 0;
    }

    .aplx-module-section-heading {
        margin-bottom: 30px;
    }

    .aplx-module-section-heading h2,
    .aplx-payment-overview-content h2 {
        font-size: 29px;
    }

    .aplx-module-section-heading > p,
    .aplx-payment-overview-content > p {
        font-size: 16px;
    }

    .aplx-benefits-grid,
    .aplx-benefits-grid--three {
        grid-template-columns: 1fr;
    }

    .aplx-benefits-grid {
        gap: 16px;
    }

    .aplx-benefit-card {
        padding: 23px 21px;
    }

    .aplx-payment-channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aplx-accordion summary {
        gap: 16px;
        padding: 19px;
        font-size: 17px;
    }

    .aplx-accordion-content {
        padding: 0 19px 21px;
    }

    .aplx-accordion-content li {
        font-size: 15px;
    }

    .aplx-module-cta {
        padding: 60px 0 15px;
    }

    .aplx-module-cta-content h2 {
        font-size: 24px;
    }

    .aplx-module-cta-content p {
        font-size: 17px;
    }
}

/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {
    .aplx-module-page {
        padding: 110px 0 45px;
    }

    .aplx-module-hero h1 {
        font-size: 31px;
    }

    .aplx-module-stats {
        grid-template-columns: 1fr;
    }

    .aplx-module-stat + .aplx-module-stat,
    .aplx-module-stat:nth-child(3) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 0;
    }

    .aplx-module-stat {
        padding: 20px;
    }

    .aplx-payment-channels {
        grid-template-columns: 1fr;
    }

    .aplx-payment-channels span {
        padding: 15px;
    }

    .aplx-accordion summary {
        padding: 17px;
    }

    .aplx-accordion-content {
        padding: 0 17px 19px;
    }
}