:root {
    --bg: #F8F9FA;
    --surface: #FFFFFF;
    --surface-alt: #F1F3F5;
    --text: #121316;
    --text-muted: #5E6573;
    --border: #E5E7EB;
    --primary: #E63E00;
    --primary-hover: #C43500;
    --on-primary: #FFFFFF;
    --primary-text: #E63E00;
    --accent: #E63E00;
    --on-accent: #FFFFFF;
    --accent-text: #E63E00;
    --dark-band: #121316;
    --on-dark: #FFFFFF;
    --on-dark-muted: #9FA7B3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: var(--text-muted) !important;
}

.kt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--on-primary);
    border: 1px solid var(--primary);
    border-radius: 0px;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.kt-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--on-primary);
}

.kt-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--primary-text);
    border: 1px solid var(--primary);
    border-radius: 0px;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kt-btn-alt:hover {
    background-color: var(--primary);
    color: var(--on-primary);
}

.kt-card {
    background-color: var(--surface);
    color: var(--text);
    border-radius: 0px;
    border: 1px solid var(--border);
    border-bottom: 4px solid var(--primary);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .kt-card {
        padding: 1.75rem;
    }
}

.kt-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
}

.kt-media img,
.kt-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kt-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.kt-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.025em;
    margin-top: 0;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .kt-title {
        font-size: 2.25rem;
    }
}

.kt-badge {
    display: inline-block;
    background-color: var(--dark-band);
    color: var(--on-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 0px;
}

.kt-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--on-primary);
    border-radius: 0px;
    font-size: 1.25rem;
}

.kt-section {
    background-color: var(--bg);
    color: var(--text);
    padding: 4rem 1rem;
}

.kt-section-alt {
    background-color: var(--surface-alt);
    color: var(--text);
    padding: 4rem 1rem;
}

.kt-section-dark {
    background-color: var(--dark-band);
    color: var(--on-dark);
    padding: 4rem 1rem;
}

.kt-section-brand {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 4rem 1rem;
}

@media (min-width: 768px) {

    .kt-section,
    .kt-section-alt,
    .kt-section-dark,
    .kt-section-brand {
        padding: 6rem 2rem;
    }
}

.kt-section-brand .kt-btn {
    background-color: var(--dark-band);
    color: var(--on-dark);
    border-color: var(--dark-band);
}

.kt-section-brand .kt-btn:hover {
    background-color: #000000;
    border-color: #000000;
}

.kt-section-brand .kt-btn-alt {
    border-color: var(--on-primary);
    color: var(--on-primary);
}

.kt-section-brand .kt-btn-alt:hover {
    background-color: var(--on-primary);
    color: var(--primary);
}

.kt-on-dark {
    color: var(--on-dark);
}

.kt-section-dark,
.kt-on-dark {
    color: var(--on-dark);
}

.kt-section-dark h1,
.kt-section-dark h2,
.kt-section-dark h3,
.kt-section-dark h4,
.kt-section-dark .kt-title,
.kt-on-dark h1,
.kt-on-dark h2,
.kt-on-dark h3,
.kt-on-dark h4,
.kt-on-dark .kt-title {
    color: var(--on-dark);
}

.kt-section-dark p,
.kt-section-dark .text-muted,
.kt-on-dark p,
.kt-on-dark .text-muted {
    color: var(--on-dark-muted) !important;
}

.kt-section-dark .kt-btn-alt,
.kt-on-dark .kt-btn-alt {
    border-color: var(--on-dark);
    color: var(--on-dark);
}

.kt-section-dark .kt-btn-alt:hover,
.kt-on-dark .kt-btn-alt:hover {
    background-color: var(--on-dark);
    color: var(--dark-band);
}

.kt-section-dark .kt-card,
.kt-on-dark .kt-card {
    background-color: #1A1C21;
    color: var(--on-dark);
    border-color: #282B33;
    border-bottom: 4px solid var(--primary);
}

.kt-section-dark .kt-card h1,
.kt-section-dark .kt-card h2,
.kt-section-dark .kt-card h3,
.kt-section-dark .kt-card h4,
.kt-section-dark .kt-card .kt-title,
.kt-on-dark .kt-card h1,
.kt-on-dark .kt-card h2,
.kt-on-dark .kt-card h3,
.kt-on-dark .kt-card h4,
.kt-on-dark .kt-card .kt-title {
    color: var(--on-dark);
}

.kt-section-dark .kt-card p,
.kt-section-dark .kt-card .text-muted,
.kt-on-dark .kt-card p,
.kt-on-dark .kt-card .text-muted {
    color: var(--on-dark-muted) !important;
}

/* ===== header ===== */
.header-block {
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-block .js-dropdown-menu.is-open {
    display: flex;
}

.header-block .js-dropdown-toggle[aria-expanded="true"] .js-dropdown-icon {
    transform: rotate(180deg);
}

.header-block .js-mobile-menu.is-open {
    display: block;
}

@media (max-width: 767px) {
    .header-block__topbar {
        font-size: 0.75rem;
    }

    .header-block__navbar {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
}

/* ===== give_every_vector_outline_a_clear_role ===== */
.hero-block {
    position: relative;
    background-color: var(--dark-band, #121316);
}

.hero-block__video-wrapper {
    pointer-events: none;
}

.hero-block__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-block__overlay {
    background-color: rgba(18, 19, 22, 0.78);
}

.hero-block h1 {
    overflow-wrap: anywhere;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-block p {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .hero-block .hero-block__countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== who_will_be_working ===== */
.who-works-block .specialist-card {
    border-radius: 0;
    box-shadow: none;
}

.who-works-block .specialist-media-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
}

.who-works-block .specialist-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 767px) {
    .who-works-block h2 {
        hyphens: auto;
        overflow-wrap: anywhere;
    }

    .who-works-block .specialist-card {
        width: 100%;
    }
}

/* ===== educational_packages ===== */
.tariff-section .tariff-card {
    min-height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tariff-section .tariff-card.active-card {
    border-color: #E63E00;
}

.tariff-section .tariff-input::placeholder {
    color: #5E6573;
    opacity: 1;
}

.tariff-section .tariff-checkbox {
    accent-color: #E63E00;
}

@media (max-width: 767px) {
    .tariff-section .tariff-card {
        width: 100%;
    }
}

/* ===== book_a_consultation ===== */
.consultation-section input::placeholder,
.consultation-section textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.consultation-section .consultation-choice-btn.is-active {
    border-color: var(--primary);
    background-color: var(--dark-band);
    box-shadow: inset 3px 0 0 var(--primary);
}

.consultation-section .consultation-choice-btn.is-active .js-check-indicator {
    display: inline-block !important;
}

.consultation-section .consultation-pill-btn.is-active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--on-primary);
}

.consultation-section .consultation-pill-btn.is-active span {
    color: var(--on-primary) !important;
}

@media (max-width: 767px) {

    .consultation-section .consultation-config-card,
    .consultation-section .consultation-form-card {
        padding: 1.25rem;
    }
}

/* ===== who_this_is_for_and_who_it_is_not_for ===== */
.who-fits-block {
    word-break: normal;
    overflow-wrap: anywhere;
}

.who-fits-block .who-fits-card {
    min-height: 100%;
}

.who-fits-block .who-fits-action-btn {
    line-height: 1.2;
}

@media (max-width: 767px) {
    .who-fits-block .who-fits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== quick_request ===== */
.short-request-section .short-form-input::placeholder {
    color: #5E6573;
    opacity: 1;
}

.short-request-section .short-form-input:focus {
    border-color: #E63E00;
    outline: none;
}

.short-request-section .short-request-card {
    box-shadow: none;
}

@media (max-width: 767px) {
    .short-request-section .short-request-form {
        gap: 1rem;
    }
}

/* ===== featured_outline_cases ===== */
.featured-cases-section {
    position: relative;
    width: 100%;
}

.featured-cases-section .featured-case-card {
    min-height: 100%;
}

.featured-cases-section .js-filter-btn.active {
    background-color: #121316;
    color: #FFFFFF;
    border-color: #121316;
}

.featured-cases-section .js-filter-btn:not(.active) {
    background-color: transparent;
    color: #121316;
    border-color: #E5E7EB;
}

.featured-cases-section .js-filter-btn:not(.active):hover {
    border-color: #121316;
}

@media (max-width: 767px) {
    .featured-cases-section .featured-case-card {
        width: 100%;
    }
}

/* ===== scale_and_detail_integrity ===== */
.scaling-cases-section .scaling-card {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-shadow: none;
    border-radius: 0;
}

.scaling-cases-section .scaling-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .scaling-cases-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== hierarchy_of_strokes ===== */
.hierarchy-grid-block .js-filter-btn.active-filter {
    background-color: #121316;
    color: #FFFFFF;
    border-color: #121316;
}

.hierarchy-grid-block .js-hierarchy-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hierarchy-grid-block .js-hierarchy-card:hover {
    transform: translateY(-3px);
}

.hierarchy-grid-block h2,
.hierarchy-grid-block h3 {
    overflow-wrap: anywhere;
}

/* ===== footer ===== */
.kt-footer-block {
    font-family: 'Inter', sans-serif;
}

.kt-footer-block a {
    text-decoration: none;
}

.kt-footer-block .kt-footer-block__disclaimer {
    position: relative;
}

@media (max-width: 767px) {
    .kt-footer-block .grid {
        grid-template-columns: 1fr;
    }

    .kt-footer-block__disclaimer {
        padding: 1rem;
    }
}

.header-block {
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-block .js-dropdown-menu.is-open {
    display: flex;
}

.header-block .js-dropdown-toggle[aria-expanded="true"] .js-dropdown-icon {
    transform: rotate(180deg);
}

.header-block .js-mobile-menu.is-open {
    display: block;
}

.category-listing-block {
    font-family: 'Inter', sans-serif;
}

.category-listing-block h2,
.category-listing-block h3,
.category-listing-block p {
    overflow-wrap: anywhere;
}

.category-listing-block input::placeholder {
    color: #9FA7B3;
    opacity: 1;
}

.kt-footer-block {
    font-family: 'Inter', sans-serif;
}

.kt-footer-block a {
    text-decoration: none;
}

.kt-footer-block .kt-footer-block__disclaimer {
    position: relative;
}

@media (max-width: 767px) {
    .header-block__topbar {
        font-size: 0.75rem;
    }

    .header-block__navbar {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .category-listing-block .js-listing-item {
        flex-direction: column;
    }

    .kt-footer-block .grid {
        grid-template-columns: 1fr;
    }

    .kt-footer-block__disclaimer {
        padding: 1rem;
    }
}


/* ===== PAGE: about ===== */
.kt-section .js-counter {
  font-variant-numeric: tabular-nums;
}
.kt-section a {
  overflow-wrap: anywhere;
}
.kt-section p, .kt-section h2, .kt-section h3, .kt-section h4 {
  overflow-wrap: anywhere;
}

/* ===== PAGE: contact ===== */
.contact-page-section input::placeholder, .contact-page-section textarea::placeholder { color: #9FA7B3; opacity: 1; }
.contact-page-section select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235E6573' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.75rem center; background-repeat: no-repeat; background-size: 1.25em 1.25em; -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 2.5rem; }
.contact-page-section input:focus, .contact-page-section textarea:focus, .contact-page-section select:focus { border-color: #E63E00; box-shadow: none; }
@media (max-width: 767px) { .contact-page-section h2 { font-size: 16px !important; } .contact-page-section h3 { font-size: 14px !important; } }

/* ===== PAGE: coreldraw ===== */
.js-case-tab {
  cursor: pointer;
  user-select: none;
}
.js-step-content {
  animation: stepFade 0.3s ease-out;
}
@keyframes stepFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 767px) {
  .js-case-tab {
    width: 100%;
    text-align: left;
  }
}

/* ===== PAGE: glossary ===== */
#glossary-directory .js-glossary-item { min-height: 240px; transition: opacity 0.2s ease, transform 0.2s ease; }
#glossary-directory .js-filter-btn.active { background-color: #E63E00; border-color: #E63E00; color: #FFFFFF; }
#glossary-directory .js-letter-filter.active { background-color: #E63E00; color: #FFFFFF; }

/* ===== PAGE: privacy ===== */
.policy-content-block .js-toc-trigger.is-active{background-color:#E63E00;color:#FFFFFF;}
.policy-content-block article{scroll-margin-top:24px;}
@media (max-width: 767px){
  .policy-content-block nav{display:flex;flex-direction:column;}
}

/* ===== PAGE: terms ===== */
.terms-page-block { position: relative; }
.terms-page-block .terms-search-input::placeholder { color: #5E6573; opacity: 1; }
.terms-page-block .terms-clause-card { min-height: 100%; transition: border-color 0.2s ease; }
.terms-page-block .terms-clause-card:hover { border-bottom-color: #C43500; }
@media (max-width: 767px) {
  .terms-page-block .js-clauses-container { grid-template-columns: 1fr; }
  .terms-page-block .terms-clause-card { padding: 1.25rem; }
}

/* ===== PAGE: disclaimer ===== */
.policy-disclaimer-block { overflow-wrap: anywhere; }
.policy-disclaimer-block .kt-card { box-shadow: none; }

.comment-card {
    border-radius: 0;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
}

.comment-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.comment-badge {
    letter-spacing: 0.05em;
}

.comment-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.comment-reply-card {
    border-radius: 0;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
}

.reply-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.reply-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}


/* ===== PAGE TEMPLATE: featured-articles, scaling, stroke-hierarchy ===== */
.header-block {
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-block .js-dropdown-menu.is-open {
    display: flex;
}

.header-block .js-dropdown-toggle[aria-expanded="true"] .js-dropdown-icon {
    transform: rotate(180deg);
}

.header-block .js-mobile-menu.is-open {
    display: block;
}

.article-hero h1 {
    overflow-wrap: anywhere;
}

.article-detail-page h2,
.article-detail-page h3,
.article-detail-page p {
    overflow-wrap: anywhere;
}

.article-image-shadow {
    transform: translate(6px, 6px);
}

.faq-item.is-active .js-faq-icon {
    transform: rotate(45deg);
}

.kt-footer-block {
    font-family: 'Inter', sans-serif;
}

.kt-footer-block a {
    text-decoration: none;
}

.kt-footer-block .kt-footer-block__disclaimer {
    position: relative;
}

@media (max-width: 767px) {
    .header-block__topbar {
        font-size: 0.75rem;
    }

    .header-block__navbar {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .article-main-column,
    .sidebar-column {
        width: 100%;
    }

    .article-image-shadow {
        transform: translate(4px, 4px);
    }

    .kt-footer-block .grid {
        grid-template-columns: 1fr;
    }

    .kt-footer-block__disclaimer {
        padding: 1rem;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}
