/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Container Styling */
.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background-color:  rgb(161, 0, 0);
    color: white;
}

@media (min-width: 769px) {
    .header-container {
        flex-direction: row;
    }
    .logo {
        width: 100px;
        margin-right: 20px;
    }
    .header-text {
        flex: 1;
    }
    .header-text h1 {
        font-size: 36px;
    }
    .header-text p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        width: 80px;
        margin: 10px 0;
    }
    .header-text h1 {
        font-size: 28px;
    }
    .header-text p {
        font-size: 16px;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    background-color:  rgb(161, 0, 0);
    color: white;
    width: 100%;
}

header h1 {
    text-align: center;  /* Text center alignment */
    font-size: 36px;
    color: white;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    color: white;
    text-align: center;
}

/* Navigation Bar Styling */
nav {
    background-color: transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 10px 20px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    background-color:  rgb(161, 0, 0);
    font-size: 18px;
    font-weight: bold;
    padding: 8px 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

nav ul li a:hover {
    color:  #007bff;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
}

/* Sections */
section {
    margin: 20px auto;
    max-width: 90%;
    width: 100%;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid  rgb(161, 0, 0);
}

section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid  rgb(161, 0, 0);
}

/* Tool Buttons container */
.tool-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tool-buttons a {
    display: inline-block;
    width: calc(25% - 15px);
    padding: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.tool-buttons a:hover {
    background-color: rgb(161, 0, 0);
}

/* Footer */
footer {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: auto;
    background-color: rgb(161, 0, 0);
    color: white;
    padding: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tool-buttons a {
        width: calc(33.33% - 15px);
    }
}

@media (max-width: 992px) {
    .tool-buttons a {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
    .tool-buttons a {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .tool-buttons a {
        width: 100%;
    }
}