/* Glivera Elementor Widgets — Frontend Styles */

/* ===========================
   Hero CTA Widget
   =========================== */

.glivera-hero-cta {
    position: relative;
    overflow: hidden;
    background-color: #DCEEF0;
    border-radius: 24px;
    padding: 80px 100px;
}

/* Decorative uploaded images */
.glivera-hero-cta__decor-img {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Inner layout */
.glivera-hero-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Left content column */
.glivera-hero-cta__content {
    flex: 1 1 60%;
    min-width: 0;
}

/* Heading */
.glivera-hero-cta__heading {
    font-size: 46px;
    font-weight: 400;
    line-height: 1.18;
    color: #101212;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

/* Description */
.glivera-hero-cta__description {
    font-size: 18px;
    line-height: 1.65;
    color: #333333;
    margin-bottom: 36px;
    max-width: 620px;
}

.glivera-hero-cta__description p {
    margin: 0;
}

.glivera-hero-cta__description strong {
    font-weight: 700;
}

/* Buttons row */
.glivera-hero-cta__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button base */
.glivera-hero-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    border: none;
    white-space: nowrap;
}

/* Primary button */
.glivera-hero-cta__btn--primary {
    background-color: #30C4DB;
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: 10px;
}

.glivera-hero-cta__btn--primary:hover {
    background-color: #28B0C5;
    color: #FFFFFF;
}

/* Secondary button */
.glivera-hero-cta__btn--secondary {
    background-color: #FFFFFF;
    color: #101212;
    padding: 16px 32px;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
}

.glivera-hero-cta__btn--secondary:hover {
    background-color: #F3F4F6;
}

/* Button icon */
.glivera-hero-cta__btn-icon {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    line-height: 1;
}

.glivera-hero-cta__btn-icon svg {
    width: 20px;
    height: 20px;
}

.glivera-hero-cta__btn--primary .glivera-hero-cta__btn-icon svg {
    fill: #FFFFFF;
}

.glivera-hero-cta__btn--secondary .glivera-hero-cta__btn-icon svg {
    fill: #101212;
}

/* Right column: badges */
.glivera-hero-cta__badges {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
    align-items: flex-start;
}

/* Individual badge */
.glivera-hero-cta__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 14px 28px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}


/* Badge icon */
.glivera-hero-cta__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.glivera-hero-cta__badge-icon svg {
    width: 24px;
    height: 24px;
}

/* Badge text */
.glivera-hero-cta__badge-text {
    font-size: 18px;
    font-weight: 600;
    color: #101212;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 1024px) {
    .glivera-hero-cta {
        padding: 50px 40px;
    }

    .glivera-hero-cta__inner {
        gap: 40px;
    }

    .glivera-hero-cta__heading {
        font-size: 36px;
    }

}

@media (max-width: 767px) {
    .glivera-hero-cta {
        padding: 40px 24px;
    }

    .glivera-hero-cta__inner {
        flex-direction: column;
        gap: 30px;
    }

    .glivera-hero-cta__heading {
        font-size: 28px;
    }

    .glivera-hero-cta__description {
        font-size: 16px;
    }

    .glivera-hero-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .glivera-hero-cta__btn {
        justify-content: center;
        text-align: center;
    }

    .glivera-hero-cta__badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }


}

/* ===========================
   Blog Content Widget (.gbc)
   =========================== */

.gbc {
    font-family: 'Switzer', sans-serif;
    color: #101212;
}

/* ── Spacing System (margin-top only) ── */

.gbc h2 {
    margin: 48px 0 0;
    letter-spacing: -0.03em;
}

.gbc h3 {
    margin: 32px 0 0;
    letter-spacing: -0.02em;
}

.gbc h2:first-child,
.gbc h3:first-child,
.gbc__block > h2:first-child,
.gbc__block > h3:first-child {
    margin-top: 0;
}

/* TOC anchor span is first child, heading right after it */
.gbc__block > .elementor-menu-anchor:first-child + h2,
.gbc__block > .elementor-menu-anchor:first-child + h3 {
    margin-top: 0;
}

/* Heading followed directly by text/list: 8px gap */
.gbc h2 + p,
.gbc h2 + .gbc__list,
.gbc h3 + p,
.gbc h3 + .gbc__list {
    margin-top: 8px;
}

/* H2 followed by H3: 24px */
.gbc h2 + h3 {
    margin-top: 24px;
}

/* Paragraphs */
.gbc p {
    margin: 16px 0 0;
    line-height: 1.32em;
    letter-spacing: -0.02em;
}

.gbc h2 + p,
.gbc h3 + p {
    margin-top: 8px;
}

.gbc p:first-child,
.gbc__block p:first-child {
    margin-top: 0;
}

/* First element in each block has no top margin */
.gbc__block > *:first-child {
    margin-top: 0;
}

/* Paragraph spacing (between <p> inside same context) */
.gbc p + p {
    margin-top: 16px;
}

/* ── Icon Lists ── */

.gbc__list--icon {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 24px;
}

/* After heading directly */
.gbc h2 + .gbc__list,
.gbc h3 + .gbc__list {
    margin-top: 16px;
}

/* Before next heading */
.gbc__list + h2 {
    margin-top: 48px;
}

.gbc__list + h3 {
    margin-top: 32px;
}

.gbc__list-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gbc__list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 24px;
    line-height: 0;
}

.gbc__list-icon svg,
.gbc__list-icon img {
    width: 25px;
    height: 25px;
}

.gbc__list-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #101212;
}

/* ── Ordered Lists ── */

.gbc__list--ordered {
    margin: 8px 0 0;
    padding-left: 24px;
}

.gbc__list--ordered li {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #101212;
}

.gbc__list--ordered li:last-child {
    margin-bottom: 0;
}

/* ── Tables ── */

.gbc table {
    margin: 24px 0 0;
    width: 100%;
    border-collapse: collapse;
}

.gbc th,
.gbc td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #E5E7EB;
    font-size: 16px;
    line-height: 1.4;
}

.gbc th {
    font-weight: 600;
    background-color: #F5F7F8;
}

/* ── CTA Card ── */

.gbc__cta {
    margin: 32px 0 48px;
    padding: 16px;
    background-color: #DFF3F6;
    border-radius: 10px;
}

.gbc__cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px;
    background-color: #FFFFFF;
    border-radius: 10px;
}

.gbc__cta-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.gbc__cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gbc__cta-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.gbc__cta-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gbc__cta-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 32px;
    color: #101212;
    margin: 0;
}

.gbc__cta-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #101212;
    margin: 0;
    margin-top: 8px !important;
    line-height: 1.32em;
}

.gbc__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 12px 16px;
    background-color: #2FC4DB;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Switzer', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 24px;
    transition: background-color 0.25s ease;
    white-space: nowrap;
    align-self: flex-start;
}

/* Last CTA in .gbc — no bottom margin */
.gbc > .gbc__cta:last-child {
    margin-bottom: 0 !important;
}

.gbc__cta-btn:hover {
    background-color: #49CADE;
    color: #FFFFFF;
}

.gbc__cta-btn svg,
.gbc__cta-btn img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.gbc__cta-btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.gbc__cta-btn-icon svg,
.gbc__cta-btn-icon img {
    width: 24px;
    height: 24px;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .gbc h2 { font-size: 36px; }
    .gbc h3 { font-size: 22px; }

    .gbc__list-icon,
    .gbc__list-icon svg,
    .gbc__list-icon img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 767px) {
    .gbc h2 { margin-top: 32px; font-size: 28px; }
    .gbc h3 { margin-top: 24px; font-size: 20px; }
    .gbc p  { font-size: 16px; }

    .gbc__list-text {
        font-size: 16px;
        line-height: 22px;
    }

    .gbc__list-icon,
    .gbc__list-icon svg,
    .gbc__list-icon img {
        width: 20px;
        height: 20px;
    }

    .gbc__cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 12px;
    }

    .gbc__cta {
        padding: 12px;
    }

    .gbc__cta-image {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .gbc__cta-btn {
        font-size: 14px;
    }
}
