/* CSS Reset */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

/* Body Styling */
body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   line-height: 1.6;
   color: #333;
   background-color: #f4f4f9;
   padding: 20px;
   max-width: 900px;
   margin: 0 auto;
   background-image: url('/assets/img/svg/bgd_article.svg');
   background-size: cover;
   background-attachment: fixed;
   background-repeat: no-repeat;
}
footer {
   margin: 0 auto;
   width: 60%;
   border-top: 1.5px solid #2a8d2aab;
   padding: 20px 0;
   margin-top: 40px;
   text-align: center;
   color: #777;
   font-size: 14px;
}
.navigation {
   display: flex;
   justify-content: space-between;
   margin-bottom: 20px;
   padding: 10px 0;
}

.nav-link {
   text-decoration: none;
   font-size: 18px;
   color: #007BFF;
   transition: color 0.3s ease;
}

.nav-link:hover {
   color: #0056b3;
}

.nav-link.next {
   text-align: right;
}

/* Headings */
h1 {
   font-size: 2.5em;
   color: #4A5568;
   margin-bottom: 20px;
   border-bottom: 2px solid #E2E8F0;
   padding-bottom: 10px;
}

h2 {
   font-size: 2em;
   color: #2D3748;
   margin-top: 40px;
   margin-bottom: 15px;
}

h3 {
   font-size: 1.5em;
   color: #4A5568;
   margin-top: 30px;
   margin-bottom: 10px;
}

/* Paragraph Styling */
p {
   font-size: 1.125em;
   margin-bottom: 20px;
   color: #2D3748;
   line-height: 1.8;
}

/* Image Styling */
img {
   margin: 0 auto;
   width: 350px;
   max-width: 100%;
   height: auto;
   border-radius: 8px;
   margin-bottom: 30px;
   display: block;
}

/* Links Styling */
a {
   color: #3182CE;
   text-decoration: none;
   border-bottom: 1px solid #3182CE;
   transition: all 0.3s ease;
}

a:hover {
   color: #2B6CB0;
   border-bottom: 1px solid transparent;
}

/* Article Container */
article {
   background: #ffffff;
   padding: 30px;
   border-radius: 12px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   margin-bottom: 40px;
}

/* Spacing for Elements */
h1 + img {
   margin-top: 20px;
}

h2 + h3 {
   margin-top: 20px;
}

h3 + p {
   margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
   body {
       padding: 15px;
   }

   h1 {
       font-size: 2em;
   }

   h2 {
       font-size: 1.75em;
   }

   h3 {
       font-size: 1.25em;
   }

   p {
       font-size: 1em;
   }
}

.btn-redirection {
   font-size: 20px;
   margin-bottom: 15px;
}

#back-to-top {
   position: fixed;
   bottom: 20px;
   right: 20px;
   display: none;
   background-color: #ffaa00;
   color: #fff;
   border: none;
   border-radius: 50%;
   padding: 10px 15px;
   cursor: pointer;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
   z-index: 1000;
   font-size: 1.5rem;
   transition: background-color 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
   background-color: #ff8c00;
   transform: scale(1.2);
}

#back-to-top:active {
   transform: scale(1.1);
}
