/* General Body & Typography */
body {
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #00246B;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    border-bottom: 2px solid #CADCFC;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

a {
    color: #00246B;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #CADCFC;
}

/* Navbar */
.navbar {
    background-color: #00246B;
    color: #FFF;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFF;
}

.navbar nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.navbar nav ul li {
    margin-left: 20px;
}

.navbar nav a {
    color: #FFF;
    font-weight: bold;
}

.navbar nav a:hover {
    color: #CADCFC;
}

/* Main Content & Cards */
main {
    padding: 2rem 0;
}

.card {
    background-color: #FFF;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Calculator */
.calculator-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

#startDate {
    border: 1px solid #CADCFC;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Helvetica', sans-serif;
    font-size: 1rem;
}

.calculator-result {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00246B;
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #CADCFC;
}

/* Article & Content Styling */
article header {
    margin-bottom: 2rem;
}

.highlight {
    background-color: #CADCFC;
    color: #00246B;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid #00246B;
    border-radius: 5px;
    font-style: italic;
    font-size: 1.1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table th, table td {
    border: 1px solid #e1e8ed;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #00246B;
    color: #FFF;
}

table caption {
    caption-side: bottom;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
}

tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

article footer ul {
    list-style: none;
    padding: 0;
}

article footer li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Related Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.articles-grid .card {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.articles-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

/* Footer */
.site-footer {
    background-color: #00246B;
    color: #CADCFC;
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #CADCFC;
    text-decoration: underline;
}

/* GDPR Notice */
.gdpr-notice {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 36, 107, 0.9);
    color: #FFF;
    padding: 15px;
    border-radius: 5px;
    z-index: 2000;
    display: none;
}

.gdpr-notice p {
    margin: 0;
    font-size: 0.9rem;
}

#gdpr-accept {
    background-color: #CADCFC;
    color: #00246B;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 3px;
    cursor: pointer;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00246B;
    color: #FFF;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }

    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .calculator-input {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar nav ul li {
        margin: 5px 10px;
    }
}