/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #3498db;
    color: white;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style: none;
    background-color: #2980b9;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

nav ul li {
    float: left;
}

nav ul li a {
    color: white;
    display: block;
    padding: 14px 20px;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #1abc9c;
}

main {
    padding: 20px;
}

h2 {
    color: #2980b9;
}

/* Sections */
section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

section.active {
    display: block;
}

/* Home Content */
.home-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.home-feature {
    background-color: white;
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
}

.home-feature h3 {
    color: #3498db;
}

.home-feature p {
    color: #555;
}

/* Articles List */
.article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article-list article {
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 45%;
}

.article-list article h3 {
    color: #3498db;
}

.article-list article p {
    color: #555;
}

.article-list article a {
    color: #1abc9c;
    text-decoration: none;
}

.article-list article a:hover {
    text-decoration: underline;
}

/* Tools Section */
.tool-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tool {
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 45%;
}

/* Video Gallery */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.video {
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 45%;
}

/* App Links */
.app-links img {
    width: 150px;
    margin: 10px;
}

/* Footer */
footer {
    background-color: #2980b9;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 0 auto;
}

form input,
form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

form button {
    background-color: #1abc9c;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form#waterCalculator input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

form#waterCalculator button {
    background-color: #1abc9c;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

form#waterCalculator button:hover {
    background-color: #16a085;
}

#result h4 {
    color: #2980b9;
}

/* Forum Styles */
.forum-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.forum-post {
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 45%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.forum-post h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.forum-post p {
    color: #555;
}

.forum-post a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
}

.forum-post a:hover {
    text-decoration: underline;
}

/* Comment Form */
.forum-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.forum-section h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.forum-section p {
    color: #555;
    margin-bottom: 15px;
}

.forum-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.forum-section button {
    background-color: #1abc9c;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.forum-section button:hover {
    background-color: #16a085;
}

/* Comment Section */
#commentsSection {
    margin-top: 20px;
}

.comment {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment h4 {
    color: #3498db;
    margin-bottom: 5px;
}

.comment p {
    color: #555;
}


/* Additional Styling for Forum Comments */
.comment {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.comment h4 {
    margin: 0;
    color: #3498db;
}

.comment p {
    color: #555;
}

/* Contact Us Section */
#contact {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#contact h2 {
    color: #3498db;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.contact-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    text-align: left;
}

.contact-item h3 {
    color: #3498db;
}

.contact-item p {
    color: #555;
}

.contact-item i {
    margin-right: 10px;
    color: #1abc9c;
}

/* Contact Form */
.contact-form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 50%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.contact-form-container h3 {
    color: #3498db;
    margin-bottom: 20px;
}

.contact-form-container form input,
.contact-form-container form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form-container form button {
    background-color: #1abc9c;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.contact-form-container form button:hover {
    background-color: #16a085;
}

/* Social Media Links */
.social-media {
    margin-top: 30px;
}

.social-media h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.social-media a {
    display: inline-block;
    margin: 0 10px;
    color: #555;
    text-decoration: none;
    font-size: 18px;
}

.social-media a:hover {
    color: #1abc9c;
}

.social-media i {
    margin-right: 5px;
}

/* FAQ Section */
.faq {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 70%;
    margin: 0 auto;
    margin-top: 30px;
}

.faq h3 {
    color: #3498db;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    color: #3498db;
    margin-bottom: 10px;
}

.faq-item p {
    color: #555;
}
/* Tool Section */
#tools {
    background-color: #f4f4f4;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#tools h2 {
    color: #3498db;
    margin-bottom: 20px;
}

#tools p {
    color: #555;
    margin-bottom: 30px;
}

.tool-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.tool {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
    text-align: left;
}

.tool h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.tool p {
    color: #555;
    margin-bottom: 20px;
}

.tool a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #1abc9c;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.tool a:hover {
    background-color: #16a085;
}

/* Responsive Design for Tools */
@media screen and (max-width: 768px) {
    .tool-container {
        flex-direction: column;
        gap: 20px;
    }

    .tool {
        width: 100%;
    }
}
/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 50%;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}

#waterCalculator label {
    display: block;
    margin-top: 10px;
}

#waterCalculator input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#waterCalculator button {
    padding: 10px;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#waterCalculator button:hover {
    background-color: #16a085;
}

#result h4 {
    color: #3498db;
    margin-top: 20px;
}
