/* variables */
:root {
    --primary-blue: #0A3D73;    /* Government style dark blue */
    --secondary-blue: #1C5D9F;  /* Lighter blue */
    --primary-green: #2E8B57;   /* Sea green */
    --secondary-green: #3CB371; /* Medium sea green */
    --background: #F4F7F6;
    --text-dark: #333333;
    --text-light: #555555;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: right;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cards & Components */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-green);
}

/* Forms & Calculators */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10, 61, 115, 0.1);
}

.result-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e6f4ea;
    border-left: 4px solid var(--primary-green);
    border-radius: 4px;
    display: none;
}

/* Sidebar */
.sidebar .widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li a {
    text-decoration: none;
    color: var(--text-dark);
}

.widget ul li a:hover {
    color: var(--primary-blue);
}

/* Content Area */
.content-area h1 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.content-area h2 {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin: 1.5rem 0 1rem 0;
}

.content-area p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #e2e8f0;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Ads Placeholder */
.ad-slot {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
    }
    
    nav ul.active {
        display: flex;
    }
}
