.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
}

.hero-gradient {
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.nav-active {
    color: #0284c7 !important;
    font-weight: 600;
}

.nav-active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #0284c7;
    border-radius: 2px;
    margin-top: 2px;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.03);
    }
}

.pulse-glow {
    animation: pulseGlow 4s infinite ease-in-out;
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 1.75rem;
    padding: 2rem 0;
}

.feature-row + .feature-row {
    border-top: 1px solid #e2e8f0;
}

.feature-row__content,
.feature-row__visual {
    min-width: 0;
}

.feature-row__eyebrow {
    color: #0369a1;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.feature-row__title {
    margin-top: 0.75rem;
    color: #0f172a;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.feature-row__description {
    margin-top: 1.25rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
}

.feature-row__link {
    margin-top: 1.5rem;
}

.feature-row__visual {
    margin: 0;
}

.feature-row__visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    border-radius: 1.5rem;
}

.feature-row__visual figcaption {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .feature-rows {
        gap: 2rem;
    }

    .feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(1.5rem, 5vw, 6rem);
        padding: clamp(2rem, 4vw, 3rem) 0;
    }

    .feature-row__content {
        grid-column: 2;
        grid-row: 1;
    }

    .feature-row__visual {
        grid-column: 1;
        grid-row: 1;
    }

    .feature-row--reverse .feature-row__content {
        grid-column: 1;
    }

    .feature-row--reverse .feature-row__visual {
        grid-column: 2;
    }
}

.editorial-page {
    --editorial-accent: #0369a1;
    --editorial-tint: #e0f2fe;
    background: #ffffff;
}

.editorial-page--home {
    --editorial-accent: #0f766e;
    --editorial-tint: #ccfbf1;
}

.editorial-page--home .editorial-hero__image img,
.editorial-page--home .editorial-story__image img,
.editorial-page--home .home-feature__image img {
    aspect-ratio: 1200 / 760;
    object-fit: cover;
}

.editorial-page--communication {
    --editorial-accent: #4338ca;
    --editorial-tint: #e0e7ff;
}

.editorial-page--accounting {
    --editorial-accent: #047857;
    --editorial-tint: #d1fae5;
}

.editorial-page--staff-on-duty {
    --editorial-accent: #6d28d9;
    --editorial-tint: #ede9fe;
}

.editorial-container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.editorial-hero {
    padding-block: 4rem;
    background: radial-gradient(ellipse at 80% 30%, #1e3a52 0%, #0f172a 65%);
    color: #ffffff;
}

.editorial-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
}

.editorial-hero__copy,
.editorial-hero__image {
    min-width: 0;
}

.editorial-page .editorial-hero .feature-row__eyebrow {
    color: #7dd3fc;
}

.editorial-hero h1 {
    margin-top: 1rem;
    color: #ffffff;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
}

.editorial-hero p {
    margin-top: 1.75rem;
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.8;
}

.editorial-hero__image {
    margin: 0;
}

.editorial-hero__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2rem;
}

.editorial-hero__image figcaption,
.editorial-story__image figcaption,
.editorial-insight figcaption {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.6;
}

.editorial-hero__image figcaption {
    color: #94a3b8;
}

.editorial-introduction {
    padding-block: 5rem 2rem;
}

.editorial-page h2 {
    width: 100%;
    max-width: none;
    color: #0f172a;
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.editorial-section-heading p {
    max-width: 52rem;
}

.editorial-introduction h2 {
    margin-top: 1rem;
}

.editorial-introduction p,
.editorial-access p {
    max-width: 52rem;
    margin-top: 1.5rem;
    color: #475569;
    font-size: 1.0625rem;
    line-height: 1.9;
}

.editorial-story {
    display: grid;
    gap: 2rem;
    padding-block: 3rem;
}

.editorial-story + .editorial-story {
    border-top: 1px solid #e2e8f0;
}

.editorial-story__image,
.editorial-story__content {
    min-width: 0;
}

.editorial-story__image img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
}

.editorial-topic {
    margin-top: 1.75rem;
}

.editorial-topic h3 {
    color: #0f172a;
    font-size: 1.375rem;
    font-weight: 750;
    line-height: 1.3;
}

.editorial-topic p {
    margin-block: 0.75rem;
    color: #475569;
    line-height: 1.85;
}

.editorial-page .feature-row__eyebrow {
    color: var(--editorial-accent);
}

.editorial-cta {
    padding-block: 4rem;
    background: #0f172a;
    color: #ffffff;
    text-align: center;
}

.editorial-cta p {
    max-width: 48rem;
    margin: 1.5rem auto 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.editorial-page .editorial-cta h2 {
    color: #ffffff;
}

.editorial-workflow,
.editorial-insight,
.editorial-access {
    padding-block: 4rem;
}

.editorial-workflow {
    background: #0f172a;
}

.editorial-workflow h2,
.editorial-workflow h3 {
    color: #ffffff;
}

.editorial-workflow ol {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
    list-style: none;
    padding: 0;
}

.editorial-workflow li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    min-width: 0;
}

.editorial-workflow li > span {
    color: #7dd3fc;
    font-size: 1.5rem;
    font-weight: 800;
}

.editorial-workflow h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.editorial-workflow p {
    margin-top: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.editorial-insight__images {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

.editorial-insight img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
}

.editorial-access {
    background: var(--editorial-tint);
}

.editorial-related {
    padding-block: 4rem;
}

.editorial-related > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin-top: 2rem;
}

.home-feature {
    --home-feature-accent: #0369a1;
    --home-feature-tint: #f0f7ff;
    padding-block: 4.5rem;
    background: #ffffff;
}

.home-feature--reverse {
    background: var(--home-feature-tint);
}

.home-feature--collaboration { --home-feature-accent: #7c3aed; --home-feature-tint: #f8f5ff; }
.home-feature--communication { --home-feature-accent: #0f766e; --home-feature-tint: #f0fdfa; }
.home-feature--accounting { --home-feature-accent: #1d4ed8; --home-feature-tint: #eff6ff; }
.home-feature--staff-on-duty { --home-feature-accent: #b45309; --home-feature-tint: #fffbeb; }
.home-feature--visitor-management { --home-feature-accent: #be123c; --home-feature-tint: #fff1f2; }
.home-feature--checklists { --home-feature-accent: #4d7c0f; --home-feature-tint: #f7fee7; }

.home-feature__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.home-feature__image,
.home-feature__content {
    min-width: 0;
    margin: 0;
}

.home-feature__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 30px 60px -35px rgba(15, 23, 42, 0.45);
}

.home-feature__image figcaption {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.6;
}

.editorial-page .home-feature .feature-row__eyebrow {
    color: var(--home-feature-accent);
}

.home-feature__content h2 {
    margin-top: 0.75rem;
}

.home-feature__content > p {
    margin-top: 1.25rem;
    color: #475569;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.home-feature__content ul {
    display: grid;
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.home-feature__content li {
    padding-left: 1.25rem;
    border-left: 3px solid var(--home-feature-accent);
}

.home-feature__content h3 {
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 750;
}

.home-feature__content li p {
    margin-top: 0.375rem;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.editorial-page--accounting .editorial-hero__image img {
    border-radius: 0.5rem 4rem 0.5rem 4rem;
}

.editorial-page--staff-on-duty .editorial-hero__image img {
    border-radius: 4rem 0.5rem 4rem 0.5rem;
}

.editorial-story__content .editorial-topic:first-of-type {
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .editorial-story {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: start;
        gap: clamp(1.5rem, 4vw, 4rem);
        padding-block: clamp(2.5rem, 5vw, 4rem);
    }

    .editorial-story--reverse .editorial-story__image {
        grid-column: 2;
        grid-row: 1;
    }

    .editorial-story--reverse .editorial-story__content {
        grid-column: 1;
        grid-row: 1;
    }

    .home-feature {
        padding-block: clamp(3rem, 6vw, 4.5rem);
    }

    .home-feature__grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: clamp(1.5rem, 4vw, 4rem);
        align-items: start;
    }

    .editorial-story__image,
    .home-feature__image {
        position: sticky;
        top: 7rem;
        align-self: start;
    }

    .home-feature--reverse .home-feature__image {
        grid-column: 2;
        grid-row: 1;
    }

    .home-feature--reverse .home-feature__content {
        grid-column: 1;
        grid-row: 1;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .editorial-story h2,
    .home-feature__content h2 {
        font-size: clamp(1.5rem, 3.4vw, 2.125rem);
    }

    .editorial-topic h3 {
        font-size: 1.125rem;
    }

    .editorial-topic p,
    .home-feature__content > p,
    .feature-row__description {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .home-feature__content ul {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .home-feature__content li p {
        font-size: 0.875rem;
        line-height: 1.65;
    }

    .home-feature__image img,
    .editorial-story__image img {
        border-radius: 1.25rem;
    }
}

@media (min-width: 900px) {
    .editorial-hero__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .editorial-insight__images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editorial-workflow ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .editorial-container {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .editorial-container {
        padding-inline: 2rem;
    }

    .editorial-hero {
        padding-block: 6rem;
    }
}
