/* ============================================================
   Param Enterprises — shared UX layer
     • Top navigation progress bar (React-style)
     • Content fade-in on paint
     • Image shimmer + reveal on load
     • Reusable .skeleton utility
   Loaded on both the public site and the admin panel.
   ============================================================ */

/* ---------- Top progress bar ---------- */
#param-topbar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #F97300, #1E4E79);
    box-shadow: 0 0 10px rgba(249, 115, 0, 0.55);
    z-index: 2147483647;
    opacity: 0;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    pointer-events: none;
    border-radius: 0 3px 3px 0;
}
#param-topbar.active { opacity: 1; }
#param-topbar.done   { width: 100% !important; opacity: 0; transition: opacity 0.35s ease 0.15s; }

/* ---------- Content fade-in on paint ---------- */
@keyframes paramFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
html.param-hydrating body { opacity: 0.01; }
html.param-hydrated  body {
    animation: paramFadeIn 0.25s ease-out both;
}
body {
    transform: none !important;
    min-height: 100vh;
}
body::after {
    content: "";
    display: table;
    clear: both;
}

/* LightGallery Full Viewport & Stacking Fixes */
.lg-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999998 !important;
    background-color: rgba(0, 0, 0, 0.94) !important;
}
.lg-outer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
}
.lg-outer .lg {
    height: 100% !important;
    width: 100% !important;
}
.lg-outer .lg-inner {
    height: 100% !important;
    width: 100% !important;
}
.lg-outer .lg-item {
    height: 100% !important;
}
.lg-outer .lg-img-wrap {
    height: 100% !important;
}

/* ---------- Image shimmer + reveal ---------- */
@keyframes paramShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.param-img-wrap {
    position: relative;
    overflow: hidden;
    background: #eef1f5;
    background-image: linear-gradient(90deg,
        rgba(0,0,0,0.03) 0px,
        rgba(0,0,0,0.07) 40px,
        rgba(0,0,0,0.03) 80px);
    background-size: 400px 100%;
    animation: paramShimmer 1.4s linear infinite;
}
.param-img-wrap.loaded {
    animation: none;
    background-image: none;
    background-color: transparent;
}
/* Any img with data-src or class .param-img starts hidden and fades in on load */
img.param-img {
    opacity: 0;
    transition: opacity 0.35s ease;
}
img.param-img.loaded { opacity: 1; }

/* ---------- Reusable .skeleton utility (for admin lists, dashboard placeholders, etc.) ---------- */
.skeleton {
    display: inline-block;
    background: #e5e9ef;
    background-image: linear-gradient(90deg,
        rgba(0,0,0,0.02) 0%,
        rgba(0,0,0,0.08) 50%,
        rgba(0,0,0,0.02) 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: paramSkeletonSweep 1.3s ease-in-out infinite;
    color: transparent !important;
    user-select: none;
}
@keyframes paramSkeletonSweep {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.skeleton-line { display: block; height: 12px; margin: 6px 0; border-radius: 4px; }
.skeleton-title { height: 20px; width: 60%; }
.skeleton-card {
    display: block;
    height: 200px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 14px;
}

/* Smooth in-page anchor scrolling (site-wide) */
html { scroll-behavior: smooth; }

/* Give anchored section headings enough offset so the sticky nav doesn't cover them */
:target,
[id]:not(html):not(body) { scroll-margin-top: 100px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #param-topbar,
    html.param-hydrated body,
    .skeleton,
    .param-img-wrap { animation: none !important; transition: none !important; }
    html.param-hydrating body { opacity: 1; }
    img.param-img { opacity: 1; }
}

/* ============================================================
   Landing Page — Universal Responsive & Visibility Styling
   Ensures verified approved content is 100% visible on all devices
   ============================================================ */

/* ---------- 1. Hero Alpha Slider Visibility & Responsive Fixes ---------- */
.industify_slider_alpha .title_holder {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

.industify_slider_alpha .title_holder .in > * {
    overflow: visible !important;
}

.industify_slider_alpha .title_holder .in > * > span {
    transform: none !important;
    opacity: 1 !important;
    display: inline-block !important;
    transition: none !important;
}

/* Category badge / pill */
.industify_slider_alpha .title_holder p,
.industify_slider_alpha .title_holder p span {
    display: block !important;
    color: var(--param-orange) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

/* Slide heading */
.industify_slider_alpha .title_holder h3,
.industify_slider_alpha .title_holder h3 span {
    display: block !important;
    color: #ffffff !important;
    font-family: 'Rubik', sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

/* Slide description */
.industify_slider_alpha .title_holder .desc,
.industify_slider_alpha .title_holder .desc span {
    display: block !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin-top: 10px !important;
}

/* Desktop positioning (> 992px) — Restored Previous Theme Layout */
@media (min-width: 993px) {
    .industify_slider_alpha .item {
        height: 100vh !important;
        min-height: 590px !important;
    }
    .industify_slider_alpha[data-box-pos="cr"] .title_holder {
        right: 0 !important;
        left: auto !important;
        top: 50% !important;
        margin-top: -235px !important;
        transform: none !important;
        width: 480px !important;
        height: 470px !important;
        min-height: 470px !important;
        padding: 40px !important;
        background: rgba(14, 14, 14, 0.9) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    .industify_slider_alpha .title_holder .inner {
        display: table !important;
        width: 100% !important;
        height: 100% !important;
    }
    .industify_slider_alpha .title_holder .in {
        display: table-cell !important;
        vertical-align: middle !important;
    }
    .industify_slider_alpha .title_holder p,
    .industify_slider_alpha .title_holder p span {
        color: #ffffff !important;
        font-size: 13px !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        margin-bottom: 12px !important;
    }
    .industify_slider_alpha .title_holder h3,
    .industify_slider_alpha .title_holder h3 span {
        font-size: 34px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        color: #ffffff !important;
        margin: 0 0 16px 0 !important;
    }
    .industify_slider_alpha .title_holder .desc,
    .industify_slider_alpha .title_holder .desc span {
        font-size: 14.5px !important;
        line-height: 1.65 !important;
        color: rgba(255, 255, 255, 0.85) !important;
        margin: 0 !important;
    }
    .industify_slider_alpha .owl_control {
        display: block !important;
        position: static !important;
    }
    .industify_slider_alpha[data-box-pos="cr"] .owl_control > div {
        position: absolute !important;
        top: 50% !important;
        margin-top: 205px !important;
        bottom: auto !important;
        transform: none !important;
        width: 60px !important;
        height: 60px !important;
        background-color: var(--param-steel-blue, #1E4E79) !important;
        border-radius: 0 !important;
        z-index: 20 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    .industify_slider_alpha[data-box-pos="cr"] .owl_control .fn_prev {
        left: auto !important;
        right: 440px !important;
        margin-left: 0 !important;
    }
    .industify_slider_alpha[data-box-pos="cr"] .owl_control .fn_next {
        left: auto !important;
        right: 378px !important;
        margin-left: 0 !important;
    }
    .industify_slider_alpha .owl_control > div:hover {
        background-color: var(--param-orange) !important;
    }
}

/* Tablet (769px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .industify_slider_alpha .item {
        height: 70vh !important;
        min-height: 500px !important;
    }
    .industify_slider_alpha .title_holder {
        position: absolute !important;
        bottom: 40px !important;
        left: 30px !important;
        right: 30px !important;
        top: auto !important;
        width: auto !important;
        max-width: 620px !important;
        margin: 0 auto !important;
        transform: none !important;
        height: auto !important;
        padding: 30px 28px !important;
        background: rgba(11, 19, 32, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 12px !important;
        text-align: left !important;
    }
    .industify_slider_alpha .title_holder h3 {
        font-size: 26px !important;
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .industify_slider_alpha .item {
        height: 75vh !important;
        min-height: 460px !important;
        max-height: 580px !important;
    }
    .industify_slider_alpha .title_holder {
        position: absolute !important;
        bottom: 20px !important;
        left: 14px !important;
        right: 14px !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        transform: none !important;
        padding: 18px 16px !important;
        background: rgba(11, 19, 32, 0.94) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 12px !important;
        text-align: left !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
        z-index: 10 !important;
    }
    .industify_slider_alpha .title_holder p {
        display: block !important;
        font-size: 11.5px !important;
        margin-bottom: 4px !important;
    }
    .industify_slider_alpha .title_holder h3 {
        display: block !important;
        font-size: 18px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow: visible !important;
        margin: 0 0 6px 0 !important;
    }
    .industify_slider_alpha .title_holder .desc {
        display: block !important;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin: 0 !important;
    }
    .industify_slider_alpha .owl_control {
        display: none !important;
    }
}

/* ---------- 2. Principles / Metrics Snapshot Responsive Fixes ---------- */
@media (max-width: 992px) {
    .fn_cs_principles_modern ul {
        margin-left: 0 !important;
        flex-direction: column !important;
    }
    .fn_cs_principles_modern ul li {
        width: 100% !important;
        padding-left: 0 !important;
        margin: 15px 0 !important;
    }
    .fn_cs_principles_modern .item {
        padding: 75px 25px 35px 25px !important;
        border-width: 4px !important;
    }
    .fn_cs_principles_modern .item .number_holder {
        left: 25px !important;
        height: 60px !important;
        font-size: 28px !important;
        width: 60px !important;
    }
    .fn_cs_principles_modern .item .number_holder:after {
        border-top-width: 50px !important;
    }
}

/* ---------- 3. About Param Section Responsive Fixes ---------- */
@media (max-width: 992px) {
    .about_section {
        padding: 70px 0 !important;
    }
    .fn_cs_about .a_inner {
        flex-direction: column !important;
    }
    .fn_cs_about .leftpart,
    .fn_cs_about .rightpart {
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 !important;
    }
    .fn_cs_about .rightpart {
        margin-top: 40px !important;
        max-width: 500px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
@media (max-width: 600px) {
    .strategic_focus_grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .strategic_focus_box {
        padding: 18px 15px !important;
    }
}

/* ---------- 4. Expertise Section Slider Responsive Fixes ---------- */
@media (max-width: 1250px) {
    .expertise_slider .owl-prev { left: 0px !important; }
    .expertise_slider .owl-next { right: 0px !important; }
}
@media (max-width: 768px) {
    .expertise_section {
        padding: 70px 0 !important;
    }
    .expertise_header h3 {
        font-size: 24px !important;
    }
    .expertise_slider .owl-nav {
        position: static !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 25px !important;
    }
    .expertise_slider .owl-nav [class*='owl-'] {
        position: static !important;
        transform: none !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
    .expertise_card {
        padding: 25px 20px !important;
        min-height: 220px !important;
        margin: 5px !important;
    }
}

/* ---------- 5. Featured Projects (Sticky Full) Responsive Fixes ---------- */
@media (max-width: 1040px) {
    .fn_cs_project_sticky_full .inner {
        flex-direction: column !important;
    }
    .fn_cs_project_sticky_full .left_part,
    .fn_cs_project_sticky_full .right_part {
        width: 100% !important;
        padding: 30px 20px !important;
    }
    .fn_cs_project_sticky_full .left_part .fn_cs_sticky_section {
        position: static !important;
    }
    .landing_project_quick_filter {
        margin-top: 25px !important;
    }
}

/* ---------- 6. Investors Section Responsive Fixes ---------- */
@media (max-width: 768px) {
    .investors_section {
        padding: 60px 0 !important;
    }
    .investors_header h3 {
        font-size: 24px !important;
    }
    .investors_grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .investor_card {
        padding: 20px 12px !important;
        min-height: 110px !important;
    }
    .investor_card .card-icon {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }
    .investor_card span {
        font-size: 13px !important;
    }
}
@media (max-width: 400px) {
    .investors_grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- 7. Clients Section Responsive Fixes ---------- */
@media (max-width: 768px) {
    .clients_section {
        padding: 60px 0 !important;
    }
    .clients_section .title_holder h3 {
        font-size: 24px !important;
    }
    .client_item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 70px !important;
        padding: 8px 12px !important;
        background: #fff !important;
        border: 1px solid #f0f0f0 !important;
        border-radius: 8px !important;
    }
    .client_item img {
        max-height: 45px !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
}

/* ---------- 8. Testimonial Section Responsive Fixes ---------- */
@media (max-width: 768px) {
    .testimonial_section {
        padding: 70px 0 !important;
    }
    .fn_cs_single_testimonial .content_holder p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* ---------- 9. News / Blog Section Responsive Fixes ---------- */
@media (max-width: 768px) {
    .blog_section {
        padding: 60px 0 !important;
    }
    .fn_cs_triple_blog_modern ul {
        flex-direction: column !important;
        margin: 0 !important;
    }
    .fn_cs_triple_blog_modern ul li {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 25px !important;
    }
}

/* ---------- 10. Top Panel & General Mobile Polish ---------- */
@media (max-width: 768px) {
    .custom_top_panel > div {
        padding: 0 15px !important;
        justify-content: center !important;
    }
    .custom_top_panel > div > div {
        gap: 15px !important;
        justify-content: center !important;
    }
    .hide-mobile {
        display: none !important;
    }
}

/* Standalone signalling pages share the existing service page components. */
.signalling_service_page .service_s_inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    gap: 40px;
    align-items: start;
}
.signalling_service_page .service_layout_sidebar,
.signalling_service_page .service_right_sidebar {
    width: 100%;
    min-width: 0;
    padding: 0;
}
.signalling_service_page .service_page_breadcrumbs {
    flex-wrap: wrap;
}
.signalling_service_page .service_page_breadcrumbs .bread-current {
    color: var(--param-orange);
}
.signalling_service_page .service_text_content > p {
    margin-bottom: 20px;
}
.signalling_service_section {
    margin: 50px 0;
}
.signalling_service_page .service_nav_item.active {
    background: var(--param-orange);
    color: #fff;
    font-weight: 600;
}
.signalling_service_page .service_nav_item.active i {
    color: #fff;
}
.signalling_service_details {
    display: inline-block;
    margin-top: 18px;
    color: var(--param-orange);
    font-weight: 600;
    text-decoration: none;
}
.signalling_service_details:hover {
    color: var(--param-steel-blue);
}
.signalling_service_details i {
    margin-left: 6px;
}
@media (max-width: 1024px) {
    .signalling_service_page .service_s_inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .signalling_service_page .service_right_sidebar {
        position: static;
    }
}

/* ---------- 11. Service Pages Mobile Responsive Polish ---------- */
@media (max-width: 768px) {
    .service_page_header {
        padding: 70px 0 !important;
    }
    .service_page_title {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    .service_hero_img_holder {
        height: 220px !important;
        margin-bottom: 25px !important;
    }
    .service_layout_sidebar,
    .service_right_sidebar,
    .industify_fn_leftsidebar,
    .industify_fn_rightsidebar {
        min-width: 100% !important;
        width: 100% !important;
        position: static !important;
    }
    .service_s_inner,
    .industify_fn_sidebarpage .s_inner {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .service_cta_block {
        padding: 30px 20px !important;
    }
    .service_cta_heading {
        font-size: 22px !important;
    }
    .service_highlight_box {
        padding: 18px 16px !important;
    }
    .service_highlight_box p {
        font-size: 16.5px !important;
    }
    .service_feature_grid {
        grid-template-columns: 1fr !important;
    }
    .service_adv_item {
        padding: 18px 16px !important;
    }
}

/* ---------- 12. Project Detail & Gallery Polish ---------- */
.proj_hero {
    background: linear-gradient(135deg, var(--param-steel-blue) 0%, #0c2b47 100%) !important;
    padding: 45px 0 38px !important;
    color: #fff !important;
}
.pd_breadcrumbs_wrap {
    margin-bottom: 18px !important;
    width: 100% !important;
}
.pd_breadcrumbs_list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}
.pd_breadcrumbs_list li {
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}
.pd_breadcrumbs_link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}
.pd_breadcrumbs_link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}
.pd_breadcrumbs_sep {
    margin: 0 10px !important;
    color: rgba(255,255,255,0.5) !important;
    user-select: none !important;
}
.pd_breadcrumbs_current {
    color: var(--param-orange) !important;
    font-weight: 700 !important;
    word-break: break-word !important;
}

/* Gallery Clickability & Overlay */
.med_gallery_grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}
.med_gallery_item {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}
.med_gallery_item img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease !important;
}
.med_gallery_item:hover img {
    transform: scale(1.05) !important;
}
.med_gallery_overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(14, 30, 52, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
}
.med_gallery_item:hover .med_gallery_overlay {
    opacity: 1 !important;
}
.med_gallery_overlay i {
    color: #ffffff !important;
    font-size: 26px !important;
    background: var(--param-orange) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .proj_hero {
        padding: 30px 0 25px !important;
    }
    .proj_hero h1 {
        font-size: 24px !important;
        margin: 10px 0 14px !important;
        line-height: 1.3 !important;
    }
    .proj_hero .meta_row {
        gap: 10px 18px !important;
        font-size: 13.5px !important;
    }
    .pd_breadcrumbs_list {
        font-size: 12.5px !important;
    }
    .proj_cover {
        margin: 20px 0 30px !important;
        max-height: 300px !important;
    }
    .proj_detail_wrapper {
        padding: 35px 0 50px !important;
    }
    .med_gallery_grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 12px !important;
    }
    .med_gallery_item img {
        height: 150px !important;
    }
}

/* Keep the home service titles legible on one line at every carousel width. */
.fn_cs_service_query .top_bar .t_inner h3 {
    font-size: clamp(32px, 2vw, 36px);
    font-weight: 600;
    line-height: 1.2;
}

.fn_cs_service_query .item .title h3 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(15px, 1.1vw, 21px);
    line-height: 1.2;
}


