/* ============================================================
   VietCALL / Glance custom stylesheet
   Cleaned and consolidated: 2026-08-21
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&family=Roboto:wght@300;400;700&family=Spline+Sans:wght@400;500;600;700&display=swap');
@import url("/assets/fontawesome/css/fontawesome.min.css");
@import url("/assets/fontawesome/css/solid.min.css");

/* ============================================================
   1. Global variables and page defaults
   ============================================================ */

:root {
    --border-radius: 3px !important;

    --vietcall-blue: #274685;
    --vietcall-blue-light: #2d71a1;
    --vietcall-teal: #3db3c5;
    --vietcall-accent: #f7f6b0;

    --vietcall-desktop-gap: 4px;
    --vietcall-mobile-gap: 8px;
}

/* Keep only a very small strip above the header and below the page. */
.page {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

html,
body {
    overflow-x: clip;
}

body {
    font-family: "Roboto", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", sans-serif;
}

.widget {
    border-radius: 3px !important;
}


/* ============================================================
   2. Full-width VietCALL header
   ============================================================ */

.vietcall-hero {
    margin-bottom: 1rem;
}

.vietcall-hero .widget-content {
    padding: 0 !important;
}

.vietcall-header {
    position: relative;
    overflow: hidden;

    width: 100vw;
    max-width: none;
    box-sizing: border-box;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 20px 32px 0 32px;

    background:
        linear-gradient(
            to right,
            rgba(39, 70, 133, 0.88) 0%,
            rgba(61, 179, 197, 0.88) 100%
        ),
        url("/assets/vietcall-bg.jpg");

    background-size: cover;
    background-position: center;

    color: #ffffff;
    border-radius: 0 !important;
}


/* ============================================================
   3. Logo, desktop navigation, and tagline
   ============================================================ */

.vietcall-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;

    gap: 12px;
    flex-wrap: nowrap;
}

.vietcall-logo-link {
    display: block;
    flex: 0 0 auto;
}

.vietcall-logo-link img {
    display: block;

    width: 291px;
    max-width: 34vw;
    height: auto;
}

.vietcall-nav-right {
    flex: 1 1 auto;
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.vietcall-menu {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-wrap: wrap;
    gap: 4px;
}

.vietcall-menu a {
    padding: 8px 15px;

    color: #ffffff !important;
    text-decoration: none;

    font-family: "Roboto", sans-serif;
    font-size: 1.5rem !important;
    font-weight: 500;

    border-radius: 7px;
    transition: background 0.2s ease;
}

.vietcall-menu a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.17);
}

/* Align the first menu label and the tagline after the logo. */
.vietcall-menu a:first-child {
    padding-left: 30px;
}

.vietcall-title {
    width: 100%;

    margin-top: 1px;
    padding-left: 30px;

    text-align: left;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 300;
    font-style: italic;

    color: var(--vietcall-accent);
}

/* Old hero-copy markup is retained only for compatibility. */
.vietcall-hero-copy {
    display: none;
}

/* Mobile burger controls are hidden on desktop. */
.vietcall-menu-toggle,
.vietcall-menu-burger {
    display: none;
}


/* ============================================================
   4. Rotating mission-message strip
   ============================================================ */

.vietcall-message-strip {
    position: relative;

    width: calc(100% + 64px);
    box-sizing: border-box;

    margin-left: -32px;
    margin-right: -32px;
    margin-top: 18px;

    padding: 9px 32px;
    min-height: 44px;

    background:
        linear-gradient(
            to right,
            rgba(39, 70, 133, 0.58) 0%,
            rgba(61, 179, 197, 0.58) 100%
        );

    border-top: 1px solid rgba(255, 255, 255, 0.20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
}

.vietcall-rotator {
    position: relative;

    margin: 0;
    height: 28px;

    overflow: hidden;

    color: #ffffff;
    font-size: 17px;
    line-height: 28px;
    text-align: center;
}

.vietcall-rotating-line {
    position: absolute;

    top: 0;
    left: 0;
    width: 100%;

    opacity: 0;
    text-align: center;
    transform: translateY(5px);

    animation-name: vietcall-message-cycle;
    animation-duration: 16s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.vietcall-rotating-line:nth-child(1) {
    animation-delay: 0s;
}

.vietcall-rotating-line:nth-child(2) {
    animation-delay: 4s;
}

.vietcall-rotating-line:nth-child(3) {
    animation-delay: 8s;
}

.vietcall-rotating-line:nth-child(4) {
    animation-delay: 12s;
}

@keyframes vietcall-message-cycle {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    4% {
        opacity: 1;
        transform: translateY(0);
    }

    21% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 0;
        transform: translateY(-5px);
    }

    100% {
        opacity: 0;
        transform: translateY(-5px);
    }
}


/* ============================================================
   5. Desktop card-row layout
   ============================================================ */

.vietcall-card-row {
    width: calc(100% + 20px) !important;

    margin-top: 5px !important;
    margin-left: -10px !important;
    margin-right: -10px !important;

    --widget-gap: var(--vietcall-desktop-gap) !important;

    box-sizing: border-box;
}

.vietcall-content-widget {
    margin-top: 0 !important;
    font-family: "Spline Sans", sans-serif !important;
}

.vietcall-content-widget .widget-content {
    padding: 0 !important;
    background: transparent !important;
}


/* ============================================================
   6. Shared card frame
   ============================================================ */

.vietcall-card-box {
    position: relative;

    height: 100%;
    padding: 0 20px 18px 20px !important;

    box-sizing: border-box;
    overflow: visible;

    background: #ffffff !important;

    border: 1px solid var(--vietcall-blue) !important;
    border-radius: 3px !important;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);

    font-family: "Spline Sans", sans-serif !important;
}


/* ============================================================
   7. Shared card title bar
   ============================================================ */

.vietcall-card-title {
    position: relative;
    z-index: 2;

    display: block;

    width: calc(100% + 40px);
    box-sizing: border-box;

    margin-top: -1px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 5px !important;

    padding: 10px 22px;

    background:
        linear-gradient(
            to right,
            var(--vietcall-blue) 0%,
            var(--vietcall-blue-light) 100%
        );

    border: 0 !important;
    border-radius: 3px 3px 0 0;

    color: #ffffff !important;

    font-family: "Spline Sans", sans-serif !important;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

/* Disable the old tab-wing pseudo-elements. */
.vietcall-card-title::before,
.vietcall-card-title::after {
    display: none !important;
}

.vietcall-card-title a {
    display: block;
    width: 100%;

    color: #ffffff !important;
    text-decoration: none !important;

    font-family: "Spline Sans", sans-serif !important;
    font-weight: 600;
}

.vietcall-card-title a:hover {
    color: #ffffff !important;
    opacity: 0.88;
}
/* ------------------------------------------------------------
   Icons used in non-journal card title bars
   ------------------------------------------------------------ */

.vietcall-card-heading-link {
    display: flex !important;
    align-items: center;

    gap: 9px;
}

.vietcall-card-heading-link span {
    min-width: 0;
}


/* Website/logo image icons */

.vietcall-card-heading-icon {
    display: block;

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    object-fit: contain;

    border-radius: 4px;

    background: rgba(255, 255, 255, 0.96);
}


/* Font Awesome icons */

.vietcall-card-heading-fa {
    display: block;

    width: 30px;

    flex: 0 0 30px;

    color: var(--vietcall-accent);

    font-size: 24px;
    line-height: 1;

    text-align: center;
}

/* ------------------------------------------------------------
   Educational Research Stories icon
   ------------------------------------------------------------ */

/* Hide the old ERS image without changing home.yml. */
.vietcall-card-heading-link[href="https://edu.vietcall.org/"]
.vietcall-card-heading-icon {
    display: none;
}

/* Use locally installed Font Awesome Book Open Reader. */
.vietcall-card-heading-link[href="https://edu.vietcall.org/"]::before {
    content: "\f5da";

    display: block;

    width: 30px;
    flex: 0 0 30px;

    font-family: "Font Awesome 6 Free";
    font-size: 23px;
    font-weight: 900;
    line-height: 1;

    text-align: center;

    color: var(--vietcall-accent);
}

/* ------------------------------------------------------------
   LMS header icon
   ------------------------------------------------------------ */

.vietcall-card-heading-link[href="https://lms.vietcall.org/login/index.php"]
.vietcall-card-heading-icon {
    width: auto;
    height: 24px;

    flex: 0 0 auto;

    object-fit: contain;

    background: transparent;
    border-radius: 0;
}

/* ============================================================
   8. Shared card entries
   ============================================================ */

.vietcall-entry-list {
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
}

.vietcall-entry {
    display: block;

    margin: 0 -4px;
    padding: 12px 8px;

    text-decoration: none !important;

    border-bottom: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 3px;

    font-family: "Spline Sans", sans-serif !important;
}

.vietcall-entry:last-child {
    border-bottom: 0;
}

.vietcall-entry:hover {
    background: rgba(45, 113, 161, 0.06);
}

.vietcall-entry-title {
    display: block;

    color: var(--color-text-highlight);

    font-family: "Spline Sans", sans-serif !important;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500 !important;
}

.vietcall-entry:hover .vietcall-entry-title {
    color: hsl(var(--color-primary));
}

.vietcall-entry-meta {
    display: block;

    margin-top: 4px;

    color: var(--color-text-subdue);

    font-family: "Spline Sans", sans-serif !important;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
}


/* ============================================================
   9. Researcher Publishers journal cards
   ============================================================ */

.vietcall-journal-widget {
    width: calc(100% + 20px) !important;

    /*
     * Glance adds its normal widget gap before this group.
     * Pull the journal group upward so the visible desktop gap
     * matches the 4px spacing used between journal cards.
     */
    margin-top: 4px !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.vietcall-journal-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--vietcall-desktop-gap);
    row-gap: var(--vietcall-desktop-gap);
}

.vietcall-journal-card {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

/* Makes the View journal link sit consistently at the card bottom. */
.vietcall-journal-card .vietcall-entry-list {
    flex: 1;
}
/* Journal logo displayed before each journal card title. */
.vietcall-journal-title-link {
    display: flex !important;
    align-items: center;

    gap: 9px;
}

.vietcall-journal-icon {
    display: block;

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    object-fit: cover;

    /*
     * Some source logos have a square/checkerboard canvas.
     * Circular clipping keeps only the journal emblem visible.
     */
    border-radius: 50%;
    clip-path: circle(50%);

    background: #ffffff;
}

.vietcall-journal-title-link span {
    min-width: 0;
}

/* ============================================================
   10. LMS Login card
   ============================================================ */

.vietcall-lms-widget {
    width: 100%;
}

.vietcall-lms-card {
    width: calc(100% + 20px) !important;
    height: auto;

    margin-top: var(--vietcall-desktop-gap) !important;
    margin-left: -10px !important;
    margin-right: -10px !important;

    box-sizing: border-box;
}

.vietcall-lms-message {
    margin: 8px 4px 14px 4px;

    font-family: "Spline Sans", sans-serif;
    font-size: 14px;
    line-height: 1.55;

    color: var(--color-text-base);
}

.vietcall-lms-message a {
    color: var(--vietcall-blue-light) !important;
    text-decoration: none;
    font-weight: 500;
}

.vietcall-lms-message a:hover {
    text-decoration: underline;
}

.vietcall-lms-login-frame {
    width: 100%;
    margin-top: 4px;
    overflow: hidden;
}

/* 110px is only the loading fallback; lms-frame.js resizes it automatically. */
.vietcall-lms-login-frame iframe {
    display: block;

    width: 100%;
    height: 110px;

    margin: 0;
    border: 0;

    background: transparent;
}


/* ============================================================
   11. Card footer / View all links
   ============================================================ */

.vietcall-card-more {
    margin-top: 8px;
    padding-top: 11px;

    text-align: right;

    border-top: 1px solid rgba(128, 128, 128, 0.15);

    font-family: "Spline Sans", sans-serif !important;
}

.vietcall-card-more a {
    color: var(--vietcall-blue-light) !important;
    text-decoration: none;

    font-family: "Spline Sans", sans-serif !important;
    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   12. Footer
   ============================================================ */

/* Glance adds its own footer wrapper spacing; keep it minimal. */
.footer {
    padding-bottom: 2px !important;
}

.vietcall-footer {
    width: 100%;
    box-sizing: border-box;

    padding: 1.5rem 1rem;

    background:
        linear-gradient(
            to right,
            var(--vietcall-blue) 0%,
            var(--vietcall-teal) 100%
        );

    color: #ffffff;

    text-align: center;
    line-height: 1.6;
    font-size: 14px;

    border-radius: 3px !important;
}

.vietcall-footer .vietcall-copyright {
    margin-bottom: 2px;
}

.vietcall-footer .vietcall-credits {
    color: #ffffff;
}

.vietcall-footer a {
    display: inline-block;

    margin-left: 3px;

    color: #ffffff !important;
    font-weight: 600;
    vertical-align: middle;
}

.vietcall-footer img {
    display: inline-block;

    width: 20px;
    height: 20px;

    vertical-align: middle;
}


/* ============================================================
   13. Accessibility: reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .vietcall-rotating-line {
        display: none;
        animation: none;
    }

    .vietcall-rotating-line:first-child {
        display: block;

        position: static;
        opacity: 1;
        transform: none;
    }
}


/* ============================================================
   14. Tablet / mobile header and top burger menu
   ============================================================ */

@media (max-width: 800px) {
    .vietcall-header {
        padding: 18px 18px 0 18px;
    }

    /* Logo at left, burger at right; tagline/menu occupy the next row. */
    .vietcall-nav {
        display: grid !important;

        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;

        column-gap: 12px;
        row-gap: 0;

        align-items: center !important;
    }

    .vietcall-logo-link {
        grid-column: 1;
        grid-row: 1;
    }

    .vietcall-logo-link img {
        width: 260px;
        max-width: 72vw;
    }

    /* Hide the tagline while the top burger menu is open. */
    .vietcall-menu-toggle:checked
    ~ .vietcall-nav-right
    .vietcall-title {
        display: none !important;
    }

    /* Visually hidden checkbox used as the CSS-only menu state. */
    .vietcall-menu-toggle {
        position: absolute;

        width: 1px;
        height: 1px;

        opacity: 0;
        pointer-events: none;
    }

    .vietcall-menu-burger {
        grid-column: 2;
        grid-row: 1;

        display: flex;

        width: 40px;
        height: 36px;

        padding: 8px 9px;

        flex-direction: column;
        justify-content: space-between;

        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 3px;

        cursor: pointer;
        box-sizing: border-box;
    }

    .vietcall-menu-burger span {
        display: block;

        width: 100%;
        height: 2px;

        background: #ffffff;
        border-radius: 2px;

        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    /* Burger icon becomes an X when opened. */
    .vietcall-menu-toggle:checked
    + .vietcall-menu-burger
    span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .vietcall-menu-toggle:checked
    + .vietcall-menu-burger
    span:nth-child(2) {
        opacity: 0;
    }

    .vietcall-menu-toggle:checked
    + .vietcall-menu-burger
    span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .vietcall-nav-right {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Visible below the logo while the menu is closed. */
    .vietcall-title {
        order: 1;

        width: 100%;
        margin-top: 8px;

        text-align: left;
        font-size: 15px;
        line-height: 1.4;
    }

    /* Menu is hidden until the burger checkbox is selected. */
    .vietcall-menu {
        order: 2;

        display: none;
        width: 100%;

        margin-top: 10px;
        padding-top: 10px;

        border-top: 1px solid rgba(255, 255, 255, 0.20);

        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;

        gap: 4px 6px;
    }

    .vietcall-menu-toggle:checked
    ~ .vietcall-nav-right
    .vietcall-menu {
        display: flex;
    }

    /* Wrap menu items side by side according to available screen width. */
    .vietcall-menu a,
    .vietcall-menu a:first-child {
        display: inline-block;

        width: auto;
        padding: 8px 10px;

        box-sizing: border-box;

        /* 1.5rem preserves the current effective size of the uploaded CSS. */
        font-size: 1.5rem !important;
        line-height: 5px;

        color: var(--vietcall-accent) !important;

        text-align: left;
        white-space: nowrap;

        border-radius: 3px;
    }

    .vietcall-menu a:hover {
        background: rgba(255, 255, 255, 0.14);
    }

    /* Full-width rotating strip on tablet/mobile. */
    .vietcall-message-strip {
        width: calc(100% + 36px);

        margin-left: -18px;
        margin-right: -18px;
        margin-top: 16px;

        padding: 9px 18px;
        min-height: 54px;
    }

    .vietcall-rotator {
        height: 38px;
        font-size: 15px;
        line-height: 19px;
    }

    .vietcall-rotating-line {
        display: flex;

        align-items: center;
        justify-content: center;

        min-height: 38px;
    }
}


/* ============================================================
   15. Mobile cards
   ============================================================ */

@media (max-width: 700px) {
    /* Card spacing is controlled on visible card elements, not Glance wrappers. */
    .vietcall-hero {
        margin-bottom: 0 !important;
    }

    /* First two cards: normal mobile width and explicit vertical spacing. */
    .vietcall-card-row {
        width: 100% !important;

        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;

        row-gap: 0 !important;
    }

    .vietcall-content-widget {
        margin-top: 0 !important;
    }

    /* Header -> card 1 and card 1 -> card 2. */
    .vietcall-card-row .vietcall-card-box {
        margin-top: var(--vietcall-mobile-gap) !important;
    }

    .vietcall-card-box {
        padding: 0 16px 15px 16px !important;
    }

    .vietcall-card-title {
        width: calc(100% + 32px);

        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: 5px !important;

        padding: 9px 18px;
        font-size: 16px;
    }

    .vietcall-entry-title {
        font-size: 14px;
    }

    /* Card 2 -> first journal card, then 8px between journal cards. */
    .vietcall-journal-widget {
        width: 100% !important;

        margin-top: var(--vietcall-mobile-gap) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .vietcall-journal-grid {
        grid-template-columns: 1fr;
        row-gap: var(--vietcall-mobile-gap) !important;
    }

    /* Match the LMS card width to journal cards on mobile. */
    .vietcall-lms-widget {
        width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Last journal -> LMS Login. */
    .vietcall-lms-card {
        width: 100% !important;

        margin-top: var(--vietcall-mobile-gap) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box;
    }

    .vietcall-lms-message {
        margin-left: 0;
        margin-right: 0;
        font-size: 14px;
    }
	
	/* Slightly smaller journal logos on narrow screens. */
	.vietcall-journal-icon {
		width: 26px;
		height: 26px;

		flex-basis: 26px;
	}

	.vietcall-journal-title-link {
		gap: 8px;
	}
/* Card-title icons are slightly smaller on mobile. */

.vietcall-card-heading-link {
    gap: 8px;
}

.vietcall-card-heading-icon {
    width: 26px;
    height: 26px;

    flex-basis: 26px;
}

.vietcall-card-heading-fa {
    width: 26px;

    flex-basis: 26px;

    font-size: 21px;
}
/* ERS Font Awesome icon on mobile. */
.vietcall-card-heading-link[href="https://edu.vietcall.org/"]::before {
    width: 26px;
    flex-basis: 26px;

    font-size: 20px;
}


/* LMS logo on mobile. */
.vietcall-card-heading-link[href="https://lms.vietcall.org/login/index.php"]
.vietcall-card-heading-icon {
    width: 22px;
    height: 22px;

    flex-basis: 22px;
}
}


/* ============================================================
   16. Custom mobile bottom navigation
   ============================================================ */

@media (max-width: 800px) {

    /*
     * Hide Glance's native mobile bar only after
     * the VietCALL custom bar has been created.
     */
    body.vietcall-custom-mobile-nav .mobile-navigation {
        display: none !important;
    }


    /*
     * Reserve page space for the fixed bottom navigation.
     */
    body {
        padding-bottom:
            calc(54px + env(safe-area-inset-bottom));
    }


    /* --------------------------------------------------------
       Fixed navigation container
       -------------------------------------------------------- */

    .vietcall-bottom-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 9999;

        font-family: "Roboto", sans-serif;

        /*
         * IMPORTANT FOR iPHONE SAFARI
         *
         * Keep this as a SOLID background color.
         * Safari can extend a solid background from a fixed
         * viewport-edge element underneath its translucent
         * bottom browser toolbar.
         *
         * The visible gradient is applied to the child elements
         * below, so the navigation still keeps its current look.
         */
        background-color: #4a8cb0;

        padding-bottom:
            env(safe-area-inset-bottom);
    }


    /* --------------------------------------------------------
       Menu panel above bottom bar
       -------------------------------------------------------- */

    .vietcall-bottom-menu-panel {
        display: none;

        width: 100%;

        padding: 10px 14px;

        box-sizing: border-box;

        background:
            linear-gradient(
                to right,
                #415c94 0%,
                #54bccc 100%
            );

        border-top:
            1px solid rgba(255, 255, 255, 0.20);
    }


    .vietcall-bottom-nav.menu-open
    .vietcall-bottom-menu-panel {
        display: block;
    }


    /* --------------------------------------------------------
       Menu links copied from top navigation
       -------------------------------------------------------- */

    .vietcall-bottom-menu-links {
        display: flex;

        width: 100%;

        flex-direction: row;
        flex-wrap: wrap;

        align-items: center;
        justify-content: flex-start;

        gap: 4px 6px;
    }


    .vietcall-bottom-menu-links a {
        display: inline-block;

        width: auto;

        padding: 8px 10px;

        box-sizing: border-box;

        color: var(--vietcall-accent) !important;

        font-size: 1.25rem !important;
        font-weight: 500;

        text-decoration: none !important;
        white-space: nowrap;

        border-radius: 3px;
    }


    .vietcall-bottom-menu-links a:hover,
    .vietcall-bottom-menu-links a:focus {
        background:
            rgba(255, 255, 255, 0.14);

        color: #ffffff !important;
    }


    /* --------------------------------------------------------
       Visible bottom row
       Back-to-top + burger
       -------------------------------------------------------- */

    .vietcall-bottom-bar {
        display: grid;

        grid-template-columns: 1fr 1fr;

        width: 100%;
        min-height: 54px;

        /*
         * This is the softer gradient you currently like.
         * The solid parent behind it is what Safari uses
         * for the browser-toolbar color extension.
         */
        background:
            linear-gradient(
                to right,
                #415c94 0%,
                #54bccc 100%
            );

        border-top:
            1px solid rgba(255, 255, 255, 0.20);

        box-shadow:
            0 -2px 8px rgba(0, 0, 0, 0.10);
    }


    /* --------------------------------------------------------
       Bottom buttons
       -------------------------------------------------------- */

    .vietcall-bottom-top,
    .vietcall-bottom-toggle {
        display: flex;

        min-height: 54px;

        align-items: center;
        justify-content: center;

        padding: 0;

        border: 0;

        background: transparent;

        color: #ffffff;

        cursor: pointer;
    }


    .vietcall-bottom-top:first-child {
        border-right:
            1px solid rgba(255, 255, 255, 0.15);
    }


    .vietcall-bottom-top:hover,
    .vietcall-bottom-toggle:hover {
        background:
            rgba(255, 255, 255, 0.10);
    }


    /* --------------------------------------------------------
       Back-to-top icon
       -------------------------------------------------------- */

    .vietcall-bottom-top-icon {
        display: block;

        font-size: 27px;
        line-height: 1;
        font-weight: 300;
    }


    /* --------------------------------------------------------
       Burger icon
       -------------------------------------------------------- */

    .vietcall-bottom-toggle {
        flex-direction: column;

        gap: 5px;
    }


    .vietcall-bottom-toggle span {
        display: block;

        width: 23px;
        height: 2px;

        background: #ffffff;

        border-radius: 2px;

        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }


    /* Burger becomes an X while the menu is open. */

    .vietcall-bottom-nav.menu-open
    .vietcall-bottom-toggle span:nth-child(1) {
        transform:
            translateY(7px)
            rotate(45deg);
    }


    .vietcall-bottom-nav.menu-open
    .vietcall-bottom-toggle span:nth-child(2) {
        opacity: 0;
    }


    .vietcall-bottom-nav.menu-open
    .vietcall-bottom-toggle span:nth-child(3) {
        transform:
            translateY(-7px)
            rotate(-45deg);
    }
}


/* Hide custom bottom navigation on desktop. */

@media (min-width: 801px) {

    .vietcall-bottom-nav {
        display: none !important;
    }
}
