/* Text Page Styles - Modern Typography */

.text-page {
    padding: 60px 0;
    min-height: 400px;
}

/* Headings */
.text-page h1 {
    font-size: 48px;
    line-height: 56px;
    font-weight: 700;
    color: #000150;
    margin: 0 0 32px 0;
}

.text-page h2 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    color: #000150;
    margin: 48px 0 24px 0;
}

.text-page h2:first-child {
    margin-top: 0;
}

.text-page h3 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: #000150;
    margin: 40px 0 20px 0;
}

.text-page h4 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: #000150;
    margin: 32px 0 16px 0;
}

.text-page h5 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: #000150;
    margin: 28px 0 14px 0;
}

.text-page h6 {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    color: #000150;
    margin: 24px 0 12px 0;
}

/* Paragraphs */
.text-page p {
    font-size: 18px;
    line-height: 28px;
    color: #353535;
    margin: 0 0 20px 0;
}

.text-page p:last-child {
    margin-bottom: 0;
}

/* Links */
.text-page a {
    color: #D946D1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.text-page a:hover {
    color: #81007A;
    border-bottom-color: #81007A;
}

.text-page a:active {
    color: #D946D1;
}

/* Lists */
.text-page ul,
.text-page ol {
    margin: 0 0 24px 0;
    padding-left: 28px;
    list-style: initial;
}

.text-page ul {
    list-style-type: disc;
}

.text-page ol {
    list-style-type: decimal;
}

.text-page ul ul,
.text-page ol ul {
    list-style-type: circle;
    margin-top: 8px;
    margin-bottom: 8px;
}

.text-page ul ol,
.text-page ol ol {
    list-style-type: lower-alpha;
    margin-top: 8px;
    margin-bottom: 8px;
}

.text-page li {
    font-size: 18px;
    line-height: 28px;
    color: #353535;
    margin-bottom: 12px;
}

.text-page li:last-child {
    margin-bottom: 0;
}

.text-page li > ul,
.text-page li > ol {
    margin-top: 12px;
}

/* Blockquotes */
.text-page blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid #D946D1;
    background-color: #F3F5FC;
    border-radius: 0 8px 8px 0;
}

.text-page blockquote p {
    font-size: 20px;
    line-height: 32px;
    color: #000150;
    font-style: italic;
    margin-bottom: 0;
}

.text-page blockquote p:not(:last-child) {
    margin-bottom: 16px;
}

.text-page blockquote cite {
    display: block;
    font-size: 16px;
    line-height: 24px;
    color: #7273B4;
    font-style: normal;
    margin-top: 12px;
}

.text-page blockquote cite::before {
    content: '\2014\00A0';
}

/* Horizontal Rule */
.text-page hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D946D1, transparent);
    margin: 40px 0;
}

/* Strong and Emphasis */
.text-page strong,
.text-page b {
    font-weight: 700;
    color: #000150;
}

.text-page em,
.text-page i {
    font-style: italic;
}

/* Code */
.text-page code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    background-color: #F3F5FC;
    color: #D946D1;
    padding: 2px 6px;
    border-radius: 4px;
}

.text-page pre {
    margin: 24px 0;
    padding: 20px;
    background-color: #000150;
    border-radius: 8px;
    overflow-x: auto;
}

.text-page pre code {
    font-size: 14px;
    line-height: 22px;
    background-color: transparent;
    color: #FFFFFF;
    padding: 0;
}

/* Images */
.text-page img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Tables */
.text-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.text-page table th,
.text-page table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.text-page table th {
    background-color: #F3F5FC;
    font-weight: 700;
    color: #000150;
}

.text-page table tr:hover {
    background-color: #FAFBFC;
}

/* Definition Lists */
.text-page dl {
    margin: 24px 0;
}

.text-page dt {
    font-weight: 700;
    color: #000150;
    margin-bottom: 8px;
}

.text-page dd {
    margin-left: 24px;
    margin-bottom: 16px;
    color: #353535;
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-page {
        padding: 40px 0;
    }

    .text-page h1 {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 24px;
    }

    .text-page h2 {
        font-size: 32px;
        line-height: 40px;
        margin: 36px 0 20px 0;
    }

    .text-page h3 {
        font-size: 26px;
        line-height: 34px;
        margin: 28px 0 16px 0;
    }

    .text-page h4 {
        font-size: 22px;
        line-height: 30px;
        margin: 24px 0 14px 0;
    }

    .text-page p,
    .text-page li {
        font-size: 16px;
        line-height: 26px;
    }

    .text-page blockquote {
        margin: 24px 0;
        padding: 16px 20px;
    }

    .text-page blockquote p {
        font-size: 18px;
        line-height: 28px;
    }
}
