/* Global */
:root {
    --intro-color: #1c581a;
    --date-color: #c02932;
    --meta-color: #082351;
    --h2-color: #16823f;
    --h3-color:#c02932;
    --h-f:#d0e0f7;
    --link:#383fd1;
    --hover:#bb404b;
    --list:#d3476f;
}
body {
    font-family: 'Lato', sans-serif;
    font-size:19px;
    margin: 0;
    background-color: #f7f7f7;
    color: #000000;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Epilogue', sans-serif;
}
h1 {
    font-size: 2em;
    text-align: center;
}
h2 {
    font-size: 1.5em;
    color: var(--h2-color);
}
p {
    line-height: 1.6;
}
a {
    text-decoration: none;
    color:var(--link);
}
a:hover {
    text-decoration: underline;
    color:var(--hover);
}
/* Header */
header {
    text-align: center;
    background-color: var(--h-f);
    padding: 17px 0;
    margin-bottom: 3px;
    top: 0;
}
h1.site-title, a.site-title {
    margin: 0;
    font-size: 1.9em;
    font-weight: bold;
    border-bottom: none;
    color: rgb(19, 104, 63);
}
header a.site-title {
    text-decoration: none;
}
header a.site-title:hover {
    color: red;
}
/* Footer */
footer {
    text-align: center;
    background-color: var(--h-f);
    padding: 3px;
    margin-top: 20px;
}
.footer-buttons {
    max-width: 700px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 20px auto;
}
.footer-button {
    margin: 7px;
    padding: 10px 20px;
    background-color: var(--h2-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    flex: 1 0 auto;
}
.footer-button:hover {
    background-color: #000;
    text-decoration: none;
    color: #FFFFFF;
}
/* Main Container */
.container {
    max-width: 871px;
    margin: 20px auto;
    padding: 17px;
}
/* Site Description */
.site-description {
    background: #000000;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.7;
 }
.site-description p {
    margin: 0;
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 17px;
}
@media (max-width: 768px) {
    .site-description {
        margin: 10px;
    }
}
/* Tools Section */
.tools-section {
    background-color: #e9ecef; /* Light grey background */
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 13px;
}
.tools-section h2 {
    text-align: center;
}
.tool-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}
.tool-cards .tool-card {
    flex-basis: calc(33.333% - 20px); /* Three cards per row, minus gap */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
    background: #fff;
}
.tool-cards .tool-card a {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the link fill the entire container */
}
.tool-cards .tool-card img {
    width: 100%;
    display: block;
    margin-bottom: 17px;
}
.tool-cards .tool-card h3 {
    padding: 10px;
    background-color: #f5f5f5;
    margin: 0;
    text-decoration: none;
}
.tool-cards .tool-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Subtle hover effect */
}
@media (max-width: 768px) {
    .tool-cards .tool-card {
        flex-basis: 100%; /* One card per row on mobile */
    }
}
/* Buttons Container */
.button-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between; /* Distribute space evenly between buttons */
    flex-wrap: wrap; /* Allows for wrapping on smaller screens */
}
.button {
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1em;
    flex-grow: 1; /* Allows the button to grow and occupy the available space */
    margin: 10px; /* Adds space between buttons */
    text-align: center;
    box-sizing: border-box; /* Makes sure padding and border are included in the width */
}
/* Colors for individual buttons */
.home { background-color: #205389; }
.about-us { background-color: #227f38; }
.contact { background-color: #93074b; }

.button:hover {
    background-color: #000000; /* Buttons turn black on hover */
}
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }
    .button {
        width: calc(100% - 20px); /* Adjusts the width to account for margin */
        margin: 10px auto; /* Center buttons */
        flex-grow: 0; /* Prevents the button from growing on mobile */
    }
}
/* Page */
.page h1 {
    font-size: 1.9em;
    color: #333;
    margin-bottom: 1em;
    border-bottom: 1px solid #d7d7d7;
}
.page .page-intro {
    font-size: 1.2em;
    margin-bottom: 1em;
    color: var(--intro-color);
    text-align: justify;
}
.page p {
    line-height: 1.7;
}
.page ul,
.page ol {
    padding-left: 20px;
    list-style-position: inside;
}
.page li {
    margin-bottom: 0.5em;
}
/* Latest Posts */
.latest-posts {
    background-color: rgb(240, 246, 245);
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 13px;
}
.latest-posts h2 {
    text-align: center; /* Centers the text */
    border-bottom: 2px dotted #333; /* Adds a dotted border bottom with a color */
    padding-bottom: 10px; /* Adds space between the text and the border */
    margin: 0 auto 20px; /* Sets top margin to 0, horizontal margins to auto, and bottom margin to 20px */
    display: block; /* Ensures the element is treated as a block-level element */
    width: fit-content; /* Ensures the width is only as wide as the content */
}
.cards-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.cards-container .card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 10px;
    flex-grow: 0; /* Prevents the card from growing */
    flex-shrink: 0; /* Prevents the card from shrinking */
    flex-basis: calc(33.333% - 20px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cards-container .card-link {
    text-decoration: none; /* Removes underline from links */
    color: inherit; /* The link will inherit the color from the parent element */
    display: block; /* Makes the link fill the entire container */
}
.cards-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.cards-container .card img {
    width: 100%;
    height: 137px;
    display: block;
    object-fit: cover;
}
.cards-container .card-content {
    padding: 15px;
    text-align: left;
}
.cards-container .card-date {
    font-family: 'JetBrains Mono', monospace;
    color: var(--date-color);
    font-size: 0.8em;
    margin-bottom: 5px;
}
.cards-container .card-title {
    color: #333;
    font-size: 1em;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .cards-container {
        margin: 0;
    }
    .cards-container .card {
        flex-basis: 100%;
        flex-grow: 0;
        margin: 10px 0;
    }
}
/* Posts Section */
.post-section {
    padding: 3px;
}
.post-section h1 {
    font-size: 1.9em;
    margin-bottom: 10px;
    text-align: left;
}
.post-section h2 {
    font-size: 1.5em;
    color: var(--h2-color);
}
.post-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--intro-color);
    text-align: justify;
}
.post-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--meta-color);
    margin-bottom: 20px;
    font-style: italic;
}
.post-content {
    line-height: 1.8;
    padding: 20px;
    border-top: 1px solid #000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    font-size:1.1em;
}
.post-content ol {
    counter-reset: list-counter; /* Reset the counter */
    list-style-type: none; /* Remove default list styling */
    padding-left: 3px; /* Remove default padding */
}
.post-content ol li {
    counter-increment: list-counter; /* Increment the counter */
    margin-bottom: 33px; /* Space between list items */
    position: relative; /* Required for absolute positioning of the pseudo-element */
    padding-left: 43px; /* Space for the circle and number */
}
.post-content ol li:before {
    content: counter(list-counter); /* Display the counter */
    position: absolute;
    left: 0;
    top:1%;
    transform: translateY(-3%); /* Shift upward by half its height */
    width: 33px; /* Width of the circle */
    height: 33px; /* Height of the circle */
    line-height: 33px; /* Center the number vertically */
    text-align: center; /* Center the number horizontally */
    background-color: var(--list); /* Circle color */
    color: white; /* Number color */
    border-radius: 50%; /* Make it a circle */
    font-size: 1em; /* Adjust the font size */
}
.note {
    background-color: #f0f9ff; /* Light blue background for visibility */
    border-left: 5px solid #007bff; /* Blue left border for emphasis */
    padding: 15px; /* Padding for space inside the box */
    margin: 20px 0; /* Margin for space around the box */
    font-style: italic; /* Italic font for differentiation */
    position: relative; /* Needed for absolute positioning of pseudo-elements */
}
.post-content a {
    border-bottom: 3px solid lightblue; /* Sets a light blue 2px bottom border for links */
    text-decoration: none; /* Optional: removes the default underline of links */
}
.post-content a:hover {
    border-bottom: 3px solid darkblue; /* Changes the bottom border to dark blue on hover */
}
/* Rate This Guide */
.rate-guide-section {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.rate-buttons button {
    background-color: #dddddd;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 17px;
}
.rate-buttons button:hover {
    background-color: #cccccc;
}

/* Author */
.author-box {
    background-color: rgb(189, 228, 199); /* Slightly different background to stand out */
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
    text-align: center;
}
.author-box h3 {
    margin-bottom: 15px;
    color: #333;
}
.author-photo {
    width: 148px; /* Adjust size as needed */
    height: 148px; /* Adjust size as needed */
    border-radius: 50%; /* Circular photo */
    margin-bottom: 15px;
}
.author-name {
    font-weight: bold;
    color: #007bff; /* Theme color for name */
    margin-bottom: 5px;
}
.author-description {
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Comments Form */
.comment-form-container {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.comment-form-container h2 {
    margin-bottom: 20px;
}
.comment-form-container p {
    color: #93074b;
    font-size:1.3em;
    text-align: center;
    font-weight: bold;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 97%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-group button[type="submit"] {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.form-group button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Comments Section */
.comments-section {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.comments-section h2 {
    margin-bottom: 20px;
}
.comments-list {
    list-style-type: none;
    padding: 0;
}
.comment {
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
}
.comment:last-child {
    border-bottom: none;
}
.comment .comment-author {
    font-weight: bold;
    font-size: 1em;
}
.comment .comment-text {
    margin-top: 5px;
    font-size: 0.9em;
}
.replies {
    margin-top: 10px;
    list-style-type: none;
    padding-left: 20px;
}
.author-reply {
    background-color: #e2e2e2;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}
.author-reply .comment-author {
    font-weight: bold;
    color: #d23600; /* Different color to make the author's reply stand out */
}
.author-reply:before {
    content: '';
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right:10px solid #e2e2e2; /* Triangle shape to indicate reply */
    position: absolute;
    left: -10px;
    top: 10px;
}
/* Select Category Cards (Home) */
.category-section {
    background-color: #f7f7f7;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 13px;
}
.category-section h2 {
    text-align: center;
    margin-bottom: 27px;
    font-size: 1.7em;
    color: #0d9d32;
}
.category-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}
.category-cards .category-card {
    flex-basis: calc(33.333% - 20px); /* Three cards per row, minus gap */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: #fff;
}
.category-cards .category-card a {
    text-decoration: none;
    color: inherit;
}
.category-cards .category-card img {
    width: 100%;
    display: block;
    margin-bottom: 17px;
}
.category-cards .category-card h3 {
    padding: 10px;
    background-color: #f5f5f5;
    margin: 0;
    text-decoration: none;
}
.category-cards .category-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}
@media (max-width: 768px) {
    .category-cards .category-card {
        flex-basis: 100%;
    }
}
.category-description {
    font-size: 1.3em;
    color: #000; /* or any color that matches your design */
    margin-bottom: 20px; /* to provide some space between the description and the articles list */
    max-width: 100%; /* or any width that matches your design */
    color: #0056b3;
}
.page-404 {
    text-align: center;
    padding: 50px 20px;
    border-radius: 10px;
    margin-top: 50px;
}

.page-404 h1 {
    color: #c02932;
    margin-bottom: 20px;
}

.page-404 p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 30px;
}

.page-404 .button {
    font-size: 1.1em;
    background-color: #205389;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 5px;
    text-decoration: none;
}
