/* ═══════════════════════════════════════════════════════
   RPA GROUP (FIJI) — Service Page Styles
   rpa-service.css
═══════════════════════════════════════════════════════ */

/* ── Service Hero ─────────────────────────────────── */
.svc-hero {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.svc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4,10,28,0.65) 0%, rgba(4,10,28,0.88) 100%);
}
.svc-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 0 48px 40px;
}
.svc-breadcrumb {
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: rgba(200,215,235,0.7);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.svc-breadcrumb a { color: rgba(200,215,235,0.7); text-decoration: none; }
.svc-breadcrumb a:hover { color: #E30613; }
.svc-hero-content h1 {
    font-size: 52px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 6px;
    line-height: 1.05;
}
.svc-tagline {
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: rgba(200,215,235,0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* ── Service Detail Section ───────────────────────── */
.ServicePage_sec {
    padding: 80px 0 70px;
    min-height: auto;
    background: url(../img/Services-bg.jpg) top center no-repeat;
    background-size: cover;
}
.ServicePage_sec .Center {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}
.ServicePage_sec h2 {
    font-size: 48px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.ServicePage_sec p {
    font-size: 15px;
    color: #d0d8e4;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 0 30px;
}
.ServiceDetail {
    padding: 50px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.service-detail-item {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-top: 3px solid #E30613;
    padding: 28px 26px;
    width: calc(50% - 14px);
    min-width: 260px;
    text-align: left;
    transition: background 0.28s ease, transform 0.25s ease;
}
.service-detail-item:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-4px);
}
.service-detail-item h4 {
    font-size: 17px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.service-detail-item p {
    font-size: 14px;
    color: #c8d5e4;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}
.back-btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 13px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    background: rgba(64,93,118,0.75);
    border: 1px solid #b0bdc8;
    transition: background 0.28s ease, border-color 0.28s ease;
}
.back-btn:hover {
    background: #E30613;
    border-color: #E30613;
    color: #fff;
}

/* ── Gallery Section ──────────────────────────────── */
.rpa-gallery-sec {
    padding: 80px 0 90px;
    background: #111318;
    width: 100%;
}
.rpa-gallery-sec .Center {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}
.rpa-gallery-sec h2 {
    font-size: 46px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.rpa-gallery-sec .Line {
    border: solid 1px #E30613;
    height: 2px;
    width: 252px;
    margin: 0 auto 50px;
}

/* Gallery Grid */
.rlb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.rlb-grid-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 3px;
    position: relative;
}
.rlb-thumb {
    position: relative;
    aspect-ratio: 4/3;
    background: #1a2030;
    overflow: hidden;
}
.rlb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}
.rlb-grid-item:hover .rlb-thumb img { transform: scale(1.08); }
.rlb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(227,6,19,0.78);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rlb-grid-item:hover .rlb-overlay { opacity: 1; }
.rlb-overlay .fa { font-size: 34px; color: #fff; }
.rlb-overlay span {
    font-size: 13px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rlb-overlay .rlb-num {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    letter-spacing: 1.5px;
}
/* Video badge indicator */
.rlb-grid-item.video-badge .rlb-thumb::after {
    content: '▶ VIDEO';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #E30613;
    color: #fff;
    font-size: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 2;
}

/* ── Lightbox ─────────────────────────────────────── */
#rpa-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
#rpa-lightbox.active { display: flex; }

.rlb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.96);
}
.rlb-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
    max-height: 92vh;
}
.rlb-close {
    position: fixed;
    top: 16px; right: 20px;
    width: 44px; height: 44px;
    background: #E30613;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.rlb-close:hover { background: #aa0010; }
.rlb-prev, .rlb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 32px;
    line-height: 52px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.rlb-prev { left: 14px; }
.rlb-next { right: 14px; }
.rlb-prev:hover, .rlb-next:hover { background: #E30613; border-color: #E30613; }
.rlb-media-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 120px;
}
#rlb-img {
    max-width: 88vw;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.85);
    transition: opacity 0.28s ease;
}
.rlb-spinner {
    position: absolute;
    font-size: 34px;
    color: #E30613;
}
.rlb-footer {
    margin-top: 14px;
    text-align: center;
}
.rlb-caption {
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.rlb-counter {
    margin-top: 5px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .rlb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .svc-hero { height: 220px; }
    .svc-hero-content h1 { font-size: 34px; }
    .service-detail-item { width: 100%; }
    .rlb-prev { left: 6px; }
    .rlb-next { right: 6px; }
}
@media (max-width: 480px) {
    .rlb-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
