:root {
    /* =========================================
       BRAND COLORS
       Change only these colors for another site
       ========================================= */

    --brand-primary: #1E3567;
    --brand-secondary: #1F88B5;

    /* Banner */
    --google-banner-start: var(--brand-secondary);
    --google-banner-end: var(--brand-primary);
    --google-banner-border: var(--brand-secondary);

    /* Text */
    --google-title-color: #ffffff;
    --google-subtitle-color: rgba(255, 255, 255, 0.9);

    /* Desktop button */
    --google-button-bg: #ffffff;
    --google-button-color: var(--brand-primary);
}


/* =========================================
   GOOGLE NEWS BANNER
   ========================================= */

.google-news-banner {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;

    gap: 24px;
    padding: 22px 32px;

    background: linear-gradient(
        105deg,
        var(--google-banner-start) 0%,
        var(--google-banner-end) 100%
    );

    border: 1px solid var(--google-banner-border);
    border-radius: 16px;

    overflow: hidden;

    font-family: Arial, Helvetica, sans-serif;
    margin: 15px 0;
}


/* =========================================
   GOOGLE LOGO
   ========================================= */

.google-news-logo {
    width: 62px;
    height: 62px;
    min-width: 62px;

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

    background: #fff;
    border-radius: 50%;
}

.google-g {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 28px;
    font-weight: 700;
    line-height: 1;

    background: conic-gradient(
        from -45deg,
        #4285f4 0deg 90deg,
        #34a853 90deg 180deg,
        #fbbc05 180deg 270deg,
        #ea4335 270deg 360deg
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* =========================================
   CONTENT
   ========================================= */

.google-news-content {
    flex: 1 1 auto;
    min-width: 0;
}

.google-news-title {
    margin: 0;

    color: var(--google-title-color);

    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.google-news-subtitle {
    margin-top: 5px;

    color: var(--google-subtitle-color);

    font-size: 17px;
    line-height: 1.25;
    font-weight: 400;
}


/* =========================================
   BUTTON — DESKTOP
   ========================================= */

.google-news-button {

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;

    box-sizing: border-box;

    background: var(--google-button-bg);
    color: var(--google-button-color);

    border-radius: 32px;

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;

    transition: transform 0.2s ease,
    box-shadow 0.2s ease;
}

.google-news-button:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .google-news-banner {
        gap: 18px;
        padding: 20px 24px;

        border-radius: 20px;
    }

    .google-news-logo {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

    .google-g {
        font-size: 22px;
    }

    .google-news-title {
        font-size: 18px;
    }

    .google-news-subtitle {
        font-size: 14px;
    }

    .google-news-button {
        font-size: 15px;
        padding: 10px 16px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .google-news-banner {
        min-height: 96px;

        gap: 14px;
        padding: 14px 18px;

        border-radius: 16px;
    }

    .google-news-logo {
        width: 40px;
        height: 40px;
        min-width: 40px;

        background: #fff;
        border-radius: 50%;
    }

    .google-g {
        font-size: 25px;
    }

    .google-news-content {
        flex: 1 1 auto;
        min-width: 0;
    }

    .google-news-title {
        font-size: 19px;
        line-height: 1.2;

        white-space: nowrap;
    }

    .google-news-subtitle {
        margin-top: 3px;

        font-size: 14px;
        line-height: 1.25;

        white-space: nowrap;
    }

    .google-news-button {
        width: 24px;
        min-width: 24px;
        height: 40px;

        flex: 0 0 24px;

        padding: 0;

        background: transparent;
        color: #fff;

        border-radius: 0;

        font-size: 0;
    }

    .google-news-button-text {
        display: none;
    }

    .google-news-button::after {
        content: "›";

        display: block;

        color: #fff;

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


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 430px) {

    .google-news-banner {
        min-height: 88px;

        gap: 11px;
        padding: 12px 15px;

        border-radius: 15px;
    }

    .google-news-logo {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .google-g {
        font-size: 27px;
    }

    .google-news-title {
        font-size: 17px;
        line-height: 1.15;
    }

    .google-news-subtitle {
        font-size: 13px;
        line-height: 1.2;
    }

    .google-news-button {
        width: 22px;
        min-width: 22px;
        flex-basis: 22px;
    }

    .google-news-button::after {
        font-size: 31px;
    }
}


/* =========================================
   VERY SMALL MOBILE
   ========================================= */

@media (max-width: 360px) {

    .google-news-banner {
        min-height: 82px;

        gap: 9px;
        padding: 10px 12px;
    }

    .google-news-logo {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .google-g {
        font-size: 24px;
    }

    .google-news-title {
        font-size: 15px;
    }

    .google-news-subtitle {
        font-size: 12px;
    }

    .google-news-button {
        width: 20px;
        min-width: 20px;
        flex-basis: 20px;
    }

    .google-news-button::after {
        font-size: 28px;
    }
}
