/* ================================================
   Chitkara Services - Frontend CSS v5
   Image: background-image on card-top (always full)
   Zoom : ::before pseudo scale on hover
   ================================================ */

:root {
    --cs-top-h:    220px;
    --cs-btn-size: 48px;
}

#nrj_chitkaraServecs {
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 15px;
    box-sizing: border-box;
}

#nrj_chitkaraServecs * {
    box-sizing: border-box;
}

/* ── Tabs ── */
.Nrj_servicesChitkara-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.Nrj_servicesChitkara-tab-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.Nrj_servicesChitkara-tab-btn:hover,
.Nrj_servicesChitkara-tab-btn.active {
    background: var(--sky, #38bdf8);
    border-color: var(--sky, #38bdf8);
    color: #ffffff;
}

/* ── Grid ── */
.Nrj_servicesChitkara-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.Nrj_servicesChitkara-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ── Card ── */
.Nrj_servicesChitkara-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--nb, #1a2e3b);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.Nrj_servicesChitkara-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.30);
    transform: translateY(-4px);
}

/* ══════════════════════════════════════
   TOP SECTION
   background-image set inline via PHP
   zoom via ::after pseudo on hover
══════════════════════════════════════ */
.Nrj_servicesChitkara-card-top {
    position: relative;
    height: var(--cs-top-h);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #2a3f50;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
}

/* Zoom layer — sits behind content, scales on hover */
.Nrj_servicesChitkara-card-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.6s ease;
    z-index: 0;
}

.Nrj_servicesChitkara-card:hover .Nrj_servicesChitkara-card-top::after {
    transform: scale(1.08);
}

/* ── Dark gradient overlay ── */
.Nrj_servicesChitkara-top-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.04) 0%,
        rgba(0,0,0,0.62) 100%
    );
    transition: background 0.4s ease;
}

.Nrj_servicesChitkara-card:hover .Nrj_servicesChitkara-top-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.72) 100%
    );
}

/* ── Icon + Title pinned to bottom ── */
.Nrj_servicesChitkara-top-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 22px 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* ── Icon Circle ── */
.Nrj_servicesChitkara-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--sky, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.Nrj_servicesChitkara-icon-wrap img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.Nrj_servicesChitkara-icon-wrap i {
    font-size: 20px;
    color: #ffffff;
}

/* ── Title ── */
.Nrj_servicesChitkara-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

/* ══════════════════════════════════════
   ARROW BUTTON
══════════════════════════════════════ */
.Nrj_servicesChitkara-arrow {
    position: absolute;
    right: 18px;
    top: calc(var(--cs-top-h) - var(--cs-btn-size) / 2);
    width: var(--cs-btn-size);
    height: var(--cs-btn-size);
    border-radius: 50%;
    background: var(--sky, #38bdf8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    transition: background 0.4s ease, transform 0.3s ease;
}

.Nrj_servicesChitkara-arrow i {
    font-size: 15px;
    pointer-events: none;
    transform: rotate(-45deg);
    display: inline-block;
}

.Nrj_servicesChitkara-card:hover .Nrj_servicesChitkara-arrow {
    background: #ffffff;
    transform: scale(1.08);
}

.Nrj_servicesChitkara-card:hover .Nrj_servicesChitkara-arrow i {
    color: var(--sky, #38bdf8);
}

/* ══════════════════════════════════════
   BOTTOM — content area
   Normal : var(--nb)
   Hover  : var(--sky)
══════════════════════════════════════ */
.Nrj_servicesChitkara-card-bottom {
    flex-grow: 1;
    background: var(--nb, #1a2e3b);
    margin-top: -32px;
    padding: 46px 22px 26px;
    clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    transition: background 0.4s ease;
}

.Nrj_servicesChitkara-card:hover .Nrj_servicesChitkara-card-bottom {
    background: var(--sky, #38bdf8);
}

/* ── Description ── */
.Nrj_servicesChitkara-desc {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.80);
    margin-bottom: 20px;
    flex-grow: 1;
    transition: color 0.4s ease;
}

.Nrj_servicesChitkara-card:hover .Nrj_servicesChitkara-desc {
    color: #ffffff;
}

/* ── Tags ── */
.Nrj_servicesChitkara-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.Nrj_servicesChitkara-tag {
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 5px;
    padding: 5px 13px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.85);
    background: transparent;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.Nrj_servicesChitkara-card:hover .Nrj_servicesChitkara-tag {
    border-color: rgba(255,255,255,0.60);
    color: #ffffff;
    background: rgba(255,255,255,0.15);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1200px) {
    .Nrj_servicesChitkara-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .Nrj_servicesChitkara-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .Nrj_servicesChitkara-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    :root { --cs-top-h: 190px; }
    .Nrj_servicesChitkara-title { font-size: 18px; }
}
