:root {
    --color-background: #196B81;
    --color-text-light: #ffffff;
    --color-accent-orange: #E47633;
    --color-placeholder: #5A9EA3;
    --color-input-bg: #ffffff;

    --color-deco-orange: #F9BC3C;
    --color-deco-yellow: #FEF7DE;
    --color-deco-purple: #C28AE1;
    --color-deco-teal: #368C95;
}

.newsletter-science-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 120px;
    padding-bottom: 120px;
    padding-inline: 10px;
    overflow: hidden;

    @media (max-width: 768px) {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.newsletter-science {
    position: relative;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-background);
    text-align: center;
    border-radius: 30px;
}


.newsletter-science__content {
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

.newsletter-science__header {
    margin-bottom: 20px;
}

.newsletter-science__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 80%;
    height: 15px;
    background-image: url('../images/BRUSHES.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%);
}

.newsletter-science__title {
    font-size: 52px;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 5px;
    font-weight: bold;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1;
    font-family: var(--font-family-archer);
    letter-spacing: -1px;
    margin: 0 auto;
}



.newsletter-science__accent-line {
    width: 150px;
    height: 6px;
    background-color: var(--color-accent-orange);
    margin: 10px auto 0;
    border-radius: 3px;
}

.newsletter-science__description {
    font-size: 22px;
    color: var(--color-text-light);
    max-width: 720px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.about-us-newsletter .newsletter-science__description {
    max-width: 584px;
}

.newsletter-science__form {
    display: flex;
    justify-content: center;
    height: 44px;
    gap: 15px;
    margin: 0 auto;
    max-width: 720px;
}

.newsletter-science__input {
    flex: 1;
    max-width: 180px;
    padding-left: 10px;
    border: none;
    border-radius: 30px;
    background-color: var(--color-input-bg);
    color: var(--color-text-dark);
    font-size: 1em;
    transition: box-shadow 0.3s ease;
}

.newsletter-science__input::placeholder {
    color: #196B81;
    font-size: 16px;
    line-height: 1.4;
    opacity: 0.3;
}

.newsletter-science__input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 118, 51, 0.5);
}

.newsletter-science__button {
    border: none;
    border-radius: 30px;
    background-color: var(--color-accent-orange);
    color: var(--color-text-light);
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%;
    min-width: 150px;
}

.newsletter-science__button:hover {
    background-color: #d1692d;
}

.newsletter-science__button:active {
    transform: translateY(1px);
}

.newsletter-science__decoration {
    position: absolute;
    z-index: 5;
}

.newsletter-science__decoration--top-left {
    top: 20px;
    left: 20px;
    width: 180px;
    transform: translate(70%, -22px);
    height: 55px;
    background: url('../images/vector5.png') no-repeat center / contain;
}

.newsletter-science__decoration--top-right {
    top: -20px;
    right: 0;
    width: 150px;
    height: 150px;

    background: url('../images/vector4.svg') no-repeat center / contain;
    opacity: 0.8;
}

.newsletter-science__decoration--bottom-left {
    bottom: 0;
    left: 0;
    transform: translate(8%, 1px);
    width: 303px;
    height: 162px;
    background: url(../images/vector6.png) no-repeat center / contain;
}



@media (max-width: 1000px) {
    .newsletter-science-container{
        padding-top: 60px;
    }
    .newsletter-science__input {
        max-width: 100%;
        min-height: 44px;
    }

    .newsletter-science__form {
        flex-wrap: wrap;
        height: auto;
        padding-inline: 20px;
    }

    .newsletter-science__button {
        width: 100%;
        min-width: none;
        min-height: 44px;
    }

    .newsletter-science__decoration--top-left {
        top: 20px;
        left: 0px;
        width: 180px;
        transform: translate(30%, -22px);
    }

    .newsletter-science__decoration--top-right {
        top: 5px;
        right: 2px;
        width: 100px;
        height: 80px;
    }

    .newsletter-science__title {
        font-size: 38px;
        padding-inline: 20px;
    }

    .newsletter-science__description {
        font-size: 18px;
        max-width: 400px;
        padding-inline: 20px;
    }
}

/* Buttons */
.newsletter-science__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-height: 44px;
    /* Ensure arrow is visible */
    position: relative; 
    z-index: 20;
}

.newsletter-science__btn {
    max-width: 215px;
    max-height: 44px;
    width: 100%;
    height: 100%;
    padding: 14px 26px;
    border-radius: 1000px;
    font-family: var(--font-family-archer, 'Archer', serif);
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    
    /* For arrow positioning */
    position: relative;
    overflow: visible; 
}

.newsletter-science__btn--primary {
    background-color: #E47633;
    color: #fff;
    border: none;
}

/* Arrow Decoration attached to Primary Button */
.newsletter-science__btn--primary::after {
    content: "";
    position: absolute;
    top: 55px; /* Slight overlap or gap */
    left: 100%;
    width: 240px;
    height: 129px;
    background: url(../images/Vector7.png) no-repeat center / contain;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.2s ease; /* Match button transition */
}

/* Ensure only the FIRST primary button gets the arrow */
.newsletter-science__btn--primary ~ .newsletter-science__btn--primary::after {
    content: none;
    display: none;
}

.newsletter-science__btn--primary:hover {
    background-color: #d1692d;
    transform: translateY(-2px);
}

/* Counter-act the button move so arrow stays stationary */
.newsletter-science__btn--primary:hover::after {
    transform: translateX(-50%) translateY(2px);
}

.newsletter-science__btn--secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.newsletter-science__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .newsletter-science__buttons {
        flex-direction: column;
        align-items: center;
        max-height: none; /* Allow expansion */
        gap: 20px;
    }

    .newsletter-science__btn--primary::after {
        left: 230px;
        top: 55px;
    }
}