/* ============================================================
   NOVA CARE
   PUBLIC GALLERY
   Fresh Gallery Styles
   ============================================================ */

:root {
    --nc-green: #0a2b1d;
    --nc-green-2: #103d2a;
    --nc-green-3: #18563b;
    --nc-green-soft: #eaf4ee;
    --nc-gold: #c9a24d;
    --nc-gold-light: #e7c878;
    --nc-white: #ffffff;
    --nc-off-white: #f7f9f7;
    --nc-text: #23362d;
    --nc-muted: #718078;
    --nc-border: #e1e8e3;
    --nc-shadow: 0 18px 50px rgba(10, 43, 29, 0.10);
    --nc-shadow-hover: 0 28px 70px rgba(10, 43, 29, 0.18);
    --nc-radius: 22px;
    --nc-transition: 0.35s cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   BASE
   ============================================================ */

.nc-gallery-main {
    background: var(--nc-off-white);
    color: var(--nc-text);
}

.nc-gallery-main *,
.nc-gallery-intro * {
    box-sizing: border-box;
}

.nc-gallery-main a {
    text-decoration: none;
}

.nc-gallery-main button {
    font: inherit;
}


/* ============================================================
   PAGE INTRO
   ============================================================ */

.nc-gallery-intro {
    position: relative;
    overflow: hidden;
    padding: 125px 0 82px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(201, 162, 77, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #082519 0%,
            #0a2b1d 58%,
            #103d2a 100%
        );
    color: var(--nc-white);
}

.nc-gallery-intro::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 55px;
    background: var(--nc-off-white);
    clip-path: polygon(
        0 70%,
        18% 48%,
        36% 66%,
        56% 35%,
        76% 58%,
        100% 25%,
        100% 100%,
        0 100%
    );
}

.nc-gallery-intro-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.nc-gallery-intro-shape-one {
    width: 360px;
    height: 360px;
    right: -140px;
    top: -170px;
    border: 1px solid rgba(201, 162, 77, 0.25);
}

.nc-gallery-intro-shape-two {
    width: 180px;
    height: 180px;
    left: -80px;
    bottom: 20px;
    background: rgba(201, 162, 77, 0.06);
}

.nc-gallery-intro-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.nc-gallery-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}

.nc-gallery-breadcrumb a {
    color: rgba(255,255,255,0.72);
    transition: var(--nc-transition);
}

.nc-gallery-breadcrumb a:hover {
    color: var(--nc-gold-light);
}

.nc-gallery-breadcrumb span:last-child {
    color: var(--nc-white);
    font-weight: 600;
}

.nc-gallery-breadcrumb i {
    font-size: 11px;
    color: var(--nc-gold);
}

.nc-gallery-eyebrow,
.nc-gallery-section-label,
.nc-gallery-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--nc-gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nc-gallery-eyebrow {
    margin-bottom: 18px;
}

.nc-gallery-eyebrow i,
.nc-gallery-section-label i,
.nc-gallery-cta-eyebrow i {
    font-size: 14px;
}

.nc-gallery-intro h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--nc-white);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.nc-gallery-intro h1 span {
    display: block;
    color: var(--nc-gold-light);
}

.nc-gallery-intro p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.8;
}


/* ============================================================
   GALLERY SECTION
   ============================================================ */

.nc-gallery-section {
    padding: 92px 0 110px;
}

.nc-gallery-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 16px;
}

.nc-gallery-section-label {
    color: var(--nc-green-3);
    margin-bottom: 13px;
}

.nc-gallery-section-heading h2 {
    margin: 0;
    color: var(--nc-green);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.nc-gallery-section-heading h2 span {
    color: var(--nc-green-3);
}

.nc-gallery-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 12px 18px;
    border: 1px solid var(--nc-border);
    border-radius: 14px;
    background: var(--nc-white);
    box-shadow: 0 8px 24px rgba(10,43,29,0.05);
}

.nc-gallery-count strong {
    color: var(--nc-green);
    font-size: 24px;
    line-height: 1;
}

.nc-gallery-count span {
    margin-top: 5px;
    color: var(--nc-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nc-gallery-description {
    max-width: 760px;
    margin-bottom: 36px;
    color: var(--nc-muted);
    font-size: 16px;
    line-height: 1.8;
}


/* ============================================================
   FILTERS
   ============================================================ */

.nc-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
}

.nc-gallery-filter {
    appearance: none;
    border: 1px solid var(--nc-border);
    border-radius: 999px;
    padding: 11px 19px;
    background: var(--nc-white);
    color: var(--nc-green);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: var(--nc-transition);
}

.nc-gallery-filter:hover {
    border-color: var(--nc-green-3);
    transform: translateY(-2px);
}

.nc-gallery-filter.is-active {
    border-color: var(--nc-green);
    background: var(--nc-green);
    color: var(--nc-white);
    box-shadow: 0 10px 25px rgba(10,43,29,0.16);
}


/* ============================================================
   GALLERY GRID
   ============================================================ */

.nc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.nc-gallery-item {
    min-width: 0;
    transition:
        opacity .35s ease,
        transform .35s ease;
}

.nc-gallery-item.is-hidden {
    display: none;
}

.nc-gallery-item.is-load-hidden {
    display: none;
}

.nc-gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--nc-radius);
    background: var(--nc-white);
    box-shadow: var(--nc-shadow);
    isolation: isolate;
    transition:
        transform var(--nc-transition),
        box-shadow var(--nc-transition);
}

.nc-gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nc-shadow-hover);
}

.nc-gallery-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dfe8e2;
}

.nc-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        transform .75s cubic-bezier(.2,.7,.2,1),
        filter .45s ease;
}

.nc-gallery-card:hover .nc-gallery-image img {
    transform: scale(1.07);
    filter: saturate(1.05);
}

.nc-gallery-image-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to top,
            rgba(4, 22, 15, 0.90) 0%,
            rgba(4, 22, 15, 0.55) 30%,
            rgba(4, 22, 15, 0.08) 65%,
            transparent 100%
        );
    opacity: 0.65;
    transition: opacity var(--nc-transition);
}

.nc-gallery-card:hover .nc-gallery-image-shade {
    opacity: 1;
}


/* ============================================================
   CATEGORY BADGE
   ============================================================ */

.nc-gallery-category {
    position: absolute;
    z-index: 4;
    top: 18px;
    left: 18px;
    max-width: calc(100% - 72px);
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    background: rgba(10,43,29,0.78);
    backdrop-filter: blur(10px);
    color: var(--nc-white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* ============================================================
   OPEN BUTTON
   ============================================================ */

.nc-gallery-open {
    position: absolute;
    z-index: 5;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    background: rgba(10,43,29,0.76);
    backdrop-filter: blur(10px);
    color: var(--nc-white);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--nc-transition);
}

.nc-gallery-card:hover .nc-gallery-open,
.nc-gallery-open:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.nc-gallery-open:hover {
    background: var(--nc-gold);
    color: var(--nc-green);
}


/* ============================================================
   HOVER CONTENT
   Description rises from bottom with gradient background.
   ============================================================ */

.nc-gallery-hover-content {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 24px 24px;
    background:
        linear-gradient(
            to top,
            rgba(5, 26, 18, 0.98) 0%,
            rgba(5, 26, 18, 0.90) 48%,
            rgba(5, 26, 18, 0.38) 78%,
            transparent 100%
        );
    color: var(--nc-white);
    transform: translateY(38%);
    transition:
        transform .48s cubic-bezier(.2,.7,.2,1);
}

.nc-gallery-card:hover .nc-gallery-hover-content {
    transform: translateY(0);
}

.nc-gallery-hover-content-inner {
    transform: translateY(12px);
    opacity: 0.88;
    transition:
        transform .48s cubic-bezier(.2,.7,.2,1),
        opacity .35s ease;
}

.nc-gallery-card:hover .nc-gallery-hover-content-inner {
    transform: translateY(0);
    opacity: 1;
}

.nc-gallery-hover-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--nc-gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nc-gallery-hover-content h3 {
    margin: 0 0 8px;
    color: var(--nc-white);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
}

.nc-gallery-hover-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.nc-gallery-hover-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--nc-gold-light);
    font-size: 12px;
    font-weight: 800;
}

.nc-gallery-hover-action i {
    transition: transform var(--nc-transition);
}

.nc-gallery-card:hover .nc-gallery-hover-action i {
    transform: translate(3px, -3px);
}


/* ============================================================
   LOAD MORE
   ============================================================ */

.nc-gallery-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.nc-gallery-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 220px;
    padding: 14px 24px;
    border: 1px solid var(--nc-green);
    border-radius: 999px;
    background: var(--nc-green);
    color: var(--nc-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: var(--nc-transition);
}

.nc-gallery-load-more:hover {
    background: var(--nc-green-3);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10,43,29,0.16);
}

.nc-gallery-load-more i {
    transition: transform var(--nc-transition);
}

.nc-gallery-load-more:hover i {
    transform: translateY(3px);
}


/* ============================================================
   EMPTY STATES
   ============================================================ */

.nc-gallery-empty,
.nc-gallery-empty-filter {
    padding: 70px 30px;
    border: 1px dashed #cfdad3;
    border-radius: var(--nc-radius);
    background: var(--nc-white);
    text-align: center;
}

.nc-gallery-empty-filter[hidden] {
    display: none !important;
}

.nc-gallery-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: var(--nc-green-soft);
    color: var(--nc-green);
    font-size: 25px;
}

.nc-gallery-empty h3,
.nc-gallery-empty-filter h3 {
    margin-bottom: 8px;
    color: var(--nc-green);
    font-size: 23px;
    font-weight: 800;
}

.nc-gallery-empty p,
.nc-gallery-empty-filter p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--nc-muted);
    line-height: 1.7;
}


/* ============================================================
   CTA
   ============================================================ */

.nc-gallery-cta {
    position: relative;
    overflow: hidden;
    padding: 0 0 105px;
    background: var(--nc-off-white);
}

.nc-gallery-cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    padding: 62px 68px;
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(201,162,77,0.18),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #082519 0%,
            #0a2b1d 58%,
            #123e2b 100%
        );
    box-shadow: 0 28px 80px rgba(10,43,29,0.20);
}

.nc-gallery-cta-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nc-gallery-cta-glow-one {
    width: 300px;
    height: 300px;
    top: -150px;
    right: 4%;
    background: rgba(201,162,77,0.06);
}

.nc-gallery-cta-glow-two {
    width: 220px;
    height: 220px;
    bottom: -150px;
    left: 7%;
    border: 1px solid rgba(201,162,77,0.13);
}

.nc-gallery-cta-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.nc-gallery-cta-eyebrow {
    margin-bottom: 17px;
}

.nc-gallery-cta-content h2 {
    margin: 0 0 18px;
    color: var(--nc-white);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.nc-gallery-cta-content h2 span {
    display: block;
    color: var(--nc-gold-light);
}

.nc-gallery-cta-content p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,0.76);
    font-size: 16px;
    line-height: 1.8;
}

.nc-gallery-cta-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 25px;
}

.nc-gallery-cta-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.84);
    font-size: 12px;
    font-weight: 700;
}

.nc-gallery-cta-points i {
    color: var(--nc-gold-light);
}

.nc-gallery-cta-action {
    position: relative;
    z-index: 1;
    flex: 0 0 260px;
    text-align: center;
}

.nc-gallery-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 17px 22px;
    border: 2px solid var(--nc-gold-light);
    border-radius: 14px;
    background: var(--nc-gold-light);
    color: var(--nc-green);
    font-size: 14px;
    font-weight: 900;
    transition: var(--nc-transition);
}

.nc-gallery-cta-button:hover {
    border-color: var(--nc-white);
    background: var(--nc-white);
    color: var(--nc-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.nc-gallery-cta-button i {
    transition: transform var(--nc-transition);
}

.nc-gallery-cta-button:hover i {
    transform: translateX(5px);
}

.nc-gallery-cta-note {
    display: block;
    margin-top: 12px;
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    line-height: 1.5;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.nc-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.nc-gallery-lightbox.is-open {
    display: flex;
}

.nc-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 12, 8, 0.92);
    backdrop-filter: blur(8px);
}

.nc-gallery-lightbox-dialog {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-gallery-lightbox-media {
    position: relative;
    max-width: 100%;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 20px;
    background: #071810;
    box-shadow: 0 30px 100px rgba(0,0,0,0.45);
}

.nc-gallery-lightbox-media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.nc-gallery-lightbox-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 65px 28px 25px;
    background:
        linear-gradient(
            to top,
            rgba(3,17,11,0.97),
            rgba(3,17,11,0.75) 55%,
            transparent
        );
    color: var(--nc-white);
}

.nc-gallery-lightbox-caption span {
    color: var(--nc-gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nc-gallery-lightbox-caption h3 {
    margin: 6px 0 5px;
    color: var(--nc-white);
    font-size: 24px;
    font-weight: 800;
}

.nc-gallery-lightbox-caption p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.6;
}

.nc-gallery-lightbox-close,
.nc-gallery-lightbox-nav {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(10,43,29,0.82);
    color: var(--nc-white);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--nc-transition);
}

.nc-gallery-lightbox-close {
    top: -14px;
    right: -14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.nc-gallery-lightbox-prev,
.nc-gallery-lightbox-next {
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.nc-gallery-lightbox-prev {
    left: -65px;
}

.nc-gallery-lightbox-next {
    right: -65px;
}

.nc-gallery-lightbox-close:hover,
.nc-gallery-lightbox-nav:hover {
    border-color: var(--nc-gold-light);
    background: var(--nc-gold);
    color: var(--nc-green);
}

body.nc-gallery-lightbox-open {
    overflow: hidden;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1199px) {

    .nc-gallery-grid {
        gap: 20px;
    }

    .nc-gallery-cta-card {
        padding: 52px;
    }

    .nc-gallery-lightbox-prev {
        left: 12px;
    }

    .nc-gallery-lightbox-next {
        right: 12px;
    }

}

@media (max-width: 991px) {

    .nc-gallery-intro {
        padding: 105px 0 70px;
    }

    .nc-gallery-section {
        padding: 75px 0 85px;
    }

    .nc-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nc-gallery-section-heading {
        align-items: flex-start;
    }

    .nc-gallery-cta-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .nc-gallery-cta-action {
        width: min(100%, 340px);
        flex-basis: auto;
    }

}

@media (max-width: 767px) {

    .nc-gallery-intro {
        padding: 92px 0 65px;
    }

    .nc-gallery-intro h1 {
        font-size: 43px;
    }

    .nc-gallery-intro p {
        font-size: 15px;
        line-height: 1.7;
    }

    .nc-gallery-section {
        padding: 60px 0 70px;
    }

    .nc-gallery-section-heading {
        flex-direction: column;
        gap: 18px;
    }

    .nc-gallery-count {
        align-items: flex-start;
    }

    .nc-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nc-gallery-image {
        aspect-ratio: 16 / 11;
    }

    .nc-gallery-hover-content {
        transform: translateY(0);
        padding-top: 65px;
    }

    .nc-gallery-hover-content-inner {
        transform: translateY(0);
        opacity: 1;
    }

    .nc-gallery-open {
        opacity: 1;
        transform: translateY(0);
    }

    .nc-gallery-filters {
        gap: 8px;
    }

    .nc-gallery-filter {
        padding: 9px 14px;
        font-size: 12px;
    }

    .nc-gallery-cta {
        padding-bottom: 70px;
    }

    .nc-gallery-cta-card {
        padding: 38px 26px;
        border-radius: 24px;
    }

    .nc-gallery-cta-content h2 {
        font-size: 35px;
    }

    .nc-gallery-cta-points {
        flex-direction: column;
        gap: 9px;
    }

    .nc-gallery-cta-action {
        width: 100%;
    }

    .nc-gallery-lightbox {
        padding: 12px;
    }

    .nc-gallery-lightbox-dialog {
        max-height: 94vh;
    }

    .nc-gallery-lightbox-media img {
        max-height: 70vh;
    }

    .nc-gallery-lightbox-caption {
        padding: 55px 18px 18px;
    }

    .nc-gallery-lightbox-caption h3 {
        font-size: 19px;
    }

    .nc-gallery-lightbox-caption p {
        font-size: 12px;
    }

    .nc-gallery-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .nc-gallery-lightbox-prev,
    .nc-gallery-lightbox-next {
        top: 42%;
        width: 40px;
        height: 40px;
    }

    .nc-gallery-lightbox-prev {
        left: 8px;
    }

    .nc-gallery-lightbox-next {
        right: 8px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .nc-gallery-card,
    .nc-gallery-image img,
    .nc-gallery-hover-content,
    .nc-gallery-hover-content-inner,
    .nc-gallery-open,
    .nc-gallery-load-more,
    .nc-gallery-cta-button {
        transition: none !important;
    }

}