/*fonts*/
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    background-color: rgb(
        255,
        255,
        255
    ); /* not decided on navbar background colour yet. thinking uniform white for now */
    padding: 0.8rem 2rem;
}

/*want the logo to be bold, strong, and eyecatching*/
.navbar-brand {
    font-weight: 900;
}

/*for the company slogan
text align - centered horizontally
margin - so there is space above and below
font- size 2 rem*/
.slogan {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
}

.article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    /*this one is for space between the image and the text*/
    gap: 2rem;
}

.article-text {
    flex: 1;
}
.article-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.article-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

/*this is to stop the text from turning blue and underlined*/
#article-text a {
    text-decoration: none;
    color: inherit;
    display: block;
}

#article-text a.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
#article-text a.button:hover {
    background-color: #838383;
}

.article-image {
    flex: 1;
}
.article-image img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* this is where how to take better care article is */
/* hero part */
.hero {
    background-image: url("/stop-before-it-starts/assets/images/boat-1992137_1280.jpg");
    background-size: cover;
    background-position: center;
    /* here is the writing on top of the image */
    height: 400px;
    color: rgb(255, 255, 255);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* for a soft blue background behind the affirmations */
.affirmations {
    background-color: #e0f7fa;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
    .article {
        /* stack vertically */
        flex-direction: column;
        text-align: center;
    }

    .article-image {
        /* order: -1 makes the image appear first - smaller screens*/
        order: -1;
        margin-bottom: 1rem;
    }
    #article-text {
        /* order: 0 makes the text come after the image - smaller screens */
        order: 0;
    }
}
