﻿:root {
    --resource-primary: #0759d9;
    --resource-primary-dark: #063da0;
    --resource-primary-soft: #eef5ff;
    --resource-heading: #081936;
    --resource-text: #526078;
    --resource-muted: #8993a5;
    --resource-border: #e1e7f0;
    --resource-bg: #f7f9fc;
    --resource-surface: #ffffff;
    --resource-success: #20a651;
    --resource-warning: #ef8a17;
    --resource-danger: #dc3545;
    --resource-shadow: 0 20px 55px rgba(15, 34, 67, 0.08);
}

.resources-page {
    min-height: 100vh;
    background: var(--resource-bg);
    color: var(--resource-text);
}

.resources-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.resources-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 70px;
    background: radial-gradient(circle at top right, rgba(7, 89, 217, 0.15), transparent 32%), linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

    .resources-hero::after {
        content: "";
        position: absolute;
        right: -130px;
        bottom: -180px;
        width: 420px;
        height: 420px;
        border: 1px solid rgba(7, 89, 217, 0.08);
        border-radius: 50%;
    }

.resources-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.resources-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--resource-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.resources-hero h1 {
    margin: 0 0 18px;
    color: var(--resource-heading);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.resources-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--resource-text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.resources-section {
    padding: 70px 0;
}

.resources-section-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

    .resources-section-heading h2 {
        margin: 0 0 12px;
        color: var(--resource-heading);
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 780;
        line-height: 1.15;
        letter-spacing: -0.03em;
    }

    .resources-section-heading p {
        margin: 0;
        line-height: 1.8;
    }

.resource-card {
    border: 1px solid var(--resource-border);
    border-radius: 22px;
    background: var(--resource-surface);
    box-shadow: var(--resource-shadow);
}

.resource-card-body {
    padding: 28px;
}

.resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 17px;
    color: var(--resource-primary);
    background: var(--resource-primary-soft);
    font-size: 27px;
}

.resource-card h2,
.resource-card h3 {
    color: var(--resource-heading);
}

.resource-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 730;
}

.resource-card p {
    margin: 0;
    line-height: 1.75;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

    .resource-btn:hover {
        transform: translateY(-2px);
    }

.resource-btn-primary {
    color: #ffffff;
    background: var(--resource-primary);
}

    .resource-btn-primary:hover {
        color: #ffffff;
        background: var(--resource-primary-dark);
    }

.resource-btn-outline {
    color: var(--resource-primary);
    border-color: rgba(7, 89, 217, 0.25);
    background: #ffffff;
}

    .resource-btn-outline:hover {
        color: var(--resource-primary-dark);
        border-color: var(--resource-primary);
        background: var(--resource-primary-soft);
    }

.resource-search {
    display: flex;
    align-items: center;
    max-width: 680px;
    margin: 28px auto 0;
    padding: 8px;
    border: 1px solid var(--resource-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 34, 67, 0.08);
}

    .resource-search i {
        margin-left: 12px;
        color: var(--resource-muted);
        font-size: 20px;
    }

    .resource-search input {
        flex: 1;
        min-width: 0;
        padding: 10px 14px;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--resource-heading);
    }

    .resource-search button {
        min-height: 42px;
        padding: 0 18px;
        border: 0;
        border-radius: 11px;
        color: #ffffff;
        background: var(--resource-primary);
        font-weight: 700;
    }

.resources-cta {
    padding: 20px 0 90px;
}

.resources-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 38px 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0759d9, #073b91);
    color: #ffffff;
}

    .resources-cta-card h2 {
        margin: 0 0 10px;
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        font-weight: 780;
    }

    .resources-cta-card p {
        max-width: 650px;
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
        line-height: 1.75;
    }

    .resources-cta-card .resource-btn {
        flex: 0 0 auto;
        color: var(--resource-heading);
        background: #ffffff;
    }

/* Clock-in help */

.help-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.help-step-card {
    overflow: hidden;
}

.help-step-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #eef3fa;
}

    .help-step-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.help-step-number {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--resource-primary);
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(7, 89, 217, 0.25);
}

.help-step-content {
    padding: 23px;
}

    .help-step-content h3 {
        margin-bottom: 9px;
    }

.help-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid #f0d4a8;
    border-radius: 16px;
    background: #fff8eb;
}

    .help-alert i {
        color: var(--resource-warning);
        font-size: 24px;
    }

/* Documentation */

.docs-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    padding: 20px;
}

    .docs-sidebar h3 {
        margin: 0 0 14px;
        font-size: 1rem;
    }

.docs-nav {
    display: grid;
    gap: 6px;
}

    .docs-nav a {
        padding: 11px 12px;
        border-radius: 9px;
        color: var(--resource-text);
        text-decoration: none;
    }

        .docs-nav a:hover,
        .docs-nav a.active {
            color: var(--resource-primary);
            background: var(--resource-primary-soft);
        }

.docs-content {
    display: grid;
    gap: 22px;
}

.docs-article {
    padding: 30px;
}

    .docs-article h2 {
        margin: 0 0 14px;
        font-size: 1.7rem;
    }

.docs-list {
    margin: 16px 0 0;
    padding-left: 20px;
}

    .docs-list li {
        margin-bottom: 9px;
        line-height: 1.7;
    }

/* Blog */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 55px rgba(15, 34, 67, 0.12);
    }

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eaf1fb;
}

    .blog-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--resource-muted);
    font-size: 13px;
}

.blog-tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--resource-primary);
    background: var(--resource-primary-soft);
    font-weight: 700;
}

.blog-card h3 {
    margin-bottom: 10px;
    font-size: 1.28rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--resource-primary);
    font-weight: 700;
    text-decoration: none;
}

/* Changelog */

.changelog-list {
    display: grid;
    gap: 26px;
    max-width: 900px;
    margin: 0 auto;
}

.changelog-entry {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 26px;
}

.changelog-date {
    color: var(--resource-muted);
    font-size: 14px;
    text-align: right;
}

.changelog-content {
    position: relative;
    padding: 28px;
}

.changelog-version {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--resource-primary);
    background: var(--resource-primary-soft);
    font-size: 13px;
    font-weight: 750;
}

.changelog-content h2 {
    margin: 0 0 16px;
    font-size: 1.55rem;
}

.changelog-items {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .changelog-items li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        line-height: 1.65;
    }

    .changelog-items i {
        margin-top: 3px;
        color: var(--resource-success);
    }

/* Contact support */

.support-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.support-info {
    padding: 30px;
}

.support-info-list {
    display: grid;
    gap: 18px;
    margin-top: 25px;
}

.support-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .support-info-item i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border-radius: 13px;
        color: var(--resource-primary);
        background: var(--resource-primary-soft);
    }

.support-form {
    padding: 30px;
}

.support-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.support-field {
    display: grid;
    gap: 7px;
}

.support-field-full {
    grid-column: 1 / -1;
}

.support-field label {
    color: var(--resource-heading);
    font-size: 13px;
    font-weight: 700;
}

.support-field input,
.support-field select,
.support-field textarea {
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid var(--resource-border);
    border-radius: 11px;
    outline: 0;
    background: #ffffff;
    color: var(--resource-heading);
}

.support-field textarea {
    min-height: 150px;
    resize: vertical;
}

    .support-field input:focus,
    .support-field select:focus,
    .support-field textarea:focus {
        border-color: var(--resource-primary);
        box-shadow: 0 0 0 4px rgba(7, 89, 217, 0.09);
    }

@media (max-width: 991px) {
    .help-steps-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-layout,
    .support-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }

    .resources-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .resources-container {
        width: min(100% - 28px, 1180px);
    }

    .resources-hero {
        padding: 70px 0 55px;
    }

    .resources-section {
        padding: 55px 0;
    }

    .help-steps-grid,
    .blog-grid,
    .support-form-grid {
        grid-template-columns: 1fr;
    }

    .changelog-entry {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .changelog-date {
        text-align: left;
    }

    .resources-cta-card {
        padding: 30px 24px;
    }
}
