/* ==========================================================================
   RESOURCE PAGE STYLES
   Shared by blog, about, and careers pages.
   ========================================================================== */

.resource-hero {
    padding-top: calc(var(--m-nav-height) + 80px);
}

/* ==========================================================================
   BLOG
   ========================================================================== */

/* Filter bar */
.blog-filters {
    padding: 0 0 20px;
}

.blog-filter-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.blog-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--m-text);
    text-decoration: none;
    border: 1px solid var(--m-border);
    transition: all 0.15s ease;
}

.blog-filter-btn:hover {
    border-color: var(--m-navy);
    color: var(--m-navy);
}

.blog-filter-btn.active {
    background: var(--m-navy);
    color: var(--m-white);
    border-color: var(--m-navy);
}

/* Post grid */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--m-border);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    overflow: hidden;
}

.blog-card {
    display: block;
    padding: 32px;
    background: var(--m-white);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.blog-card:hover {
    background: var(--m-off-white);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.blog-card-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--m-teal);
    text-decoration: none;
}

.blog-card-date {
    font-size: 13px;
    color: var(--m-text-light);
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--m-navy);
    line-height: 1.3;
    margin-bottom: 8px;
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--m-text);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--m-teal);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--m-text-light);
    font-size: 15px;
}

/* Blog post detail */
.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-post-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--m-text);
}

.blog-post-body p {
    margin-bottom: 24px;
}

.blog-post-body p:last-child {
    margin-bottom: 0;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--m-teal);
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-back-link:hover {
    color: var(--m-navy);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-container {
    max-width: 900px;
}

.about-section {
    margin-bottom: 0;
}

.about-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--m-navy);
    margin-bottom: 20px;
}

.about-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--m-text);
    margin-bottom: 16px;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Card grid (used by about + careers) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    padding: 28px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-white);
}

.about-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--m-off-white);
    color: var(--m-teal);
    margin-bottom: 16px;
}

.about-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--m-navy);
    margin-bottom: 8px;
}

.about-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--m-text);
}

/* Values */
.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.about-value-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--m-navy);
    margin-bottom: 6px;
}

.about-value-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--m-text);
}

/* ==========================================================================
   CAREERS
   ========================================================================== */

/* Tighten spacing between hero and perks */
.careers-hero {
    padding-bottom: 60px;
}

/* 3-column perks layout: heading in 1/3, perks in 2/3 and 3/3 */
.careers-perks-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.careers-perks-aside {
    display: flex;
}

.careers-perks-heading {
    font-size: 58px;
    font-weight: 700;
    color: var(--m-navy);
    line-height: 1.25;
    text-align: left;
}

.careers-perks-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Bullet mark on each perk */
.careers-perk {
    position: relative;
    padding-left: 16px;
}

.careers-perk::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 3px;
    height: 16px;
    background: var(--m-teal);
    border-radius: 1px;
}

.careers-perk strong {
    display: block;
    font-size: 15px;
    font-weight: 650;
    color: var(--m-navy);
    margin-bottom: 4px;
}

.careers-perk span {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: var(--m-text);
}

.careers-positions-section {
    margin-top: 60px;
}

/* Positions list */
.careers-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--m-border);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    overflow: hidden;
}

.careers-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: var(--m-white);
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.careers-item:hover {
    background: var(--m-off-white);
}

.careers-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--m-navy);
    margin-bottom: 4px;
}

.careers-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--m-text-light);
}

.careers-item-meta span:not(:last-child)::after {
    content: "\00b7";
    margin-left: 16px;
}

.careers-item-arrow {
    flex-shrink: 0;
    color: var(--m-text-light);
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.careers-item:hover .careers-item-arrow {
    color: var(--m-teal);
    transform: translateX(3px);
}

.careers-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--m-text);
    font-size: 15px;
}

/* ==========================================================================
   JOB POSTING MODAL
   ========================================================================== */

.job-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 37, 64, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.job-modal {
    position: relative;
    background: var(--m-white);
    border-radius: var(--m-radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

.job-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--m-text-light);
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.job-modal-close:hover {
    background: var(--m-off-white);
    color: var(--m-navy);
}

.job-modal-header {
    padding: 40px 40px 0;
}

.job-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--m-navy);
    line-height: 1.25;
    margin-bottom: 16px;
    padding-right: 40px;
}

.job-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-modal-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--m-text);
    background: var(--m-off-white);
    border: 1px solid var(--m-border);
}

.job-modal-body {
    padding: 28px 40px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--m-text);
}

.job-modal-body h1,
.job-modal-body h2,
.job-modal-body h3 {
    color: var(--m-navy);
    margin: 24px 0 8px;
    line-height: 1.3;
}

.job-modal-body h1 {
    font-size: 20px;
}
.job-modal-body h2 {
    font-size: 18px;
}
.job-modal-body h3 {
    font-size: 16px;
}

.job-modal-body h1:first-child,
.job-modal-body h2:first-child,
.job-modal-body h3:first-child {
    margin-top: 0;
}

.job-modal-body p {
    margin-bottom: 16px;
}

.job-modal-body p:last-child {
    margin-bottom: 0;
}

.job-modal-body ul,
.job-modal-body ol {
    margin: 0 0 16px 20px;
}

.job-modal-body li {
    margin-bottom: 6px;
}

.job-modal-body strong {
    color: var(--m-navy);
    font-weight: 600;
}

.job-modal-footer {
    padding: 0 40px 40px;
    display: flex;
    gap: 12px;
}

/* Transitions */
.job-modal-enter {
    transition: opacity 0.2s ease;
}
.job-modal-enter-start {
    opacity: 0;
}
.job-modal-enter-end {
    opacity: 1;
}
.job-modal-leave {
    transition: opacity 0.15s ease;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .resource-hero {
        padding-top: calc(var(--m-nav-height) + 48px);
    }

    .blog-filter-bar {
        flex-wrap: wrap;
    }

    .blog-card {
        padding: 24px;
    }

    .blog-card-title {
        font-size: 18px;
    }

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

    .about-values {
        grid-template-columns: 1fr;
    }

    .careers-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .careers-item-arrow {
        align-self: flex-end;
    }

    .careers-perks-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .careers-perks-aside {
        justify-content: flex-start;
    }

    .careers-perks-heading {
        text-align: left;
    }

    .job-modal-backdrop {
        padding: 20px 12px;
    }

    .job-modal-header {
        padding: 28px 24px 0;
    }

    .job-modal-body {
        padding: 20px 24px;
    }

    .job-modal-footer {
        padding: 0 24px 28px;
    }

    .job-modal-title {
        font-size: 22px;
    }
}
