/* QuickPercentCalculator.com - Master Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(180deg, #f9f7f4 0%, #f5f1e8 100%);
    min-height: 100vh;
}

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

/* Header & Navigation */
header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    color: white;
    margin-bottom: 50px;
    border-radius: 0 0 12px 12px;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header p {
    font-size: 1.2em;
    opacity: 0.95;
    font-style: italic;
}

.meta {
    color: #ccc;
    font-size: 0.95em;
    margin-top: 15px;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px;
    background: #f9f7f4;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #e8e4dc;
}

nav a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

nav a:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* Main Content */
.content {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    line-height: 1.9;
}

h2 {
    font-size: 1.9em;
    color: #2c5282;
    margin-top: 45px;
    margin-bottom: 25px;
    border-left: 5px solid #2c5282;
    padding-left: 20px;
    font-weight: 700;
}

h3 {
    font-size: 1.35em;
    color: #555;
    margin-top: 30px;
    margin-bottom: 18px;
    font-weight: 600;
}

p {
    margin-bottom: 22px;
    line-height: 1.95;
    color: #444;
    text-align: justify;
}

ul, ol {
    margin-left: 40px;
    margin-bottom: 25px;
    line-height: 2;
}

li {
    margin-bottom: 12px;
    color: #444;
}

/* Highlight boxes */
.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    padding: 25px 30px;
    border-left: 5px solid #2c5282;
    border-radius: 4px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.1);
}

.highlight h3 {
    margin-top: 0;
    color: #2c5282;
}

.highlight p {
    margin-bottom: 0;
    font-size: 0.98em;
}

/* Blog Grid (Home Page) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.article-card {
    background: white;
    padding: 35px;
    border-radius: 8px;
    border: 1px solid #e8e4dc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(44, 82, 130, 0.15);
    border-color: #2c5282;
}

.article-card h3 {
    color: #2c5282;
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.article-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
    flex-grow: 1;
    text-align: left;
}

.article-card a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.article-card a:hover {
    background: #dbeafe;
    color: #1a365d;
    text-decoration: none;
}

/* Section headers */
.section {
    margin-bottom: 70px;
}

.section h2 {
    text-align: center;
    border: none;
    border-bottom: 2px solid #2c5282;
    padding-bottom: 20px;
    margin-bottom: 40px;
    display: inline-block;
    width: 100%;
}

/* Info Box */
.info-box {
    background: #f9f7f4;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 50px 0;
    border: 1px solid #e8e4dc;
}

.info-box h2 {
    border: none;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.info-box p {
    font-size: 1.05em;
    margin-bottom: 15px;
    text-align: center;
}

/* Footer */
footer {
    background: #333;
    color: #eee;
    padding: 50px 20px;
    text-align: center;
    margin-top: 70px;
    border-top: 4px solid #2c5282;
}

footer p {
    margin: 12px 0;
    color: #ccc;
    text-align: center;
    font-size: 0.95em;
}

footer a {
    color: #4da6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #b3d9ff;
    text-decoration: underline;
}

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

    header p {
        font-size: 1em;
    }

    .content {
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.5em;
        padding-left: 15px;
    }

    h3 {
        font-size: 1.15em;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card {
        padding: 25px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav a {
        display: block;
        padding: 10px;
        background: white;
        border-radius: 4px;
        border: 1px solid #e8e4dc;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .content {
        box-shadow: none;
        padding: 0;
    }

    nav {
        display: none;
    }

    footer {
        page-break-before: always;
    }
}
