/*=====================================================================
  Aris Overseas — brand palette override
  Loaded AFTER all HiStudy theme CSS. Recolors every theme component
  (buttons, links, gradients, badges, hovers, sliders, counters) from
  the theme's purple/violet to the Aris logo palette.

  Palette extracted from assets/logo/aris-overseas.png (GD pixel scan):
    blue  (dominant)  #1B75B7   bright blue  #1C7CC6
    teal  (midpoint)  #2C87A4   deep teal    #3B9A9A
    green (end)       #5BC186   bright green #6ED97A
=====================================================================*/

:root {
    /* --- Aris tokens --- */
    --ao-blue: #1B75B7;
    --ao-blue-bright: #1C7CC6;
    --ao-blue-dark: #14588A;
    --ao-teal: #2C87A4;
    --ao-teal-deep: #3B9A9A;
    --ao-green: #5BC186;
    --ao-green-bright: #6ED97A;
    --ao-ink: #192335;
    --ao-bg-soft: #F5F9FF;
    --ao-gradient: linear-gradient(135deg, #1C7CC6 0%, #2C87A4 50%, #5BC186 100%);
    --ao-gradient-h: linear-gradient(90deg, #1C7CC6 0%, #2C87A4 50%, #5BC186 100%);

    /* --- Remap HiStudy theme variables (theme purple #2f57ef / #b966e7 → Aris) --- */
    --color-primary: var(--ao-blue);
    --color-secondary: var(--ao-teal);
    --color-coral: var(--ao-green);
    --color-violet: var(--ao-blue-dark);
    --color-pink: var(--ao-teal-deep);
    --gradient-dark: linear-gradient(90deg, #1b75b7bf 0%, #5bc186ab 100%);
    --gradient-dark-2: linear-gradient(90deg, #1b75b77d 0%, #5bc18652 100%);
    --color-primary-100: var(--ao-blue-dark);
    --primary-opacity: #1b75b721;
    --secondary-opacity: #2c87a421;
    --coral-opacity: #5bc18621;
    --violet-opacity: #14588a21;
    --pink-opacity: #2c87a421;
    --color-card-1: #fdfbe9;
    --color-card-2: #e9f6ef;
    --color-card-3: #e8f4f6;
    --color-card-4: #e9f6ff;
    --color-card-5: var(--ao-blue-dark);
    --color-primary-alt: #d4ecdf;
    --color-primary-light: #f1f7ff;
    --color-primary-lighter: #eaf3fb;
    --color-extra: rgb(248, 251, 255);
    --color-extra2: #f8fbff;
    --color-border: #e0e9f1;
    --color-border-2: #e0e9f14f;
    --dark-shadow-5: 0px 4px 27.9px rgba(27, 117, 183, 0.15);
    --gradient-3: linear-gradient(90deg, #7fb6e8 0%, #86d5a9 100%);
    --gradient-1: linear-gradient(rgb(255, 255, 255) 0%, rgb(238, 246, 255) 100%);
    --gradient-2: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(238, 246, 255) 100%);
    --gradient-4: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
}

/*---------------------------------------------------------------------
  Signature 3-stop gradient (blue → teal → green)
---------------------------------------------------------------------*/

/* Gradient text (kickers, highlighted headings) */
.theme-gradient,
.theme-gradient.new-big-heading-gradient {
    background: var(--ao-gradient-h);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Primary gradient button — keep the theme's 300% background hover slide */
.rbt-btn.btn-gradient,
.rbt-btn.rbt-switch-btn.btn-gradient,
.rbt-badge-group .rbt-badge-gradient,
.bootstrap-select .dropdown-menu li a.active {
    background-image: linear-gradient(to right, var(--ao-blue-bright), var(--ao-teal), var(--ao-green), var(--ao-blue-bright));
}

/* Solid gradient fills (CTA strips, stat bands).
   NOTE: .bg-gradient-1 itself is NOT overridden globally (the theme uses it
   as a light background elsewhere); the breadcrumb banner gets the brand
   gradient + white text via the scoped rules below. */
.rbt-gradient-area,
.rbt-callto-action.callto-action-gradient,
.bg-gradient-2,
.bg-gradient-3,
.bg-gradient-5,
.bg-gradient-9,
.bg-gradient-11,
.bg-gradient-16 {
    background: var(--ao-gradient) !important;
}

/* Breadcrumb page banner: brand gradient with white text (owner decision,
   QA-REPORT #2 revision) */
.rbt-breadcrumb-default {
    background: var(--ao-gradient) !important;
}

.rbt-breadcrumb-default .breadcrumb-inner .title {
    color: var(--color-white);
}

.rbt-breadcrumb-default .breadcrumb-inner .description {
    color: rgba(255, 255, 255, 0.92);
}

.rbt-breadcrumb-default .page-list li,
.rbt-breadcrumb-default .page-list li a,
.rbt-breadcrumb-default .page-list li .icon-right i {
    color: rgba(255, 255, 255, 0.85);
}

.rbt-breadcrumb-default .page-list li a:hover {
    color: var(--color-white);
}

.rbt-breadcrumb-default .page-list li.rbt-breadcrumb-item.active {
    color: var(--color-white);
}

/* Border-gradient buttons/cards (uses padding-box/border-box trick) */
.rbt-btn.btn-border-gradient,
.btn-border-gradient {
    background: linear-gradient(var(--color-white), var(--color-white)) padding-box, var(--ao-gradient-h) border-box !important;
}

/* Progress bars, sliders, pagination bullets, preloader */
.rbt-progress-style-1 .single-progress .progress .progress-bar,
.progress .progress-bar.bar-gradiand,
.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active::before,
.rbt-swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active::before {
    background: var(--ao-gradient-h);
}

/* Odometer / counter accent numbers stay ink; counter icons pick up
   --color-primary automatically. Selection color: */
::selection {
    background: var(--ao-blue);
    color: #ffffff;
}

/*---------------------------------------------------------------------
  Safety overrides for rules hardcoded to old purples (non-variable)
---------------------------------------------------------------------*/
.rbt-card.variation-03.style_2::after {
    background: var(--ao-gradient-h);
}

.footer-style-3 .shape-gd-1 {
    background: linear-gradient(180deg, rgba(27, 117, 183, 0.12) 0%, rgba(91, 193, 134, 0) 100%);
}

/* Banner overlay gradients used by some hero variants */
.rbt-banner-item .gradient-overlay,
.rbt-banner-area .gradient-overlay {
    background: linear-gradient(252deg, rgba(25, 35, 53, 0) 35.97%, rgba(27, 117, 183, 0.3) 100.98%), linear-gradient(110deg, rgba(25, 35, 53, 0) 38.37%, rgba(91, 193, 134, 0.4) 102.05%);
}

/*---------------------------------------------------------------------
  Aris hero slider (banner-19 base) — gradient overlay for legibility
---------------------------------------------------------------------*/
.ao-hero .rbt-banner-item {
    position: relative;
}

.ao-hero .rbt-banner-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 88, 138, 0.88) 0%, rgba(44, 135, 164, 0.78) 50%, rgba(63, 154, 116, 0.72) 100%);
    z-index: 1;
}

.ao-hero .rbt-banner-item .container {
    position: relative;
    z-index: 2;
}

/*---------------------------------------------------------------------
  WhatsApp float button + mobile sticky action bar (Aris additions)
---------------------------------------------------------------------*/
.ao-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 96px;
    z-index: 999;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ao-whatsapp-float:hover,
.ao-whatsapp-float:focus {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55);
}

.ao-sticky-bar {
    display: none;
}

@media (max-width: 767px) {
    .ao-whatsapp-float {
        bottom: 78px;
        right: 16px;
    }

    .ao-sticky-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
        background: var(--color-white);
        box-shadow: 0 -4px 18px rgba(25, 35, 53, 0.12);
    }

    .ao-sticky-bar a {
        flex: 1;
        text-align: center;
        padding: 12px 4px;
        font-size: 14px;
        font-weight: var(--f-semi-bold);
        color: var(--ao-ink);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .ao-sticky-bar a i {
        font-size: 17px;
    }

    .ao-sticky-bar a.ao-sticky-enquire {
        background: var(--ao-gradient);
        color: #fff;
    }

    /* keep back-to-top clear of the sticky bar */
    .rbt-progress-parent {
        bottom: 76px;
    }

    body {
        padding-bottom: 52px;
    }
}

/*---------------------------------------------------------------------
  Component fixes for how Aris uses theme blocks
---------------------------------------------------------------------*/
/* rbt-service-2 is designed as content+thumbnail flex row (content flex-basis
   50%). Our cards are text-only, so let content fill the card — otherwise
   titles wrap letter-by-letter in a half-width column. The content becomes a
   column so the Apply Now / Read More link pins to the card bottom and all
   buttons in a row line up regardless of text length (batch cards etc.). */
.rbt-service.rbt-service-2 .inner {
    height: 100%;
}

.rbt-service.rbt-service-2 .inner .content:only-child {
    flex: 1 1 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rbt-service.rbt-service-2 .inner .content:only-child .transparent-button {
    margin-top: auto;
    padding-top: 10px;
}

/* 30px titles overflow the 5-up batch columns ("Diagnosti/c") — 22px matches
   the theme's own compact service-card titles. */
.rbt-service.rbt-service-2 .inner .content:only-child .title {
    font-size: 22px;
    line-height: 1.3;
}

/* About page runs five counters in one row — the theme's 42px counter digits
   wrap mid-number ("5,00 / 0") at that column width. */
.ao-counters-5 .rbt-counterup .inner .content .counter {
    font-size: 34px;
    white-space: nowrap;
}

/* Top bar: the office-hours item is a bare <span> (not a link) — give it the
   same type treatment as the phone/email links so all three read as one row. */
.rbt-header-top .rbt-information-list li > span {
    padding: 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--color-body);
    display: flex;
    align-items: center;
    font-weight: 400;
}

/* Team cards: the theme paints .inner white but doesn't stretch it, so in an
   equal-height (h-100) grid the white box ends at the text and cards look
   ragged. Stretch the white surface and reserve two lines for names so every
   card in a row is the same height. */
.rbt-team.team-style-default .inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}

.rbt-team.team-style-default .inner .content .title {
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blog cards: align the tag + date meta row, and size the date like the tag. */
.rbt-card .rbt-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.rbt-card .rbt-card-top .b4 {
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-body);
    margin: 0;
}

/* Blog grid cards (home teasers): pin Read More to the card bottom so the
   buttons line up regardless of title/excerpt length. card-list-2 (the
   horizontal blog-index variant) keeps its own layout. */
.rbt-card.variation-02:not(.card-list-2) {
    display: flex;
    flex-direction: column;
}

.rbt-card.variation-02:not(.card-list-2) .rbt-card-img {
    flex-shrink: 0;
}

.rbt-card.variation-02:not(.card-list-2) .rbt-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.rbt-card.variation-02:not(.card-list-2) .rbt-card-bottom {
    margin-top: auto;
    padding-top: 12px;
}

/* Badge pills (blog tags, job meta): the theme hardcodes a lavender tint that
   the variable remap can't reach — recolor to the brand blue tint. */
.rbt-badge-2 {
    background: rgba(27, 117, 183, 0.10);
    box-shadow: 0 12px 22px 0 rgba(27, 117, 183, 0.12);
}

/* Sidebar "Popular Posts": meta line ("IELTS · 03 Feb") — the theme flexes
   the li (meta gets squeezed beside the title) and its b4 is 12px with
   line-height 1, which cramps against the title. */
.rbt-widget-recent .recent-post-list li {
    display: block;
}

.rbt-widget-recent .recent-post-list li a {
    line-height: 1.45;
}

.rbt-widget-recent .recent-post-list .b4 {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-body);
    opacity: 0.85;
}

/*---------------------------------------------------------------------
  Misc brand polish
---------------------------------------------------------------------*/
/* Focus ring recolored from theme purple to Aris blue (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--ao-blue);
    outline-offset: 2px;
}

/* Header logo sizing: full wordmark logo */
.rbt-header .logo img,
.popup-mobile-menu .logo img {
    max-height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .rbt-header .logo img {
        max-width: 140px;
    }
}

/* Footer logo on light footer */
.rbt-footer .logo img {
    max-width: 180px;
    height: auto;
}

/* Flag icons in country cards */
.ao-flag {
    width: 48px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(25, 35, 53, 0.18);
}

/* Soft alternating section background (replaces theme purple tint) */
.bg-color-extra2,
.rbt-section-bg {
    background: var(--ao-bg-soft);
}

/* Book a Free Demo popup: make the course dropdown match the text inputs
   (covers both the raw select and bootstrap-select's injected button) */
#aoEnquiryModal select {
    appearance: auto;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-white);
    color: var(--ao-ink);
    font-size: 15px;
}
#aoEnquiryModal .bootstrap-select { width: 100% !important; }
#aoEnquiryModal .bootstrap-select > .dropdown-toggle {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--ao-ink);
    font-size: 15px;
    box-shadow: none;
}
#aoEnquiryModal .bootstrap-select > .dropdown-toggle:focus {
    outline: 2px solid var(--ao-blue) !important;
    outline-offset: 1px;
}
