/* General Body and Layout */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #eef2f7; /* Light gray-blue background */
    color: #0f0e0f;
}

main {
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

section {
    background: #fff;
    padding: 2rem 3rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Header and Navigation */
header {
    background: #0d61b5; /* Dark blue header */
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
}

nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

nav ul li {
    margin: 0 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db; /* Blue on hover */
}

/* Headings */
h2, h3 {
    color: #34495e; /* Darker heading color */
    border-bottom: 2px solid #ecf0f1; /* Lighter border */
    padding-bottom: 0.75rem;
    font-weight: 500;
}

/* Calculator Section */
.calculator-container {
    padding: 2rem;
    background: #f9fbfd; /* Very light background */
    border-radius: 10px;
    border: 1px solid #e0e6ed;
}

form label {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

form input[type="number"], form input[type="date"] {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

form button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 1.5rem;
    transition: background-color 0.3s;
}

form button:hover {
    background: #2980b9;
}

#result {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    background-color: #ecf0f1;
    border-radius: 8px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* For rounded corners */
}

table thead {
    background-color: #34495e;
    color: #fff;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Button with Backlink */
.button {
    display: inline-block;
    background-color: #2ecc71; /* Green button */
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #27ae60;
}

/* Article and Image */
article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

figure {
    margin: 0;
}

figcaption {
    text-align: center;
    font-style: italic;
    color: #777;
    margin-top: 0.5rem;
}

/* Author Profile */
.author-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #3498db;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #0d61b5;
    color: #fff;
    margin-top: 3rem;
}