*,
*::before,
*::after {
    box-sizing: border-box;
}

/* First section top gap is controlled globally in headerv1.5.css. */
body:has(.im-topbar):has(.im-header) .faqhub-page > .faqhub-section:first-child,
body:has(.im-topbar):has(.im-header) .elementor-widget-html:has(.faqhub-section) .faqhub-section:first-of-type {
    padding-top: var(--im-first-section-top-gap, clamp(1rem, 1.8vw, 1.5rem)) !important;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    background: #f8fafc !important;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: #0f172a;
    background: #f8fafc !important;
}

.faqhub-page,
.faqhub-page * {
    letter-spacing: 0;
}

.elementor-widget-html:has(.faqhub-page),
.elementor-widget-html:has(.faqhub-page) > .elementor-widget-container,
.elementor-widget-container:has(.faqhub-page),
.elementor-element:has(.faqhub-page),
.elementor-section:has(.faqhub-page),
.elementor-container:has(.faqhub-page),
.elementor-column:has(.faqhub-page),
.elementor-widget-wrap:has(.faqhub-page),
.elementor-column-wrap:has(.faqhub-page),
.elementor-section-wrap:has(.faqhub-page),
.elementor-top-section:has(.faqhub-page),
.e-con:has(.faqhub-page) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #f8fafc !important;
}

.faqhub-section {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: -1px 0 !important;
    padding: 5rem 0;
    overflow: hidden;
    isolation: isolate;
    background: rgba(248, 250, 252, 0.78);
}

.faqhub-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image: radial-gradient(#cbd5e1 0.5px, transparent 0.5px);
    background-size: 30px 30px;
}

.faqhub-bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
    filter: grayscale(1);
}

.faqhub-bg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faqhub-bg-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.78), rgba(248, 250, 252, 0.4), rgba(248, 250, 252, 0.78));
}

.faqhub-section::before {
    content: "";
    position: absolute;
    top: -16rem;
    right: -10rem;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(80px);
    pointer-events: none;
}

.faqhub-container {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}

.faqhub-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 5rem;
}

.faqhub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.05);
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    backdrop-filter: blur(4px);
}

.faqhub-kicker span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #2563eb;
    animation: faqhub-pulse 1.8s ease-in-out infinite;
}

.faqhub-header h1 {
    max-width: 48rem;
    margin: 0;
    color: #0f172a;
    font-size: clamp(3rem, 7vw, 5.75rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}

.faqhub-header h1 span {
    display: inline-block;
    color: transparent;
    font-style: italic;
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.faqhub-header > p {
    max-width: 15rem;
    margin: 0 0 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.7;
    text-align: right;
}

.faqhub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.faqhub-card {
    overflow: hidden;
    border: 1px solid #f1f5f9;
    border-radius: 2.5rem;
    background: #ffffff;
    transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.faqhub-card:hover {
    border-color: #cbd5e1;
}

.faqhub-card[open] {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.12);
}

.faqhub-card summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem;
    cursor: pointer;
    list-style: none;
}

.faqhub-card summary::-webkit-details-marker {
    display: none;
}

.faqhub-card summary > div {
    display: flex;
    gap: 1.25rem;
    min-width: 0;
}

.faqhub-card summary span {
    flex: 0 0 auto;
    color: #bfdbfe;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1.1;
    transition: color 0.35s ease;
}

.faqhub-card:hover summary span,
.faqhub-card[open] summary span {
    color: #2563eb;
}

.faqhub-card summary h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.faqhub-card summary i {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.45s ease, color 0.45s ease, background 0.45s ease;
}

.faqhub-card summary i::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-0.08rem, -0.08rem);
}

.faqhub-card[open] summary i {
    color: #ffffff;
    background: #2563eb;
    transform: rotate(180deg);
}

.faqhub-answer {
    padding: 0 2.5rem 2rem;
}

.faqhub-answer p {
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #f8fafc;
    color: #64748b;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
}

.faqhub-cta {
    position: relative;
    margin-top: 5rem;
    border-radius: 3rem;
    padding: 2.5rem 3.25rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 25px 55px -25px rgba(15, 23, 42, 0.65);
}

.faqhub-cta > div:first-child {
    position: absolute;
    top: -13rem;
    right: -10rem;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    filter: blur(100px);
    pointer-events: none;
    transition: background 0.7s ease;
}

.faqhub-cta:hover > div:first-child {
    background: rgba(37, 99, 235, 0.3);
}

.faqhub-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.faqhub-cta h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.faqhub-cta p {
    max-width: 38rem;
    margin: 0;
    color: rgba(219, 234, 254, 0.7);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
}

.faqhub-cta a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 4rem;
    padding: 1.2rem 2.5rem;
    border-radius: 1rem;
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 20px 35px -18px rgba(37, 99, 235, 0.75);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transition: transform 0.45s ease, color 0.45s ease, background 0.45s ease;
}

.faqhub-cta a:hover {
    color: #2563eb;
    background: #ffffff;
    transform: translateY(-3px);
}

.faqhub-cta a svg {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.35s ease;
}

.faqhub-cta a:hover svg {
    transform: translateX(0.25rem);
}

@keyframes faqhub-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.82);
    }
}

@media (max-width: 1024px) {
    .faqhub-section {
        padding: 4rem 0;
    }

    .faqhub-header {
        align-items: flex-start;
        margin-bottom: 4rem;
    }

    .faqhub-header > p {
        display: none;
    }

    .faqhub-grid {
        grid-template-columns: 1fr;
    }

    .faqhub-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .faqhub-section {
        padding: 3rem 0;
    }

    .faqhub-container {
        width: min(100% - 1rem, 80rem);
    }

    .faqhub-header {
        margin-bottom: 3rem;
    }

    .faqhub-kicker {
        width: 100%;
        justify-content: center;
        padding-inline: 0.9rem;
        font-size: 0.62rem;
        letter-spacing: 0.16em;
    }

    .faqhub-header h1 {
        font-size: clamp(2.35rem, 13vw, 3.5rem);
    }

    .faqhub-card {
        border-radius: 1.75rem;
    }

    .faqhub-card summary {
        gap: 1rem;
        padding: 1.5rem;
    }

    .faqhub-card summary > div {
        gap: 0.8rem;
    }

    .faqhub-card summary span {
        font-size: 1rem;
    }

    .faqhub-card summary h2 {
        font-size: 0.95rem;
    }

    .faqhub-card summary i {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.85rem;
    }

    .faqhub-answer {
        padding: 0 1.5rem 1.5rem;
    }

    .faqhub-answer p {
        font-size: 0.95rem;
    }

    .faqhub-cta {
        margin-top: 3.5rem;
        border-radius: 2rem;
        padding: 2rem 1.35rem;
        text-align: center;
    }

    .faqhub-cta-content {
        align-items: center;
        gap: 2rem;
    }

    .faqhub-cta a {
        width: 100%;
        padding-inline: 1.25rem;
        white-space: normal;
    }
}

/* Services hero title treatment - exact Our Services copy */
.faqhub-header h1 {
  margin: 0;
  color: #0f172a !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(3rem, 7vw, 5.75rem) !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  text-align: left !important;
  text-shadow: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

.faqhub-header h1 span,
.faqhub-header h1 em {
  color: transparent !important;
  font-size: 1em !important;
  font-style: italic !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

@media (max-width: 680px) {
  .faqhub-header h1 {
    font-size: clamp(2rem, 11vw, 2.85rem) !important;
  }
}

@media (max-width: 1024px) {
  .faqhub-header h1 { text-align: center !important; }
}
