header .container {
    max-width: 1280px;
}

header .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 22px !important;
    flex-wrap: nowrap !important;
}

header .logo {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1.1;
    font-size: clamp(1.65rem, 2.1vw, 2rem) !important;
}

header .logo-icon {
    flex: 0 0 48px;
    width: 48px !important;
    height: 48px !important;
}

header nav {
    flex: 1 1 auto;
    min-width: 0;
}

header nav ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(0.45rem, 0.9vw, 1rem) !important;
    flex-wrap: nowrap !important;
}

header nav li {
    display: flex;
}

/* Keep the authentication states mutually exclusive. The navigation's
   display:flex rule would otherwise override the native hidden attribute. */
header nav li[hidden] {
    display: none !important;
}

header nav a {
    white-space: nowrap;
    font-weight: 600;
    padding: 0.48rem 0.68rem !important;
}

header nav a.nav-button {
    border: 1px solid rgba(255,255,255,0.55) !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 0.65rem 1.05rem !important;
    text-decoration: none !important;
}

header nav [data-auth-user] a.nav-button {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
}

header nav a.nav-button-login {
    background: rgba(255,255,255,0.13) !important;
}

header nav a.nav-button-register {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(255,107,53,0.22);
}

header nav a.nav-button-register:hover {
    background: #e55a2b !important;
}

@media (max-width: 1120px) {
    header .header-content {
        flex-wrap: wrap !important;
    }

    header nav {
        flex-basis: 100%;
    }

    header nav ul {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 768px) {
    header .header-content {
        align-items: flex-start !important;
    }

    header .logo {
        font-size: 1.55rem !important;
    }

    header .logo-icon {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px;
    }

    header nav ul {
        gap: 0.5rem !important;
    }

    header nav a {
        padding: 0.42rem 0.55rem !important;
    }
}

/* Public data tables become readable cards on phones instead of squeezed,
   horizontally clipped columns. Labels are populated from each table header. */
@media (max-width: 900px) {
    .mobile-card-table-wrap {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
    }

    table.mobile-card-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
    }

    table.mobile-card-table thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    table.mobile-card-table tbody {
        display: grid !important;
        width: 100% !important;
        gap: 14px !important;
    }

    table.mobile-card-table tbody tr {
        display: grid !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        border: 1px solid #dbe6f0 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 8px 22px rgba(15,35,65,.08) !important;
    }

    table.mobile-card-table tbody td,
    table.mobile-card-table tbody th {
        display: grid !important;
        grid-template-columns: minmax(105px, 42%) minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 10px 12px !important;
        border: 0 !important;
        border-bottom: 1px solid #edf2f7 !important;
        background: #fff !important;
        color: #24364b !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
        text-align: right !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    table.mobile-card-table tbody td:last-child,
    table.mobile-card-table tbody th:last-child {
        border-bottom: 0 !important;
    }

    table.mobile-card-table tbody td::before,
    table.mobile-card-table tbody th::before {
        content: attr(data-label);
        min-width: 0;
        color: #52657c;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: .035em;
        text-align: left;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    table.mobile-card-table tbody td.plan-name,
    table.mobile-card-table tbody td[data-label="Plan"],
    table.mobile-card-table tbody td[data-label="Addon"] {
        /* A plan is the card heading, not a label/value row. Keeping it on
           its own centred line avoids the empty label column shown on phones. */
        display: flex !important;
        grid-template-columns: none !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 13px !important;
        padding-bottom: 13px !important;
        background: #eef7ff !important;
        color: #086dab !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        text-align: center !important;
    }

    table.mobile-card-table tbody td.plan-name::before,
    table.mobile-card-table tbody td[data-label="Plan"]::before,
    table.mobile-card-table tbody td[data-label="Addon"]::before {
        display: none !important;
    }

    table.mobile-card-table tbody td[data-label="Description"] {
        text-align: left !important;
    }

    table.mobile-card-table tbody td.total,
    table.mobile-card-table tbody td[data-label="Total"],
    table.mobile-card-table tbody td[data-label="Final Payable"],
    table.mobile-card-table tbody td[data-label="Payable Total"] {
        background: #f0f8ff !important;
        color: #075f99 !important;
        font-size: 16px !important;
        font-weight: 900 !important;
    }

    table.mobile-card-table tbody td[data-label="Action"] {
        display: block !important;
        padding: 12px !important;
        background: #f8fafc !important;
        text-align: center !important;
    }

    table.mobile-card-table tbody td[data-label="Action"]::before {
        display: none;
    }

    table.mobile-card-table .buy-now,
    table.mobile-card-table tbody td[data-label="Action"] a,
    table.mobile-card-table tbody td[data-label="Action"] button {
        display: flex !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        white-space: normal !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    /* Inline page styles often give comparison tables a desktop min-width.
       These overrides keep the card conversion inside the phone viewport. */
    .comparison-table.mobile-card-table-wrap,
    .table-responsive.mobile-card-table-wrap,
    .table-wrap.mobile-card-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    table.mobile-card-table tbody td > *,
    table.mobile-card-table tbody th > * {
        max-width: 100% !important;
    }
}

/* Homepage benefits comparison: CSS-only mobile fallback. This remains
   readable even when a cached script has not yet added data-label values. */
.benefits-mobile-list {
    display: none;
}

@media (max-width: 900px) {
    .benefits-comparison {
        display: none !important;
    }

    .benefits-mobile-list {
        display: grid;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px;
        margin: 1.25rem 0;
    }

    .benefit-compare-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        border: 1px solid #d9e5ef;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 7px 18px rgba(15,35,65,.08);
        box-sizing: border-box;
    }

    .benefit-compare-card h3 {
        margin: 0 !important;
        padding: 12px 14px !important;
        background: #087fc5;
        color: #fff !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .benefit-compare-card dl {
        margin: 0;
    }

    .benefit-compare-card dl > div {
        display: grid;
        grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 11px 14px;
        border-bottom: 1px solid #edf2f7;
        box-sizing: border-box;
    }

    .benefit-compare-card dl > div:last-child {
        border-bottom: 0;
    }

    .benefit-compare-card dt {
        min-width: 0;
        color: #52657c;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.35;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .benefit-compare-card dd {
        min-width: 0;
        margin: 0;
        color: #172a40;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .benefit-compare-card .sponsored {
        background: #effaf1;
    }

    .benefit-compare-card .sponsored dd {
        color: #08733b;
        font-weight: 800;
    }
}

/* Shared responsive foundation for every public GetDOI page. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    min-width: 0;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

main,
section,
article,
aside,
footer,
.container,
.article-container,
.article-content,
.content-section,
.content-card,
.page-wrap,
.page-grid,
.card,
.service-card,
.pricing-card,
.blog-card {
    min-width: 0;
}

p,
li,
td,
th,
a,
.code-block {
    overflow-wrap: anywhere;
}

.table-responsive,
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table,
.table-wrap table,
.comparison-table {
    max-width: none;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

@media (max-width: 900px) {
    .container,
    .article-container,
    .page-wrap,
    .page-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .services-grid,
    .features-grid,
    .pricing-grid,
    .blog-grid,
    .contact-grid,
    .company-stats,
    .process-steps,
    .stats-grid,
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    main,
    section,
    .section-white,
    .section-gray,
    .content-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    header {
        padding: 0.7rem 0 !important;
    }

    header .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    header .header-content {
        width: 100%;
        gap: 0.65rem !important;
    }

    header nav {
        width: 100%;
        flex-basis: 100%;
        overflow: hidden;
    }

    header nav ul {
        width: 100%;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 0.35rem !important;
        margin: 0 !important;
        padding: 0 0 0.25rem !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    header nav ul::-webkit-scrollbar {
        display: none;
    }

    header nav li {
        flex: 0 0 auto;
    }

    header nav a,
    header nav a.nav-button {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.52rem 0.68rem !important;
        font-size: 0.88rem !important;
    }

    .hero {
        padding: 2.6rem 0 !important;
    }

    .hero h1,
    .article-header h1 {
        font-size: clamp(1.9rem, 9vw, 2.55rem) !important;
        line-height: 1.15 !important;
    }

    .hero p,
    .article-header p {
        font-size: 1rem !important;
    }

    .cta-button,
    .buy-now {
        min-height: 46px;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .article-content,
    .content-card,
    .service-card,
    .pricing-card,
    .blog-card,
    .contact-block,
    .sitemap-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .table-responsive table,
    .table-wrap table,
    .comparison-table {
        min-width: 680px;
    }

    main table:not(.layout-table),
    article table:not(.layout-table) {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .container,
    .article-container,
    .page-wrap,
    .page-grid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .services-grid,
    .features-grid,
    .pricing-grid,
    .blog-grid,
    .contact-grid,
    .company-stats,
    .process-steps,
    .stats-grid,
    .footer-content,
    .benefit-grid,
    .feature-grid,
    .form-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .hero-actions,
    .cta-buttons {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .hero-actions .cta-button,
    .cta-buttons .cta-button {
        width: 100%;
    }

    footer {
        text-align: left;
    }

    #whatsapp-button {
        left: 12px !important;
        bottom: 12px !important;
    }
}

@media (max-width: 380px) {
    header .logo {
        font-size: 1.35rem !important;
    }

    header .logo-icon {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px;
        margin-right: 9px !important;
    }
}

/* Shared floating WhatsApp action for every public and blog page. */
#whatsapp-button,
#wa-btn,
.whatsapp {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    bottom: 22px !important;
    z-index: 1100 !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
}
#whatsapp-button a,
#wa-btn a,
a.whatsapp {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    /* border: 2px solid rgba(255,255,255,.92) !important; */
    border-radius: 50% !important;
    background: #25d366 !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(16,185,84,.34) !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}
#whatsapp-button a:hover,#whatsapp-button a:focus,
#wa-btn a:hover,#wa-btn a:focus,
a.whatsapp:hover,a.whatsapp:focus {
    background: #1fbd59 !important;
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 14px 34px rgba(16,185,84,.44) !important;
}
#whatsapp-button svg,#wa-btn svg,.whatsapp svg {
    display: block;
    width: 30px !important;
    height: 30px !important;
    fill: currentColor;
}
@media (max-width: 768px) {
    #whatsapp-button,#wa-btn,.whatsapp {left:14px!important;bottom:14px!important;width:54px!important;height:54px!important}
    #whatsapp-button a,#wa-btn a,a.whatsapp {width:54px!important;height:54px!important}
    #whatsapp-button svg,#wa-btn svg,.whatsapp svg {width:27px!important;height:27px!important}
}

/* Accessible hamburger navigation shared by all public pages. */
.public-nav-toggle {
    display: none;
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.public-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform .2s ease, opacity .2s ease;
}

.public-nav-toggle:focus-visible {
    outline: 3px solid rgba(255,255,255,.5);
    outline-offset: 2px;
}

.public-nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.public-nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.public-nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    header .header-content {
        position: relative;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    header .logo {
        order: 1;
        flex: 0 1 auto !important;
        min-width: 0;
        max-width: calc(100% - 58px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .public-nav-toggle {
        order: 2;
        display: inline-flex;
        margin-left: auto;
    }

    header nav {
        order: 3;
        display: block !important;
        position: absolute;
        z-index: 1002;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(70vh, 520px);
        padding: 8px !important;
        border: 1px solid rgba(255,255,255,.24);
        border-radius: 10px;
        background: linear-gradient(145deg,#076fb8,#04579a);
        box-shadow: 0 18px 42px rgba(4,36,70,.28);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px) scale(.985);
        transform-origin: top right;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    header nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    header nav ul {
        display: flex !important;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 3px !important;
        overflow: visible !important;
    }

    header nav li {
        display: block;
        width: 100%;
    }

    header nav li[hidden] {
        display: none !important;
    }

    header nav a,
    header nav a.nav-button {
        display: flex !important;
        width: 100%;
        min-height: 44px;
        max-width: none !important;
        padding: 10px 12px !important;
        align-items: center;
        justify-content: flex-start;
        border: 0 !important;
        border-radius: 7px !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-align: left;
        box-shadow: none !important;
    }

    header nav a:hover,
    header nav a:focus,
    header nav a.active {
        background: rgba(255,255,255,.15) !important;
        text-decoration: none;
    }

    header nav a.nav-button-register {
        margin-top: 4px;
        background: #ff6b35 !important;
    }

    .hero,
    .hero .container,
    .hero-inner,
    .article-header,
    .article-header .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    .hero h1,
    .hero h2,
    .article-header h1 {
        width: 100%;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .footer-dpiit-card,
    .footer-dpiit-certificate-link {
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
    }

    .footer-dpiit-certificate-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-dpiit-logo-frame {
        width: 100% !important;
        min-width: 0 !important;
    }
}
