/* Shared site styles (consolidated from index.html, services.html, and about.html) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2D3748;
    line-height: 1.6;
    background: #FFFFFF
}

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

/* Header */
header {
    background: #FFFFFF;
    padding: 20px 0;
    border-bottom: 2px solid #1A365D;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

nav a {
    color: #1A365D;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #C85A54;
}

nav a.active {
    color: #C85A54;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #1A365D;
    font-size: 24px;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo:hover {
    text-decoration: none;
}

.logo-mark {
    display: flex;
    gap: 4px;
}

.logo-shape {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.shape1 {
    background: #1A365D;
}

.shape2 {
    background: #C85A54;
}

.shape3 {
    background: #5B8BA0;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1A365D;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 14px;
    color: #6B6B6B;
    margin-top: -5px;
}

.logo-text .tagline {
    font-size: 14px;
    font-weight: 550;
    color: #C85A54;
    font-style: italic;
    margin-top: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1A365D 0%, #0F2C59 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #C85A54;
    color: white;
    padding: 16px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(200, 90, 84, 0.3);
}

.cta-button:hover {
    background: #B54A44;
    box-shadow: 0 6px 8px rgba(200, 90, 84, 0.4);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #1A365D;
    margin-bottom: 15px;
}

.section-philosophy {
    text-align: center;
    font-size: 20px;
    color: #C85A54;
    font-weight: 600;
    margin-bottom: 50px;
    font-style: italic;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 35px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 2px solid #E0F2FE;
    border-left: 5px solid #C85A54;
}

.service-card h3 {
    color: #1A365D;
    font-size: 24px;
    margin-bottom: 10px;
}

.service-tagline {
    color: #C85A54;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    font-style: italic;
}

.service-description {
    color: #5B8BA0;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: #2D3748;
    font-size: 15px;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-features li:before {
    content: "✓";
    color: #5B8BA0;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: #E0F2FE;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #1A365D;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    color: #1A365D;
    font-size: 20px;
    margin-bottom: 10px;
}

.step p {
    color: #5B8BA0;
}


/* About Section (shared defaults) */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    color: #6B6B6B;
    margin-bottom: 20px;
}


/* Contact Section */
.contact {
    padding: 80px 0;
    background: #FEF3E2;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1A365D;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #5B8BA0;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

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

.submit-button {
    background: #1A365D;
    color: white;
    padding: 14px 50px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #1B4965;
}

/* Contact bio: use CSS Grid so photo can resize and stack cleanly */
.about .contact-bio {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    align-items: start;
    max-width: 900px;
    margin: 20px auto 0;
    text-align: left;
}

.contact-bio-photo {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFFFFF;
    box-shadow: 0 6px 14px #5B8BA0;
    justify-self: start;
}

.contact-bio-text p {
    color: #6B6B6B;
    font-size: 18px;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

/* Learn more link styling */
.contact-bio-text .learn-more-link {
    display: inline-block;
    margin-top: 6px;
    color: #5B8BA0;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 900px) {
    .about .contact-bio {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        align-items: start;
        text-align: left;
    }

    .contact-bio-photo {
        justify-self: center;
        max-width: 220px;
        width: 50%;
    }

    .contact-bio-text {
        width: 100%;
    }

    .contact-bio-text p {
        text-align: left;
    }
}

/* Footer */
footer {
    background: #1A365D;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    opacity: 0.9;
}

/* Page Container (used in SPA variant) */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Services Page Specific Styles */
.services-page {
    padding: 60px 0;
    background: white;
}

.services-page .intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.services-page .intro p {
    font-size: 18px;
    color: #6B6B6B;
    line-height: 1.8;
}

.service-detail {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 40px;
    background: #FFFFFF;
    border-radius: 8px;
    border-left: 4px solid #C85A54;
}

.service-detail h3 {
    color: #1A365D;
    font-size: 28px;
    margin-bottom: 10px;
}

.service-detail .tagline {
    color: #C85A54;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    font-style: italic;
}

.service-detail .description {
    color: #6B6B6B;
    font-size: 17px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-detail h4 {
    color: #1A365D;
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.service-detail ul {
    list-style: none;
    padding: 0;
}

.service-detail ul li {
    color: #404040;
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.service-detail ul li:before {
    content: "✓";
    color: #5B8BA0;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* Responsive adjustments (mobile) */
.hero h2 {
    font-size: 32px;
}

.hero p {
    font-size: 18px;
}

.section-title {
    font-size: 28px;
}

@media (max-width: 768px) {

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }

}

/* About page specific additions */
main.about-page {
    padding: 60px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.about-main {
    background: #FFFFFF;
    padding: 30px;
}

.about-main h2 {
    color: #1A365D;
    font-size: 32px;
    margin-bottom: 12px;
}

.about-main h3 {
    color: #1A365D;
    font-size: 22px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-main h3:before {
    content: "";
    width: 4px;
    height: 24px;
    background: #C85A54;
    border-radius: 2px;
}

/* Remove decorative color bar for subheadings inside article content */
.about-main .article-content h3:before,
.article-content h3:before {
    display: none;
    content: none;
}

.about-main .intro {
    color: #C85A54;
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 18px;
}

.about-main .org-name {
    color: #5B8BA0;
    font-weight: 600;
}

.bio-photo {
    width: 200px;
    height: 200px;
    background: #DDD;
    border-radius: 50%;
    display: block;
    margin: 18px auto 12px auto;
    object-fit: cover;
    border: 4px solid #FFFFFF;
    box-shadow: 0 6px 14px #5B8BA0;
}

.bio-subtitle {
    font-size: 14px;
    color: #5B8BA0;
    font-style: italic;
    display: block;
    text-align: center;
    margin: 8px auto 16px;
}

.subsection {
    margin-bottom: 18px;
}

.subsection h3 {
    color: #1A365D;
    font-size: 20px;
    margin-bottom: 8px;
}

.subsection p {
    color: #404040;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-sidebar {
    position: relative;
}

.core-values {
    background: linear-gradient(180deg, #FFF 0%, #FFFFFF 100%);
    padding: 22px;
    border-radius: 8px;
    border: 2px solid #E0F2FE;
    box-shadow: 0 6px 14px #1A365D;

}

.core-values h4 {
    color: #1A365D;
    font-size: 18px;
    margin-bottom: 10px;
}

.core-values ul {
    list-style: none;
    padding: 0;
}

.core-values li {
    margin-bottom: 10px;
    color: #404040;
    padding-left: 20px;
    position: relative;
}

.core-values li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #C85A54;
    font-weight: 700;
}

/* Archive / articles list in sidebar */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.archive-list li {
    margin-bottom: 10px;
}

.archive-list a {
    color: #1A365D;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.archive-list a:hover {
    color: #C85A54;
    text-decoration: underline;
}

.archive .active-article {
    color: #C85A54;
}

/* Desktop: make the archive card 'hover' over the author card */
.about-sidebar {
    padding-top: 20px;
}

.core-values.archive {
    position: relative;
    transform: none;
    box-shadow: none;
    margin-bottom: 18px;
}

/* Author bio shown at article bottom */
.article-author-bio {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 3px solid #E0F2FE;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.article-author-bio .author-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.article-author-bio .bio-photo.small {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 8px 18px rgba(90, 130, 140, 0.12);
}

.article-author-bio .author-left .author-name {
    margin: 0;
    font-weight: 400;
    font-style: normal;
    color: #1A365D;
    font-size: 16px;
    line-height: 1.1;
    text-align: center;
}

.article-author-bio .author-left .author-role {
    margin: 0;
    font-style: italic;
    color: #5B8BA0;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.article-author-bio .author-right h5 {
    margin: 0 0 6px 0;
    color: #1A365D;
}

.article-author-bio .author-right p {
    margin: 0 0 8px 0;
    color: #6B6B6B;
}

@media (max-width: 900px) {
    .article-author-bio {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        align-items: center;
    }

    .article-author-bio .bio-photo.small {
        width: 120px;
        height: 120px;
    }

    .article-author-bio .author-left {
        align-items: center;
    }

    .article-author-bio .author-right {
        text-align: center;
    }
}

/* Make the left column wider on desktop so name and role sit on separate lines */
@media (min-width: 901px) {
    .article-author-bio .author-left {
        width: 200px;
        min-width: 160px;
        align-items: center;
    }
}


/* Article Header */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #E0F2FE;
}

.article-category {
    display: inline-block;
    background: #FEF3E2;
    color: #C85A54;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-header h1 {
    font-size: 42px;
    color: #1A365D;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #5B8BA0;
    font-size: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Content */
.article-content {
    margin: 0 auto 60px;
}

/* When used inside the about grid, allow article content to use full column */
.about-main .article-content {
    margin: 0 0 60px 0;
}

.about-sidebar.article-sidebar {
    padding: 18px;
}

/* Shrink author photo only for log pages (sidebar marked with .log-author) */
.log-author .bio-photo {
    width: 120px;
    height: 120px;
    max-width: 120px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Make the author bio paragraph smaller in log pages only */
.log-author p:last-of-type {
    font-size: 14px;
    line-height: 1.5;
    color: #6B6B6B;
    margin-top: 8px;
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #2D3748;
}

.article-content h2 {
    font-size: 32px;
    color: #1A365D;
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 20px;
    color: #1A365D;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-content h4 {
    font-size: 18px;
    color: #5B8BA0;
    margin-top: 5px;
    margin-bottom: 0px;
}

/* Article Callout Box */
.article-content .callout-box {
    background: #E0F2FE;
    border: 2px solid #5B8BA0;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.article-content .callout-box h4 {
    color: #1A365D;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.article-content .callout-box p {
    margin-bottom: 0;
}

/* Article Key Takeaways */
.article-content .key-takeaways {
    background: #FEF3E2;
    border-left: 5px solid #C85A54;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
}

.article-content .key-takeaways h4 {
    color: #C85A54;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.article-content .key-takeaways ul {
    margin-bottom: 0;
}

.article-content .key-takeaways ol {
    margin-bottom: 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 30px;
}

.article-content li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #2D3748;
}

.article-content blockquote {
    background: #FEF3E2;
    border-left: 5px solid #C85A54;
    padding: 25px 30px;
    margin: 30px 0;
    font-size: 20px;
    font-style: italic;
    color: #1A365D;
}

.article-content strong {
    color: #1A365D;
    font-weight: 600;
}

.article-content a {
    color: #C85A54;
    text-decoration: underline;
}

.article-content a:hover {
    color: #B54A44;
}

.article-content img {
    width: 300px;
    float: left;
    margin: 0 20px 20px 0;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }

    /* Stack sidebar above main content on narrow screens */
    .about-sidebar {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .about-main {
        grid-row: 2;
    }

    .bio-photo {
        margin: 18px 0 8px;
    }
}