/* =============================================
   NovaPay Article Styles
   BEM prefix: np-
   Scoped under #novapay-article
   ============================================= */

/* Reset inherited ITC theme styles inside our article */
#novapay-article {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    line-height: 1.7;
    color: #000;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#novapay-article *,
#novapay-article *::before,
#novapay-article *::after {
    box-sizing: border-box;
}

#novapay-article p {
    margin: 0;
    padding: 0;
}

#novapay-article a {
    color: #109bff;
    text-decoration: underline;
    border: none;
}

#novapay-article a:hover {
    color: #0d7fd4;
}

#novapay-article h2,
#novapay-article h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
}

#novapay-article h2 {
    font-size: 36px;
}

#novapay-article h3 {
    font-size: 24px;
}

#novapay-article .np-hero__title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 54px;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    padding: 0;
    border: 0;
}

#novapay-article ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#novapay-article ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

#novapay-article li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Kill legacy theme pseudo-markers inside branded lists */
#novapay-article ul li::before,
#novapay-article ol li::before,
#novapay-article li::marker {
    content: none !important;
    display: none !important;
}

/* TOC plugin should not render in branded template */
#novapay-article #toc_container {
    display: none !important;
}

/* ---- Content container ---- */
.np-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* =============================================
   1. Hero Banner
   ============================================= */
.np-hero {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: visible;
}

.np-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* WP editor can rewrite image classes; keep hero background stable by structure */
.np-hero > img:first-of-type {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.np-hero__overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(50%, 700px);
    background: linear-gradient(
        90deg,
        rgba(105, 13, 211, 0.92) 0%,
        rgba(105, 13, 211, 0.84) 56%,
        rgba(105, 13, 211, 0) 100%
    );
}

.np-hero__body {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 140px 40px;
    display: flex;
    align-items: flex-start;
    height: 100%;
}

.np-hero__title {
    max-width: 600px;
}

/* Decorative swoosh */
.np-hero__swoosh {
    position: absolute;
    left: -210px;
    top: 461px;
    width: 497px;
    height: 500px;
    transform: rotate(180deg) scaleY(-1);
    pointer-events: none;
    z-index: 2;
}

/* Override legacy theme image rules (.entry-content img { max-width:100%; height:auto; }) */
#novapay-article .np-hero__swoosh {
    width: 497px;
    min-width: 497px;
    height: 500px;
    max-width: none;
    object-fit: contain;
    display: block;
}

/* =============================================
   2. Lead / Quote Block
   ============================================= */
.np-lead {
    background: #fff;
    padding: 100px 140px;
}

.np-lead__card {
    background: #f5eefc;
    border-radius: 32px;
    padding: 60px 180px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.np-lead__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 22px;
    line-height: 1.7;
    color: #000;
}

#novapay-article .np-lead__text p {
    margin-bottom: 15px;
}

#novapay-article .np-lead__text p:last-child {
    margin-bottom: 0;
}

/* =============================================
   3. "Що потрібно знати про корпоративні облігації"
   ============================================= */
.np-about {
    background: #fff;
    padding: 0 0 100px;
}

.np-about .np-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#novapay-article .np-text-block p {
    margin-bottom: 15px;
    line-height: 1.7;
}

#novapay-article .np-text-block p:last-child {
    margin-bottom: 0;
}

/* Keep readable spacing for standalone paragraphs in sections */
#novapay-article .np-content > p {
    margin-bottom: 15px;
}

#novapay-article .np-content > p:last-child {
    margin-bottom: 0;
}

/* Feature cards row */
.np-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.np-cards__row {
    display: flex;
    gap: 10px;
}

.np-card {
    flex: 1;
    background: #f5eefc;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.np-card__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.np-card__icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.np-card__text {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
}

/* =============================================
   4. "Корпоративні облігації NovaPay"
   ============================================= */
.np-rates {
    background: #f5eefc;
    padding: 100px 0;
}

.np-rates .np-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Rate table */
.np-rate-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.np-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    padding: 14px 24px 14px 12px;
    width: 400px;
}

.np-rate-row__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.np-rate-row__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.np-rate-row__icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.np-rate-row__term {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    white-space: nowrap;
}

.np-rate-row__rate {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    white-space: nowrap;
}

/* =============================================
   5 & 10. Full-Width Photo Divider
   ============================================= */
.np-divider {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.np-divider__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* WP editor can rewrite image classes; keep divider image stable by structure */
.np-divider > img:first-of-type {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-divider__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
}

.np-divider__gradient img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =============================================
   6. "Як формується дохід інвестора"
   ============================================= */
.np-income {
    background: #fff;
    padding: 100px 0;
}

.np-income .np-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Bullet list with purple squares */
.np-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.np-bullet-item {
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.np-bullet-item__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #690dd3;
    flex-shrink: 0;
}

.np-bullet-item__text {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.7;
    flex: 1;
}

/* =============================================
   7. "Що робить інвестиції доступнішими"
   ============================================= */
.np-accessible {
    background: #f5eefc;
    padding: 100px 0;
}

.np-accessible .np-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Floating NovaPay info callouts */
.np-callout {
    background: #fff;
    padding: 0 0 100px;
}

.np-callout .np-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.np-callout__box {
    background: #f5eefc;
    border-left: 8px solid #9d10f7;
    border-radius: 0;
    min-height: 100px;
    padding: 24px 56px;
    display: flex;
    align-items: center;
}

.np-callout__box p {
    margin: 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.np-callout__box a {
    color: inherit !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    border: none;
}

.np-callout__box a:hover {
    color: inherit !important;
    opacity: 0.86;
}

/* =============================================
   8. "Редакторський досвід"
   ============================================= */
.np-experience {
    background: #fff;
    padding: 100px 0;
}

.np-experience .np-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Screenshot grids */
.np-screenshots {
    display: flex;
    gap: 10px;
    width: 100%;
}

.np-screenshots--3col .np-screenshot {
    flex: 1;
    height: 540px;
}

.np-screenshots--2col {
    justify-content: center;
}

.np-screenshots--2col .np-screenshot {
    width: 260px;
    height: 540px;
    flex: none;
}

.np-screenshots--single {
    justify-content: center;
}

.np-screenshots--single .np-screenshot {
    width: 521px;
    height: 540px;
    flex: none;
}

.np-screenshots--3col-tall .np-screenshot {
    flex: 1;
    height: 555px;
}

.np-screenshot {
    border: 2px solid #f5eefc;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.np-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

/* =============================================
   9. "Фінансові сервіси в одному застосунку"
   ============================================= */
.np-services {
    background: #f5eefc;
    padding: 100px 0;
}

.np-services .np-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.np-services__cta {
    display: flex;
    justify-content: center;
    padding-top: 65px;
}

.np-footnote {
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
}

.np-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 442px);
    min-height: 84px;
    padding: 20px 44px;
    border-radius: 42px;
    background: #7400DA;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.np-action-button:hover {
    color: #fff !important;
}

/* =============================================
   10. Bottom Photo + Footer Image
   ============================================= */
.np-footer-img {
    position: relative;
    width: 100%;
    height: 302px;
    overflow: hidden;
}

.np-footer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================
   Bold text helper
   ============================================= */
.np-bold {
    font-weight: 700;
}

/* =============================================
   Responsive (basic)
   ============================================= */
@media (max-width: 1366px) {
    .np-hero__bg,
    .np-hero > img:first-of-type {
        object-position: center;
    }

    .np-hero__overlay {
        width: min(52%, 700px);
    }

    #novapay-article .np-hero__title {
        font-size: 50px;
        max-width: 560px;
    }

    #novapay-article .np-hero__swoosh {
        left: -120px;
        top: 567px;
        width: 270px;
        min-width: 270px;
        height: 272px;
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .np-hero__body {
        padding: 80px 60px 40px;
    }

    #novapay-article .np-hero__title {
        font-size: 42px;
        max-width: 520px;
    }

    .np-lead {
        padding: 60px 40px;
    }

    .np-lead__card {
        padding: 40px 60px;
    }
}

@media (max-width: 768px) {
    .np-hero {
        height: 500px;
    }

    .np-hero__overlay {
        /* Client request: mobile first screen without gradient, 80% color opacity */
        inset: 0;
        width: 100%;
        background: rgba(105, 13, 211, 0.8);
    }

    .np-hero__body {
        padding: 60px 20px 20px;
    }

    #novapay-article .np-hero__title {
        font-size: 32px;
    }

    #novapay-article .np-hero__swoosh {
        display: none;
    }

    .np-lead {
        padding: 40px 16px;
    }

    .np-lead__card {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .np-lead__text {
        font-size: 18px;
    }

    .np-callout {
        padding: 0 0 60px;
    }

    .np-callout__box {
        min-height: 72px;
        padding: 18px 24px 18px 18px;
        border-left-width: 6px;
    }

    .np-callout__box p {
        font-size: 17px;
        line-height: 1.45;
    }

    #novapay-article h2 {
        font-size: 28px;
    }

    #novapay-article h3 {
        font-size: 20px;
    }

    .np-content {
        padding: 0 16px;
    }

    .np-about,
    .np-income,
    .np-accessible,
    .np-experience,
    .np-services {
        padding-left: 0;
        padding-right: 0;
    }

    .np-services__cta {
        padding-top: 4px;
    }

    .np-action-button {
        width: 100%;
        max-width: 320px;
        min-height: 64px;
        padding: 16px 24px;
        border-radius: 32px;
        font-size: 22px;
    }

    .np-rates {
        padding: 60px 0;
    }

    .np-cards__row {
        flex-direction: column;
    }

    .np-card {
        align-items: center;
        text-align: center;
    }

    .np-card__icon {
        margin-left: auto;
        margin-right: auto;
    }

    .np-rate-row {
        width: 100%;
    }

    .np-rate-table {
        padding: 0 16px;
    }

    .np-screenshots--3col .np-screenshot,
    .np-screenshots--3col-tall .np-screenshot {
        height: 400px;
    }

    .np-screenshots--2col .np-screenshot {
        width: 48%;
        height: 400px;
    }

    .np-screenshots--single .np-screenshot {
        width: 80%;
        height: auto;
    }

    .np-screenshots {
        flex-direction: column;
        gap: 12px;
    }

    .np-screenshots .np-screenshot {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }

    .np-screenshots .np-screenshot img {
        height: auto;
    }

    .np-divider {
        height: 400px;
    }

    .np-footer-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    #novapay-article {
        font-size: 17px;
    }

    #novapay-article h2 {
        font-size: 24px;
    }

    .np-screenshots--3col,
    .np-screenshots--3col-tall {
        align-items: stretch;
    }
}
