@import 'variables.css';
@import 'fonts.css';

::-moz-selection {
    background: #FFC749;
    color: #202430 !important;
}

::selection {
    background: #FFC749;
    color: #202430 !important;
}

img::selection {
    background-color: transparent;
}

*, *:focus, *:hover {
    outline: none;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-dark);
    border-radius: 10px;
}

:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
}

html {
    background-color: #f5f5f5;
    scroll-behavior: smooth;
}

body > .message {
    position: fixed;
    left: 0;
    bottom: 0;
    color: #fff;
    width: 100%;
    padding: 20px;
    z-index: 999;
    text-align: center;
    font-weight: 600;
}


.header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-overlay.active {
    opacity: 1;
    visibility: visible;
}

.field-validation-error {
    font-size: 13px;
    color: #dc3545;
}

body > .message.message-error {
    background-color: #dc3545;
}

body > .message.message-success {
    background-color: #28a745;
}


html .form-control {
    padding: 10px;
    border-color: #eee;
}

html textarea.form-control {
    min-height: 180px;
}

html a {
    color: var(--color-primary);
    font-size: inherit;
    font-weight: inherit;
}

.flow {
    display: contents;
}

iframe {
    border-radius: 9px;
    overflow: hidden;
}

.content a[target=_blank] {
    position: relative;
    display: inline-flex;
    gap: 1px;
    align-items: center;
    margin-inline: 4px;
}

.content a[target=_blank]::after {
    content: "";
    width: 13px;
    height: 13px;
    display: inline-block;
    background: url("../images/icons/outward.svg");
    background-size: contain;
}

html body {
    font-family: var(--font-primary), sans-serif;
    width: 100%;
    color: var(--color-dark);
    font-size: 16px;
    overflow-x: clip;
}

html hr {
    margin-block: 40px;
    background: #e5eaf1;
    opacity: 1;
}

p,ul,ol,dl,dt {
    font-size: 20px;
    color: var(--color-body);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark);
}

h2 {
    font-size: 70px;
    line-height: 120%;
    font-weight: 700;
}

.widget-container {
    display: contents;
}

.OutlineElement {
    display: contents !important;
}

header {
    border-bottom: 1px solid #e8edf3;
    padding-block: 20px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .07);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

header .widget-search-form {
    width: 540px;
    max-width: 100%;
    position: relative;
    z-index: 1010;
}

header .widget-search-form .container {
    margin-inline: auto !important;
}

header .container .menu.nav {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

header .container .menu {
    flex-shrink: 0;
}

header .container .menu.nav li a {
    padding: 5px 10px;
    color: var(--color-dark);
    font-size: 18px;
    font-weight: 500;
}

header .logo img {
    width: 230px;
    height: auto;
}

.search-form-wrapper {
    display: contents;
}

@media(min-width: 1001px) {

    header .container .menu {
        padding: 0 !important;
    }
    
    .search-form-wrapper .search-form-trigger {
        display: none;
    }
}

.search-form-trigger {
    border: 0;
    color: transparent;
    background: transparent url(../images/icons/search-black.svg) no-repeat center center;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    cursor: pointer;
    background-size: 35px;
    padding: 0;
}
header .search-form-trigger {
    margin-left: auto;
}

@media(max-width: 1000px) {

    header .logo img {
        width: 180px;
    }

    header .container {
        gap: 20px;
    }

    .search-form-wrapper .search-form-trigger {
        display: inline-block;
    }

}

/* --------- HERO --------- */

.hero-section {
    padding: 4rem 0;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 4fr 5fr;
    align-items: center;
    gap: 1rem;
    padding: 0 !important;
}

@media (min-width: 992px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.hero-text-block {
    width: 100%;
}

.hero-media-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.hero-title h1 {
    font-size: 57px;
    font-weight: 700;
}

.hero-title strong,
.hero-title b,
.hero-title em,
.hero-title span {
    position: relative;
    font-weight: inherit;
    z-index: 1;
}

.hero-title b::before {
    content: "";
    position: absolute;
    width: 95%;
    height: 15px;
    left: 0;
    bottom: 5px;
    background: #ffc749;
    border-radius: 4px;
    z-index: -1;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2rem;
}

.hero-description p {
    margin: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: min(540px, 80vw);
    display: block;
    object-fit: contain;
}

@media (max-width: 1000px) {

    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .hero-section form .input-group {
        margin-top: 0 !important;
    }
    
}

/* --------- SEARCH FORM --------- */

.widget-search-form .input-group {
    padding: 0 !important;
    margin: 0 !important;
}

.widget-search-form .input-group input {
    padding: 10px 15px;
    border-radius: 9px !important;
    font-size: 18px;
    box-shadow: none !important;
    border: 1px solid #eee !important;
}

.widget-search-form .input-group button[type="submit"] {
    position: absolute;
    z-index: 10;
    right: 10px;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 9px !important;
    width: 48px;
    height: 48px;
    background: url("../images/icons/search-gray.svg") no-repeat center center;
    background-size: 30px;
    font-size: 0;
    border: 0;
    box-shadow: none;
}

.search-submit-btn.is-loading {
    background-image: url("@loadingGifUrl");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20px 20px;
    pointer-events: none;
}

.search-submit-btn.is-loading span {
    opacity: 0;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1100;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 5px !important;
}

.search-suggestions li {
    padding: 15px;
    border-bottom: 1px solid #f2f2f2;
    transition: background-color .2s ease;
}

.search-suggestions li:hover {
    background-color: #f6f6f6;
}

.search-suggestions li:last-child {
    border: 0;
}

.search-suggestions li a {
    display: block;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.2;
}

.search-suggestions li a strong {
    font-weight: 800;
}

.search-suggestions li small {
    display: block;
    color: #777;
    font-size: 16px;
    font-weight: 400;
    margin-top: 10px;
}

@media (max-width: 1000px) {
    .search-form-wrapper.triggerable .widget-search-form {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: 100vw !important;
        background-color: #fff;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
        z-index: 1000;
        border-top: 1px solid #eee;
    }

    .search-form-wrapper.triggerable .widget-search-form.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .search-form-wrapper.triggerable .widget-search-form .input-group {
        margin: 0 auto !important;
        padding: 18px 15px !important;
    }

    .search-form-trigger.active {
        background: url("../images/icons/exit-black.svg") no-repeat center center;
        background-size: 35px;
    }
}

@media (min-width: 576px) {
    .search-form-wrapper.triggerable .widget-search-form .input-group {
        padding-inline: 0 !important;
    }
}

/* --------- FORM --------- */

.widget-form button[type=submit] {
    background-color: var(--color-primary);
    padding: 10px 20px;
    position: relative;
    border: 0;
}

/* --------- HIGHLIGHTS --------- */

.highlight-elements-section {
    margin-block: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    border-radius: 15px;
}

.highlight-elements-section.style-vertical .highlight-element-card {
    flex-direction: column;
}

.highlight-elements-section.style-vertical .highlight-element-card .title,
.highlight-elements-section.style-vertical .highlight-element-card .description {
    text-align: center;
}

.highlight-element-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.highlight-element-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    text-align: center;
    align-content: center;
    flex-shrink: 0;
}

.highlight-element-card .icon img {
    width: 40px;
    height: 40px;
}

.highlight-elements-section .highlight-element-card .title {
    font-weight: 700;
    font-size: 20px;
    line-height: 130%;
    color: #202430;
}

.highlight-elements-section .highlight-element-card .description {
    font-size: 16px;
    line-height: 140%;
    color: var(--color-body-light);
    margin: 0;
}

@media (max-width: 1000px) {

    .widget-search-form .search-suggestions {
        top: 100% !important;
        border-radius: 0 !important;
    }
    
    .highlight-elements-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .highlight-elements-section {
        grid-template-columns: 1fr;
    }
}

/* --------- TEXT SECTION --------- */

.text-section {
    margin: 120px 0;
}

.text-section h2 {
    font-weight: 700;
    font-size: 42px;
}

.text-section h2 strong,
.text-section h2 b {
    font-weight: inherit;
    position: relative;
    z-index: 1;
}

.text-section h2 b::before,
.text-section h2 strong::before {
    content: "";
    position: absolute;
    width: 95%;
    height: 15px;
    left: 0;
    bottom: 5px;
    background: #ffc749;
    border-radius: 4px;
    z-index: -1;
}

/* --------- CATEGORIES SECTION --------- */

.article-categories {
    width: 100%;
}

.article-categories__header {
    margin-bottom: 32px;
}

.article-categories__header h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.article-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-block: 60px;
}

.article-categories__item {
    min-width: 0;
    text-decoration: none;
}

.article-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 28px 24px 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(20, 40, 80, 0.03);
    transition:
            transform 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
    height: 100%;
}

.article-category-card:hover {
    transform: translateY(-3px);
    border-color: #dce5f0;
    box-shadow: 0 10px 30px rgba(20, 40, 80, 0.08);
}

.article-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
}

.article-category-card__icon img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.article-category-card__content {
    flex: 1;
}

.article-category-card__title {
    margin: 0 0 10px;
    color: var(--color-dark);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.article-category-card__description {
    margin: 0;
    color: var(--color-body-light);
    font-size: 17px;
    line-height: 1.55;
}

.article-category-card__footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 28px;
}

.article-category-card__link {
    color: var(--color-body-light);
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .article-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .article-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .article-categories__grid {
        grid-template-columns: 1fr;
    }

    .article-category-card {
        min-height: 240px;
    }

    .article-categories__header {
        margin-bottom: 24px;
    }

    .article-categories__header h2 {
        font-size: 26px;
    }
}

/* --------- CTA SECTION --------- */

.cta-section {
    width: 100%;
    margin: 100px 0;
    border-radius: 9px;
    overflow: hidden;
}

.cta-section__container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #ebf4fd;
    gap: 25px;
    padding: 25px;
}

.cta-section__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50%;
    align-self: stretch;
}

.cta-section__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 500px;
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    object-fit: contain;
}

.cta-section__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.cta-section__title {
    margin-bottom: 8px;
    color: #101a35;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.cta-section__title h2 {
    font-weight: 700;
    font-size: 42px;
}

.cta-section__title strong,
.cta-section__title em,
.cta-section__title span,
.cta-section__title b {
    position: relative;
    z-index: 1;
    font-weight: inherit;
    display: inline-block;
}

.cta-section__title strong::before,
.cta-section__title em::before,
.cta-section__title span::before,
.cta-section__title b::before {
    content: "";
    position: absolute;
    width: 95%;
    height: 15px;
    left: 0;
    bottom: 5px;
    background: #ffc749;
    border-radius: 4px;
    z-index: -1;
}

.cta-section__description {
    margin-bottom: 20px;
    color: #69758c;
    font-size: 16px;
    line-height: 1.5;
}

.cta-section__description ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.cta-section__description ul li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: left;
}

.cta-section__description ul li::before {
    content: "";
    background: url(../images/icons/check.svg);
    width: 30px;
    height: 30px;
    background-size: contain;
}

.cta-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 7px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-section__button:hover {
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
  
    .cta-section__container {
        flex-direction: column;
    }

    .cta-section__media {
        flex: none;
        width: 100%;
    }

    .cta-section__content {
        align-items: center;
        text-align: center;
    }

    .cta-section__title {
        font-size: 27px;
    }

    .cta-section__description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .cta-section__image {
        width: 100%;
        height: auto;
    }

    .cta-section__title {
        font-size: 24px;
    }
}

/* --------- FOOTER --------- */

footer {
    width: 100%;
    background: #fff;
    border-top: 1px solid #e8edf4;
    color: #101a35;
}

.footer-details-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 0 22px;
}

.footer-logo-wrapper {
    flex: 1;
}

.footer-logo-wrapper .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-wrapper .logo img {
    display: block;
    width: 200px;
    height: auto;
    object-fit: contain;
}

.footer-logo-wrapper .description {
    margin-top: 10px;
}

.footer-logo-wrapper .description p {
    margin: 0;
    color: #69758c;
    font-size: 16px;
    line-height: 1.5;
}

.contact-links-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-elements-section{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #69758c;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease;
}

.contact-item a[href='#'] {
    pointer-events: none;
}

.contact-item a[href='#'] * {
    pointer-events: auto;
}

.contact-item p {
    margin: 0;
}

.contact-elements-section.style-2 .contact-item p,
.contact-elements-section.style-2 .contact-item span,
.contact-elements-section.style-2 .contact-item strong,
.contact-elements-section.style-2 .contact-item b {
    font-size: 16px;
}

.contact-elements-section.style-2 h4 {
    font-size: 18px;
    font-weight: 600;
}

.contact-elements-section.style-2 .contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-block: 20px;
}

.contact-elements-section.style-2 .contact-item:last-child {
    border-bottom: none;
}

.contact-elements-section.style-2 .contact-item a {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 6px;
}

.contact-elements-section.style-2 .contact-item a h4 {
    text-align: left;
    margin: 0;
}

.contact-elements-section.style-2 .contact-item img {
    width: 50px;
    height: 50px;
    background: #EFF5FD;
    border-radius: 50%;
    padding: 11px;
}

.contact-item:hover {
    color: var(--color-primary);
}

.contact-item img {
    display: block;
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.footer-socials-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.social-links-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.social-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f6fa;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link-item:hover {
    background: #e8f2ff;
    transform: translateY(-2px);
}

.social-link-item img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.social-link-item span {
    display: none;
}

.copyright {
    margin: 0 auto;
    padding: 7px 0;
    border-top: 1px solid #eee;
    color: #8a94a6;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-details-wrapper {
        flex-direction: column;
        gap: 24px;
        padding: 28px 20px 22px;
    }

    .footer-logo-wrapper,
    .contact-links-wrapper,
    .footer-socials-wrapper {
        width: 100%;
        flex: none;
    }

    .contact-links-wrapper,
    .footer-socials-wrapper {
        justify-content: flex-start;
    }

    .social-links-section {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .copyright {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .footer-details-wrapper {
        padding: 24px 16px 20px;
    }

    .contact-item {
        font-size: 13px;
    }

    .copyright {
        margin: 0 16px;
        font-size: 11px;
    }
}

/* --------- CATEGORY PAGE --------- */

.category-page {
    margin: 0 auto;
    color: #1f2937;
}

.breadcrumb {
    margin-bottom: 28px;
    font-size: 13px;
    line-height: 1.5;
    color: #8a94a6;
}

.breadcrumb a {
    color: #358fe6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.header {
    padding-block: 60px;
    border-bottom: 1px solid #eee;
    margin-bottom: 60px;
    background: url("../images/background.svg") no-repeat top right;
}

.header h1 {
    margin: 0 0 12px;
    color: #1d2948;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.header .description {
    max-width: 720px;
    color: #6f7b8f;
    font-size: 25px;
    line-height: 1.4;
    margin-top: 30px;
}

.header .document__meta {
    font-size: 18px;
    margin-top: 55px;
}

.header .document__reading-time::before,
.header .document__updated::before {
    width: 20px;
    height: 20px;
}

.two-column-page .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: start;
    margin-bottom: 50px;
}

.content {
    min-width: 0;
}

.content blockquote {
    font-size: 20px;
    line-height: inherit;
    padding: 25px 35px;
    background: #ebf4fd;
    border-radius: 8px;
    margin-block: 30px;
}

.content blockquote:first-child {
    margin-top: 0;
}

.content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.content table {
    display: block;
    max-width: 100%;
    overflow: auto;
    margin-block: 30px;
}

.content table td {
    padding: 16px 28px;
    text-align: left;
    font-size: 17px;
}

.content table th {
    padding: 16px 28px;
    font-weight: 600;
    text-align: left;
    font-size: 17px;
    background-color: var(--color-dark);
    color: #fff;
}
.content thead th:first-child {
    border-radius: 8px 0 0 8px;
}
.content thead th:last-child {
    border-radius: 0 8px 8px 0;
}
.content tr:nth-child(even) td{
    background-color: #ebf4fd;
    overflow: hidden;
}
.content tr:nth-child(even) td:first-child{
    border-radius: 8px 0 0 8px;
}
.content tr:nth-child(even) td:last-child{
    border-radius: 0 8px 8px 0;
}
.content table * {
    font-size: inherit;
}

.content h2,
.content h3,
.content h4 {
    margin-block: 40px 20px;
}

.content h2:first-of-type,
.content h3:first-of-type,
.content h4:first-of-type {
    margin-top: 0;    
}

.articles {
    width: 100%;
}

.category-article {
    position: relative;
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e8edf4;
}

.category-article .category {
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 30px;
    background: #F0F6FE;
    margin-bottom: 5px;
    display: inline-block;
    color: #788397;
    text-transform: uppercase;
    letter-spacing: .7px;
    line-height: 1;
}

.category-article:last-child {
    margin-bottom: 0;
    border: 0;
}

.category-article__content {
    display: block;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.content .category-article__title {
    margin: 0 0 8px;
    color: #1d2948;
    font-size: 25px;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -0.15px;
    transition: color 0.2s ease;
}

.category-article__content:hover .category-article__title {
    color: #358fe6;
}

.category-article__excerpt {
    margin: 0 0 13px;
    color: #788397;
    font-size: 16px;
    line-height: 1.7;
}

.document__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    color: #8993a5;
    font-size: 12px;
    line-height: 1.5;
}

.document__reading-time,
.document__updated,
.recent-articles-item-date
{
    display: inline-flex;
    align-items: center;
    position: relative;
    line-height: 1;
}

.document__reading-time::before {
    content: "";
    width: 15px;
    height: 15px;
    margin-right: 3px;
    background: url("../images/icons/clock.svg");
    background-size: contain;
}

.document__updated::before,
.recent-articles-item-date::before {
    content: "";
    width: 15px;
    height: 15px;
    margin-right: 3px;
    background: url("../images/icons/update.svg");
    background-size: contain;
}

.category-article__arrow {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #358fe6;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.category-article__arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.category-article:hover .category-article__arrow {
    transform: translateX(4px);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.sidebar .widget-container {
    width: 100%;
}

.sidebar .widget-container > section,
.sidebar .widget-container > .widget-section {
    width: 100%;
}

.widget-section .flow {
    width: 100%;
}

.text-section h3 {
    margin: 0 0 14px;
    color: #1d2948;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.4;
}

.form-label {
    font-size: 18px;
}

.sidebar .widget-search-form {
    width: 100%;
}

.sidebar .widget-search-form .widget-body {
    width: 100%;
}

.sidebar .widget-search-form form {
    margin: 0;
}

.sidebar .widget-search-form .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0 !important;
}

.sidebar .widget-search-form .form-control {
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #dfe5ed;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    outline: none;
    background: #fff;
    color: #26334f;
    font-family: inherit;
    font-size: 12px;
    box-shadow: none;
}

.sidebar .widget-search-form .form-control::placeholder {
    color: #a1aaba;
}

.sidebar .widget-search-form .form-control:focus {
    border-color: #358fe6;
    box-shadow: none;
}

.sidebar .widget-search-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 32px !important;
    height: 32px !important;
    padding: 0;
    border: 1px solid #358fe6;
    border-radius: 0 6px 6px 0;
    background: #358fe6;
    color: #fff;
    font-size: 0;
    box-shadow: none;
    background-size: 23px !important;
}

.recent-articles-widget {
    padding: 24px;
    border: 1px solid #e5eaf1;
    border-radius: 9px;
    background: #fff;
}

.recent-articles-widget .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.recent-articles-title {
    margin: 0 0 20px;
    color: #1d2948;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.recent-articles-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.recent-articles-item {
    padding: 0 0 15px;
    margin: 0 0 15px;
    border-bottom: 1px solid #edf0f4;
}

.recent-articles-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.recent-articles-item-title {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.recent-articles-item-title a {
    color: #358fe6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-articles-item-title a:hover {
    color: #1d2948;
}

.recent-articles-item-date {
    color: #9aa4b4;
    font-size: 11px;
    line-height: 1.5;
}

.popular-articles {
    padding: 24px;
    border: 1px solid #e5eaf1;
    border-radius: 9px;
    background: #fff;
}

.popular-articles__content {
    width: 100%;
}

.popular-articles__title {
    margin: 0 0 20px;
    color: #1d2948;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.popular-articles__list {
    display: flex;
    flex-direction: column;
}

.popular-articles .category-article {
    display: block;
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid #edf0f4;
}

.popular-articles__list .document__updated {
    display: none;
}

.popular-articles .category-article:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.popular-articles .category-article__content {
    display: block;
}

.popular-articles .category-article__title {
    margin: 0 0 7px;
    color: #358fe6;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.popular-articles .category-article__content:hover .category-article__title {
    color: #1d2948;
}

.popular-articles .category-article__excerpt {
    display: none;
}

.popular-articles .document__meta {
    gap: 12px;
    color: #9aa4b4;
    font-size: 11px;
}

.popular-articles .document__reading-time,
.popular-articles .document__updated,
.recent-articles-item-date {
    display: none;
}

.popular-articles .category-article__arrow {
    display: none;
}

@media (max-width: 1000px) {

    .article-categories__grid {
        margin-block: 30px;
    }

    .two-column-page .layout {
        display: flex;
        flex-direction: column;
    }

    .cta-section__description ul li {
        justify-content: center;
    }
    
    .category-page {
        padding: 40px 24px 64px;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 36px;
    }

    .header {
        margin-bottom: 40px;
    }

    .header h1 {
        font-size: 34px;
    }

    .category-article__title {
        font-size: 17px;
    }

    .sidebar {
        width: 100%;
        gap: 16px;
    }

    .recent-articles-widget,
    .popular-articles {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .category-page {
        padding: 32px 20px 56px;
    }

    .breadcrumb {
        margin-bottom: 22px;
    }

    .header {
        max-width: none;
        margin-bottom: 36px;
    }

    .header h1 {
        margin-bottom: 0;
        font-size: 42px;
    }

    .description {
        font-size: 14px;
        line-height: 1.7;
    }

    .layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .content,
    .sidebar {
        width: 100%;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
    }

    .sidebar .widget-container:first-child {
        grid-column: 1 / -1;
    }

    .category-article {
        gap: 18px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    h2.category-article__title {
        font-size: 18px !important;
    }

    .category-article h2.category-article__title {
        font-size: 20px !important;
    }
    
    .category-article__excerpt {
        font-size: 15px;
    }

    .header .description {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .category-page {
        padding: 24px 16px 48px;
    }

    .breadcrumb {
        margin-bottom: 18px;
        font-size: 12px;
    }

    .header {
        margin-bottom: 30px;
    }

    .description {
        font-size: 13px;
    }

    .layout {
        gap: 32px;
    }

    .category-article {
        gap: 10px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .category-article__title {
        margin-bottom: 6px;
        font-size: 15px;
        line-height: 1.4;
    }

    .category-article__excerpt {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.6;
    }

    .document__meta {
        gap: 10px;
        font-size: 12px;
    }

    .category-article__arrow {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
    }

    .category-article__arrow svg {
        width: 17px;
        height: 17px;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .recent-articles-widget,
    .popular-articles {
        padding: 18px;
        border-radius: 8px;
    }

}

/* --------- ARTICLE PAGE --------- */

.back-to-category {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 18px;
}

.back-to-category svg {
    width: 18px;
    height: 18px;
}

.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e8edf5;
}

.related-articles__title {
    margin: 0 0 20px;
    color: #17264d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.related-article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid #e3eaf4;
    border-radius: 9px;
    background: #fff;
    color: #17264d;
    text-decoration: none;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.related-article:hover {
    border-color: #358fe6;
    box-shadow: 0 4px 14px rgba(23, 38, 77, 0.07);
    color: #17264d;
    transform: translateY(-1px);
}

.related-article__title {
    min-width: 0;
    color: #358fe6;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.related-article__arrow {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #358fe6;
}

.related-article__arrow svg {
    display: block;
    width: 20px;
    height: 20px;
}

@media (max-width: 1000px) {
    
    .content * {
        font-size: 16px;
    }
    
    .related-articles {
        margin-top: 40px;
        padding-top: 28px;
    }

    .related-articles__grid {
        gap: 10px 12px;
    }
}

@media (max-width: 768px) {
    .related-articles {
        margin-top: 36px;
        padding-top: 26px;
    }

    .related-articles__grid {
        grid-template-columns: 1fr;
    }

    .related-article {
        min-height: 54px;
    }
}

@media (max-width: 480px) {
    .related-articles {
        margin-top: 32px;
        padding-top: 24px;
    }

    .related-articles__title {
        margin-bottom: 16px;
        font-size: 18px;
    }

    .related-article {
        min-height: 52px;
        padding: 12px 14px;
        border-radius: 8px;
    }

    .related-article__title {
        font-size: 13px;
    }

    .related-article__arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* --------- SEARCH PAGE --------- */

.list-group {
    margin-top: 15px;
}

.search-page form {
    margin-bottom: 60px;
}

.search-page .header {
    margin-bottom: 0;
    border: 0;
    background: none;
}

.search-page form:has(+ *) {
    margin-bottom: 0;
}

.search-page .list-group-item {
    padding: 20px;
    border-radius: 9px !important;
    border: 1px solid #eee !important;
}

.search-page .category-article {
    padding: 0;
    border: 0;
}

.search-page .list-group {
    margin-bottom: 60px;
    gap: 10px;
    margin-top: 0;
}

@media all and (max-width: 1000px) {
    .search-page .list-group {
        margin-bottom: 30px;
    }  
}

/* --------- PAGER --------- */

ul.pager.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 40px 0 20px 0;
}

ul.pager.pagination li {
    display: inline-flex;
}

ul.pager.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: transparent;
    font-size: 0;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px;
}

ul.pager.pagination li a[rel="prev"] {
    background-image: url('../images/icons/arrow-backward.svg');
}

ul.pager.pagination li a[rel="next"] {
    background-image: url('../images/icons/arrow-forward.svg');
}

ul.pager.pagination li a:hover {
    border-color: #358fe6;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

ul.pager.pagination li a:active {
    transform: translateY(0);
}

/* --------- CUSTOM CSS --------- */

@media all and (max-width: 1000px) {

    .hero-title h1,
    h1 {
       font-size: 42px; 
    }
    
    h2,
    .text-section h2 {
        font-size: 32px;
    }
}