/* Shared styles for the Aligned Education Consulting blog.
   Mirrors the brand styling used on the homepage (purple #4B1979 / gold #F3C851).
   To add a new post: copy an existing post file in this folder, update the
   content, then add a matching card to blog/index.html and a <url> to sitemap.xml. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
}

a {
    color: #4B1979;
}

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

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #4B1979;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4B1979;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.25rem;
    }
}

/* Page header */
.blog-header {
    background: linear-gradient(135deg, #4B1979 0%, #6B2C9E 100%);
    padding: 9rem 20px 4rem;
    margin-top: 64px;
    text-align: center;
    color: white;
}

.blog-header .eyebrow {
    display: inline-block;
    background: rgba(243,200,81,0.18);
    color: #F3C851;
    padding: 0.25rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.blog-header h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.25;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.blog-header p.lead {
    font-size: 1.125rem;
    color: #E8E3F0;
    max-width: 720px;
    margin: 1.25rem auto 0;
}

.blog-header .meta {
    margin-top: 1.5rem;
    color: #D8CCEC;
    font-size: 0.95rem;
}

/* Article index cards */
.posts {
    padding: 4rem 20px;
    background: #f9fafb;
    min-height: 40vh;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.post-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #F3C851;
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}

/* Thumbnail at the top of an index card — fills edge to edge */
.post-card-image {
    display: block;
    margin: -2rem -2rem 1.5rem;
}

.post-card-image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.post-card h2 {
    font-size: 1.35rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card h2 a {
    color: inherit;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #4B1979;
}

.post-card p.excerpt {
    color: #475569;
    margin-bottom: 1.5rem;
}

.post-card .read-more {
    margin-top: auto;
    font-weight: 600;
    color: #4B1979;
    text-decoration: none;
}

.post-card .read-more:hover {
    text-decoration: underline;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #F0EDF7;
    color: #4B1979;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Single post body */
.article {
    padding: 3.5rem 20px 4rem;
}

/* Featured image at the top of an article */
.article-figure {
    max-width: 840px;
    margin: 0 auto 2.5rem;
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.article-figure figcaption {
    margin-top: 0.75rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
    color: #334155;
    font-size: 1.12rem;
    line-height: 1.85;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul {
    margin: 0 0 1.5rem 1.25rem;
    padding: 0;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body .pull-quote {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4B1979;
    border-left: 4px solid #F3C851;
    padding-left: 1.25rem;
    margin: 2rem 0;
    line-height: 1.4;
}

.article-footer {
    max-width: 720px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.back-link {
    display: inline-block;
    font-weight: 600;
    color: #4B1979;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 2rem 20px;
    text-align: center;
}

footer p {
    color: #9ca3af;
    font-size: 0.875rem;
}
