/* Shared styles for content pages (about, blog, contact, legal) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    color: #333;
}

/* Top navigation */
.main-nav {
    width: 100%;
    max-width: 900px;
    margin: 20px auto 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 15px;
}

.main-nav a {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 14px 18px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    transform: translateY(-2px);
    background: #764ba2;
    color: white;
}

.main-nav a.site-logo {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 14px;
    background: white;
    display: flex;
    align-items: center;
}

.main-nav a.site-logo:hover {
    transform: translateY(-2px);
    background: white;
}

.main-nav a.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Main content card */
.page {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-header {
    background: linear-gradient(90deg, #764ba2, #667eea);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.page-body {
    padding: 40px;
    line-height: 1.7;
}

.page-body h2 {
    font-size: 1.5em;
    color: #333;
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid #764ba2;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body h3 {
    font-size: 1.15em;
    color: #444;
    margin: 20px 0 8px;
}

.page-body p {
    color: #555;
    margin-bottom: 15px;
}

.page-body ul,
.page-body ol {
    color: #555;
    margin: 0 0 15px 25px;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body a {
    color: #2196F3;
    text-decoration: none;
}

.page-body a:hover {
    text-decoration: underline;
}

.page-body .updated {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 25px;
}

/* Blog list */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.blog-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blog-card h3 {
    margin-top: 0;
}

.blog-card .date {
    color: #888;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.blog-card .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #764ba2;
    font-weight: 600;
}

/* Related articles */
.related-articles {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.related-articles h2 {
    border-bottom: none;
    margin-bottom: 15px;
}

.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.related-list li {
    margin: 0;
}

.related-list a {
    display: block;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #764ba2;
    border-radius: 0 8px 8px 0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-list a:hover {
    background: #eef0f6;
    transform: translateX(3px);
    text-decoration: none;
}

@media (max-width: 768px) {
    .related-list {
        grid-template-columns: 1fr;
    }
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #764ba2;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    align-self: flex-start;
    background: #764ba2;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #5f3a86;
}

.form-note {
    color: #4CAF50;
    font-weight: 600;
    margin-top: 10px;
    display: none;
}

.form-note.show {
    display: block;
}

/* Footer menu */
.site-footer {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-menu a {
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #764ba2;
}

.footer-sep {
    color: #ccc;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9em;
    padding: 0 15px 30px;
}

.blog-hero {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .main-nav a { min-width: 100%; }
    .main-nav a.site-logo { min-width: 100%; justify-content: center; }
    .page-body { padding: 25px; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-menu { gap: 6px; font-size: 0.85em; }
}
