body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2%;
    border-bottom: 1px solid #ccc;
}

.logo-text {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    color: #009688;
    font-weight: bold;
    background-color: #f4f4f4;
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: 0.3s;
}

nav a:hover {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
}

.newsletter-button button {
    padding: 2%;
    border: none;
    background-color: #00493e;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    border-radius: 4px;
}

.newsletter-button button:hover {
    background-color: #16531a;
}

main .welcome {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    position: relative;
    margin-bottom: 2%;
}

.welcome img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 500px;
    display: block;
    margin-right: 2%;
    margin-bottom: 2%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.welcome-text {
    margin-top: 5%;
    width: 60%;
    padding: 0 2%;
    font-size: 1.2em;
}

.welcome h1 {
    font-size: 2em;
    margin-bottom: 1.5%;
}

/* Additional styles for the featured articles */
.featured-articles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1%;
    height: auto;
}

.article {
    width: calc(30% - 20px);
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    align-self: stretch;
}

.article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.article h3 {
    font-size: 20px;
    margin: 10px 0;
}

.article p {
    font-size: 16px;
    margin: 10px 0;
}

.article a {
    display: inline-block;
    background-color: #00493e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    margin: 10px 0;
}

.article a:hover {
    background-color: #16531a;
}

footer {
    padding: 1% 0;
    text-align: center;
    border-top: 1px solid #ccc;
    line-height: 1.5;
    font-size: 1em;
    max-height: 100px;
    overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    header, nav ul {
        flex-direction: column;
        align-items: center;
    }

    main .welcome {
        flex-direction: column;
    }

    .welcome img {
        max-width: 90%;
        margin: 0;
    }

    .welcome-text {
        width: 90%;
        
    }    
    .article {
        width: calc(100% - 20px);
    }
}


/* Plant Care Guide Styles */

.plant-care-image {
    max-width: 50%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.care-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 70%;
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    margin: 0 auto 20px;
}

.care-step h3, .care-step p {
    font-size: 20px;
    margin-left: 10px;
}

.step-image img {
    width: 350px;
    height: auto;
}

.plant-care-heading {
    margin-top: 10px;
    font-size: 50px;
    color: #207826;
}
/* Media Query for smaller screens */
@media (max-width: 768px) {
    .plant-care-image {
        max-width: 100%;
        height: auto;
    }
    
    .page-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .care-step {
        display: flex;
        flex-direction: column; 
        align-items: center; 
        margin-bottom: 20px;
        width: 90%; 
        text-align: center; 
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 10px;
        margin: 0 auto 20px;
    }
    
    .care-step h3, .care-step p {
        font-size: 20px;
        margin: 10px 0;
    }
    
    .step-image img {
        max-width: 100%; 
        height: auto;
    }
    
    .plant-care-heading {
        margin-top: 10px;
        font-size: 30px;
        color: #207826;
    }
}

/* DIY Projects Styles */

.projects-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

.project {
    margin: 1%;
    flex: 0 0 calc(30% - 2%);
    padding: 1em;
    text-align: left;
}

.project img {
    width: 100%;
    height: auto;
    max-width: 550px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.project-info {
    padding: 1em 0;
}

.project-info h2 {
    font-size: 1.5em;
}

.project-info p {
    font-size: 1.125em;
}

/* Media Queries for responsiveness */
@media (max-width: 900px) {
    .project {
        flex: 0 0 calc(48% - 2%);
    }
}

@media (max-width: 600px) {
    .project {
        flex: 0 0 98%;
        margin: 1% 0;
    }
}

/* Resources Styles */

.table-container {
    margin: 0 auto;
    max-width: 800px;
    padding: 20px;
}

.resources-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.resources-table th, .resources-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.resources-table th {
    background-color: #00493e;
    color: #fff;
    font-weight: bold;
}

.resources-table a {
    text-decoration: none;
    color: #00493e;
}

.resources-table a:hover {
    text-decoration: underline;
}

/* About Us Page Styles */

.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-left: 5%;
}

.about-text {
    flex: 1;
    padding: 20px;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.about-text h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 20px;
    line-height: 1.5;
}

.about-image {
    flex: 1;
    text-align: left;
    margin: 2%;
}

.about-image img {
    width: auto;
    height: 750px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Contact Us Page Styles */

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f7f7f7;
}

.contact-form {
    text-align: left;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 600px;
    margin: 20px;
}

.contact-form h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-form p {
    font-size: 16px;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    background-color: #00493e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

/* Newsletter Subscription Page Styles */
.newsletter-subscription {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f7f7f7;
    text-align: center;
    padding: 20px;
}

.newsletter-subscription form {
    text-align: left;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 400px;
}

.newsletter-subscription h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.newsletter-subscription p {
    font-size: 16px;
    margin-bottom: 20px;
}

.newsletter-subscription label {
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
    text-align: left;
}

.newsletter-subscription input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.newsletter-subscription button {
    background-color: #00493e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

/* Additional Media Queries for responsiveness */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
    }

    .about-text,
    .about-image {
        flex: 1;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .about-image img {
        width: 100%;
        height: auto;
    }

    .contact-form {
        width: 100%;
    }

    .contact-section {
        padding: 20px;
    }
}
