/* GlobeGrade — home page (UrbanPro-style, lightweight) */

html.is-home {
    scroll-behavior: smooth;
}

.gg-home {
    font-family: var(--gg-font, 'Inter', system-ui, sans-serif);
    color: var(--gg-text);
    background: var(--gg-bg);
}

/* Homepage: white text in header strip above hero (desktop) */
html.is-home body.gg-site .top-head {
    background: var(--gg-primary);
    border-bottom-color: rgba(255, 255, 255, .12);
}

html.is-home body.gg-site .top-head p {
    color: #fff;
}

html.is-home body.gg-site .header.gg-site-header {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(212, 232, 245, .9);
}

html.is-home body.gg-site .top-call-div ul li a,
html.is-home body.gg-site .top-call-div ul li a span {
    color: var(--gg-text) !important;
}

/* —— Hero banner — all text white —— */
.gg-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 56px);
    background: var(--gg-primary);
    color: #fff;
}

.gg-hero::before {
    display: none;
}

.gg-hero__grid {
    position: relative;
    z-index: 1;
}

.gg-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.gg-hero__copy {
    animation: ggFadeUp .7s ease both;
}

.gg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .95);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
}

.gg-hero__badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gg-accent);
    box-shadow: 0 0 0 4px rgba(245, 184, 46, .35);
}

.gg-hero__title {
    margin: 0 0 16px;
    font-family: var(--gg-display, inherit);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: #fff;
}

.gg-hero__title em {
    font-style: normal;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    padding: 2px 10px;
    border-radius: 8px;
    box-decoration-break: clone;
}

.gg-hero__lead {
    margin: 0 0 24px;
    max-width: 520px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .86);
}

.gg-search {
    background: rgba(255, 255, 255, .98);
    border-radius: var(--gg-radius-xl, 24px);
    padding: 14px;
    box-shadow: 0 24px 56px rgba(15, 36, 56, .18), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    border: 1px solid rgba(255, 255, 255, .6);
    backdrop-filter: blur(8px);
}

.gg-search__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gg-search__field {
    flex: 1 1 180px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--gg-radius-md, 16px);
    background: #f4f9fd;
    border: 1px solid var(--gg-border);
    transition: border-color .2s var(--gg-ease, ease), box-shadow .2s, background .2s;
}

.gg-search__field:focus-within {
    border-color: var(--gg-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 79, 163, .15);
}

.gg-search__field i {
    color: #94a3b8;
    flex-shrink: 0;
}

.gg-search__field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    padding: 0;
    height: 100%;
}

.gg-search__locate {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--gg-primary);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
}

.gg-search__locate:hover {
    background: var(--gg-primary);
    color: #fff;
}

.gg-search__btn {
    flex: 0 0 auto;
    height: 46px;
    min-height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--gg-radius-pill, 999px);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: var(--gg-primary);
    box-shadow: 0 8px 24px rgba(31, 78, 120, .35);
    transition: transform .2s var(--gg-ease, ease), box-shadow .2s;
}

.gg-search__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(61, 143, 201, .4);
}

.gg-search__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
}

.gg-search__tags-label {
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 2px;
}

.gg-hero .gg-hero__badge,
.gg-hero .gg-hero__title,
.gg-hero .gg-hero__title em,
.gg-hero .gg-hero__lead,
.gg-hero .gg-trust-row,
.gg-hero .gg-trust-row span,
.gg-hero .gg-trust-row i,
.gg-hero .gg-stat-card,
.gg-hero .gg-stat-card strong,
.gg-hero .gg-stat-card span {
    color: #fff;
}

.gg-chip {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}

.gg-chip:hover {
    border-color: var(--gg-primary);
    color: var(--gg-primary);
    background: var(--gg-secondary-soft);
}

.gg-hero__panel {
    display: grid;
    gap: 14px;
    animation: ggFadeUp .7s .12s ease both;
}

.gg-stat-card {
    padding: 20px 22px;
    border-radius: var(--gg-radius-lg, 20px);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    box-shadow: 0 8px 32px rgba(15, 36, 56, .1);
    transition: transform .25s var(--gg-ease, ease), background .25s;
}

.gg-stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .18);
}

.gg-stat-card strong {
    display: block;
    font-family: inherit;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.gg-stat-card span {
    font-size: 13px;
    opacity: .85;
}

.gg-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 20px;
}

.gg-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
}

/* —— Categories —— */
.gg-categories {
    margin-top: -28px;
    position: relative;
    z-index: 2;
    padding-bottom: 8px;
}

.gg-categories__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.gg-categories__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.gg-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--gg-radius-lg, 20px);
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    box-shadow: var(--gg-shadow);
    text-decoration: none;
    color: var(--gg-text);
    transition: transform .25s var(--gg-ease, ease), box-shadow .25s, border-color .25s;
}

.gg-cat:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #a8d4f0;
    box-shadow: var(--gg-shadow-md, 0 12px 32px rgba(61, 143, 201, .14));
    text-decoration: none;
    color: var(--gg-primary-dark);
}

.gg-cat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gg-primary);
    background: var(--gg-chip);
}

.gg-cat span {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

/* —— Sections shared —— */
.gg-section {
    padding: clamp(40px, 5vw, 64px) 0;
}

.gg-section--alt {
    background: var(--gg-bg);
}

.gg-section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(28px, 4vw, 40px);
    padding: 0 16px;
}

.gg-section__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gg-primary);
}

.gg-section__title {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gg-text);
}

.gg-section__sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gg-muted);
}

.gg-section__actions {
    margin-top: 14px;
}

.gg-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid var(--gg-primary);
    color: var(--gg-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}

.gg-btn-outline:hover {
    background: var(--gg-primary);
    color: #fff;
    text-decoration: none;
}

/* —— Tutor cards / carousel —— */
.gg-tutors-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 20px);
}

.gg-tutors-wrap .owl-carousel {
    position: relative;
    padding: 0 44px;
}

.gg-tutors-wrap .owl-stage {
    display: flex;
    align-items: stretch;
}

.gg-tutors-wrap .owl-item {
    display: flex;
    min-width: 0;
}

.gg-tutor-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: var(--gg-radius-lg, 20px);
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    box-shadow: var(--gg-shadow);
    overflow: hidden;
    transition: transform .25s var(--gg-ease, ease), box-shadow .25s, border-color .25s;
}

.gg-tutor-card:hover {
    transform: translateY(-4px);
    border-color: #a8d4f0;
    box-shadow: var(--gg-shadow-md);
}

.gg-tutor-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8f0f8;
}

.gg-tutor-card__img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    border: 0 !important;
    padding: 0 !important;
}

.gg-tutor-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gg-tutor-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.gg-tutor-card__chip {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--gg-chip);
    color: var(--gg-primary-dark);
    border: none;
}

.gg-tutor-card__chip--rating {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.gg-tutor-card__chip--rating i {
    color: #f59e0b;
}

.gg-tutor-card__title {
    margin: 0 0 6px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gg-text);
}

.gg-tutor-card__meta {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gg-primary);
}

.gg-tutor-card__subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    flex: 1;
}

.gg-tutor-card__subjects li span {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.gg-tutor-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--gg-border);
}

.gg-tutor-card__price {
    font-size: 15px;
    font-weight: 800;
    color: var(--gg-primary-dark);
}

.gg-tutor-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--gg-gradient-h);
    text-decoration: none;
    transition: transform .15s;
}

.gg-tutor-card__link:hover {
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.gg-tutors-wrap .owl-dots {
    margin-top: 16px;
    text-align: center;
}

.gg-tutors-wrap .owl-dot span {
    width: 8px;
    height: 8px;
    background: #b8cfe6;
}

.gg-tutors-wrap .owl-dot.active span {
    background: var(--gg-primary);
}

.gg-tutors-wrap .owl-prev,
.gg-tutors-wrap .owl-next {
    top: 42%;
    height: auto;
    transform: translateY(-50%);
}

.gg-tutors-wrap .owl-prev { left: 0; }
.gg-tutors-wrap .owl-next { right: 0; }

/* —— How it works —— */
.gg-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.gg-step {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--gg-radius);
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    box-shadow: 0 10px 28px rgba(12, 45, 79, .06);
}

.gg-step__num {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: var(--gg-primary);
}

.gg-step h3 {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}

.gg-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--gg-muted);
}

/* —— Listings grid —— */
.gg-listings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.gg-listing-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 16px;
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    text-decoration: none;
    transition: all .2s;
    min-height: 100%;
}

.gg-listing-card:hover {
    transform: translateY(-3px);
    border-color: #90bde5;
    box-shadow: var(--gg-shadow);
    text-decoration: none;
}

.gg-listing-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gg-secondary-soft);
    color: var(--gg-primary);
    font-size: 16px;
}

.gg-listing-card strong {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--gg-text);
    line-height: 1.35;
    word-break: break-word;
}

.gg-listing-card small {
    font-size: 12px;
    color: var(--gg-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* —— Benefits —— */
.gg-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.gg-benefit {
    padding: 22px;
    border-radius: var(--gg-radius);
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    box-shadow: 0 10px 26px rgba(12, 45, 79, .06);
    transition: transform .2s;
}

.gg-benefit:hover {
    transform: translateY(-3px);
}

.gg-benefit__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gg-accent-soft);
}

.gg-benefit__icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.gg-benefit h3 {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}

.gg-benefit p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--gg-muted);
}

/* —— CTA —— */
.gg-cta {
    padding: 0 clamp(16px, 4vw, 24px) clamp(48px, 6vw, 72px);
}

.gg-cta__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 56px);
    border-radius: var(--gg-radius-xl, 28px);
    text-align: center;
    color: #fff;
    background: var(--gg-primary);
    box-shadow: var(--gg-shadow-lg, 0 24px 50px rgba(74, 159, 212, .28));
    border: 1px solid rgba(255, 255, 255, .2);
    position: relative;
    overflow: hidden;
}

.gg-cta__inner::before {
    display: none;
}

body.gg-site .gg-cta__inner h2,
.gg-cta__inner h2 {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff !important;
}

body.gg-site .gg-cta__inner p,
.gg-cta__inner p {
    margin: 0 auto 22px;
    max-width: 520px;
    font-size: 15px;
    color: #fff !important;
    opacity: .92;
    line-height: 1.6;
}

.gg-cta__btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gg-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: var(--gg-primary-dark);
    background: #fff;
    text-decoration: none;
    transition: transform .2s;
}

.gg-btn-primary:hover {
    transform: translateY(-2px);
    color: var(--gg-primary-dark);
    text-decoration: none;
}

.gg-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: all .2s;
}

.gg-btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
}

@keyframes ggFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* —— Responsive —— */
@media (max-width: 991px) {
    .gg-hero__grid {
        grid-template-columns: 1fr;
    }

    .gg-hero__panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .gg-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gg-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gg-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gg-tutors-wrap .owl-carousel {
        padding: 0 36px;
    }
}

@media (max-width: 767px) {
    .gg-hero__panel {
        grid-template-columns: 1fr 1fr;
    }

    .gg-search {
        padding: 8px 10px;
        border-radius: 14px;
    }

    .gg-search__row {
        flex-direction: column;
        gap: 6px;
    }

    .gg-search__field {
        height: 36px;
        min-height: 36px;
        flex: 0 0 auto;
        padding: 0 10px;
        gap: 8px;
        border-radius: 10px;
    }

    .gg-search__field input {
        padding: 0;
        font-size: 14px;
    }

    .gg-search__locate {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 12px;
    }

    .gg-search__btn {
        width: 100%;
        height: 36px;
        min-height: 36px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .gg-search__tags {
        margin-top: 8px;
        gap: 6px;
    }

    .gg-search__tags-label {
        margin-bottom: 0;
        font-size: 10px;
    }

    .gg-chip {
        padding: 4px 10px;
        font-size: 11px;
    }

    .gg-steps {
        grid-template-columns: 1fr;
    }

    .gg-tutor-card__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .gg-tutor-card__link {
        justify-content: center;
    }

    .gg-tutors-wrap .owl-carousel {
        padding: 0 28px;
    }
}

@media (max-width: 575px) {
    .gg-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gg-listings {
        grid-template-columns: 1fr;
    }

    .gg-benefits {
        grid-template-columns: 1fr;
    }

    .gg-hero__panel {
        grid-template-columns: 1fr;
    }
}
