@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --jrps-blue: #0B1E6D;
    --jrps-gold: #F2C300;
    --bg: #F5F7FA;
    --text: #1F2937;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
}

a {
    text-decoration: none;
}

.container-xl {
    max-width: 1200px;
}

/* Top strip */
.top-strip {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 13px;
}

    .top-strip .mini {
        opacity: .85;
    }

.btn-gold {
    background: var(--jrps-gold);
    border: 1px solid rgba(0,0,0,.08);
    color: #111827;
    font-weight: 600;
}

    .btn-gold:hover {
        filter: brightness(0.97);
    }

/* Navbar */
.main-nav {
    background: var(--jrps-blue);
}

    .main-nav .nav-link {
        color: rgba(255,255,255,.88) !important;
        font-weight: 500;
        padding: 12px 14px;
    }

        .main-nav .nav-link:hover {
            color: #fff !important;
        }

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .brand-wrap img {
        height: 44px;
        width: auto;
    }

.brand-title {
    line-height: 1.1;
}

    .brand-title .name {
        color: #fff;
        font-weight: 700;
        font-size: 16px;
    }

    .brand-title .tag {
        color: rgba(255,255,255,.8);
        font-size: 12px;
    }

/* Hero slider */
.hero {
    position: relative;
}

    .hero .carousel-item {
        height: 520px;
        background: #0b1e6d;
    }

    .hero .slide-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: none; /* ✅ remove fade */
    }

    .hero .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(11,30,109,.10), /* ✅ lighter */
        rgba(11,30,109,.08) );
    }

    .hero .hero-content {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
    }

    .hero h1 {
        color: #fff;
        font-weight: 800;
    }

    .hero p {
        color: rgba(255,255,255,.92);
        max-width: 620px;
    }

    .hero .pill {
        display: inline-block;
        background: rgba(242,195,0,.18);
        border: 1px solid rgba(242,195,0,.35);
        color: #fff;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
    }

/* Floating action cards */
.action-cards {
    margin-top: -55px;
    position: relative;
    z-index: 5;
}

.action-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 18px 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

    .action-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(0,0,0,.10);
    }

    .action-card .icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(11,30,109,.09);
        color: var(--jrps-blue);
        font-weight: 800;
    }

    .action-card .title {
        font-weight: 700;
        margin-top: 10px;
    }

    .action-card .desc {
        font-size: 13px;
        opacity: .8;
        margin: 0;
    }

/* Section */
.section {
    padding: 64px 0;
    background: #fff;
}

    .section.alt {
        background: var(--bg);
    }

.sec-title {
    font-weight: 800;
    color: #111827;
}

.sec-sub {
    opacity: .78;
}

/* Footer */
.footer {
    background: var(--jrps-blue);
    color: rgba(255,255,255,.92);
}

    .footer a {
        color: rgba(255,255,255,.92);
    }

        .footer a:hover {
            color: #fff;
        }

    .footer .muted {
        color: rgba(255,255,255,.75);
        font-size: 13px;
    }

@media (max-width: 991px) {
    .hero .carousel-item {
        height: 420px;
    }
}

@media (max-width: 575px) {
    .hero .carousel-item {
        height: 360px;
    }
}

.img-wrapper {
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

.action-card .icon i {
    font-size: 38px;
    color: #0d6efd; /* primary color */
}

.action-card {
    padding: 25px 20px;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

    .action-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

/* WHY Choose JRPS - Premium Cards */
.why-card {
    position: relative;
    padding: 22px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}

    .why-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: radial-gradient(circle at 20% 10%, rgba(13,110,253,.18), transparent 55%), radial-gradient(circle at 80% 20%, rgba(242,195,0,.16), transparent 60%);
        opacity: .9;
        pointer-events: none;
    }

    .why-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,.10);
        border-color: rgba(13,110,253,.18);
    }

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13,110,253,.14), rgba(242,195,0,.14));
    border: 1px solid rgba(13,110,253,.12);
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

    .why-icon i {
        font-size: 26px;
        color: #0d6efd;
    }

.why-title {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 16px;
    color: #0b1e6d;
    letter-spacing: .2px;
}

.why-desc {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: rgba(33,37,41,.78);
    font-size: 14px;
    line-height: 1.45;
}

/* Slight tighter on small screens */
@media (max-width: 576px) {
    .why-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .why-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
}
.section.alt {
    background: linear-gradient(180deg, rgba(13,110,253,.03), rgba(242,195,0,.03));
}

/* Mega menu base */
.navbar .dropdown.mega {
    position: static;
}

.navbar .dropdown-menu.mega-menu {
    width: min(1100px, calc(100vw - 40px));
    left: 50%;
    transform: translateX(-50%);
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    overflow: hidden;
    background: #fff;
}

/* Inner spacing */
.mega-inner {
    background: #fff;
}

.mega-title {
    font-weight: 800;
    color: #0b1e6d;
    margin-bottom: 10px;
    letter-spacing: .2px;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #212529;
    font-weight: 600;
}

    .mega-link:hover {
        background: rgba(13,110,253,.06);
        color: #0d6efd;
    }

.mega-card {
    border-radius: 16px;
    background: rgba(13,110,253,.06);
    border: 1px solid rgba(13,110,253,.10);
    padding: 16px;
}

    .mega-card.alt {
        background: rgba(242,195,0,.10);
        border-color: rgba(242,195,0,.18);
    }

/* Better dropdown animation */
.navbar .dropdown-menu {
    margin-top: 14px;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown > .dropdown-toggle::after {
        margin-left: .35rem;
    }
}

/* On mobile: keep dropdown normal full width */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu.mega-menu {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,.08);
        margin-top: 8px;
    }
}

/* Action Cards Section */
.action-cards {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

/* Professional Card */
.action-card-pro {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: all .28s ease;
    height: 100%; /* ensures equal height */
    min-height: 110px; /* same card size */
}

    /* content wrapper */
    .action-card-pro .content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* title */
    .action-card-pro .title {
        font-weight: 700;
        font-size: 16px;
        color: #111;
        line-height: 1.2;
    }

    /* description */
    .action-card-pro .desc {
        margin: 4px 0 0;
        font-size: 13px;
        color: #6c757d;
    }

    /* Icon circle */
    .action-card-pro .icon {
        width: 52px;
        height: 52px;
        background: #0b1e6d;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex-shrink: 0;
    }

    /* Title */
    .action-card-pro .title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    

    /* Description */
    .action-card-pro .desc {
        margin: 0;
        font-size: 13px;
        color: #6c757d;
    }

    /* Hover effect */
    .action-card-pro:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 36px rgba(0,0,0,.14);
    }

        .action-card-pro:hover .icon {
            background: #0d6efd;
        }

/* Section positioning */
.action-cards {
    margin-top: -65px;
    position: relative;
    z-index: 5;
}

/* Card design */
.action-card-pro {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
    text-decoration: none;
    transition: all .35s ease;
    height: 100%;
    min-height: 115px;
}

    /* Icon circle */
    .action-card-pro .icon {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg,#0b1e6d,#193b9b);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex-shrink: 0;
        transition: all .35s ease;
    }

    /* Text content */
    .action-card-pro .content {
        display: flex;
        flex-direction: column;
    }

    /* Title */
    .action-card-pro .title {
        font-weight: 700;
        font-size: 16px;
        color: #1a1a1a;
        line-height: 1.25;
    }

    /* Description */
    .action-card-pro .desc {
        margin: 4px 0 0;
        font-size: 13px;
        color: #6c757d;
    }

    /* Hover */
    .action-card-pro:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,.18);
    }

        /* Icon hover */
        .action-card-pro:hover .icon {
            background: linear-gradient(135deg,#f2c300,#ffda5a);
            color: #0b1e6d;
        }

        /* Title hover */
        .action-card-pro:hover .title {
            color: #0b1e6d;
        }

/* Reserve bottom space ONLY when announcement exists */
body.has-annbar {
    padding-bottom: 78px;
}

@media (max-width: 576px) {
    body.has-annbar {
        padding-bottom: 92px;
    }
}

.ann-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0; /* always at bottom */
    z-index: 9999;
    padding: 10px 0 12px;
    pointer-events: none; /* allow page interactions */
}

    .ann-fixed .container-xl {
        pointer-events: auto;
    }

.ann-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    overflow: hidden;
    /* premium glass */
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.ann-left {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(13,110,253,.07);
    color: #0d6efd;
    font-weight: 800;
    flex: 0 0 auto;
    white-space: nowrap;
    border-right: 1px solid rgba(0,0,0,.06);
}

    .ann-left i {
        font-size: 18px;
    }

.ann-title {
    letter-spacing: .2px;
}

.ann-mid {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 10px 0;
}

.ann-one {
    padding: 0 12px;
    font-weight: 600;
    color: #212529;
}

    .ann-one a {
        color: inherit;
        text-decoration: none;
    }

        .ann-one a:hover {
            text-decoration: underline;
        }

.ann-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: annScroll 28s linear infinite;
}

.ann-shell:hover .ann-track {
    animation-play-state: paused;
}

.ann-items {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    white-space: nowrap;
}

.ann-item {
    color: #212529;
    font-weight: 600;
}

    .ann-item a {
        color: inherit;
        text-decoration: none;
    }

        .ann-item a:hover {
            text-decoration: underline;
        }

.ann-sep {
    color: rgba(0,0,0,.28);
}

.ann-new {
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 8px;
    position: relative;
    top: -1px;
}

.ann-close {
    border: 0;
    background: transparent;
    padding: 0 14px;
    height: 100%;
    color: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ann-close:hover {
        color: rgba(0,0,0,.9);
    }

@keyframes annScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Mobile tuning */
@media (max-width: 576px) {
    .ann-left {
        padding: 12px;
    }

    .ann-mid {
        padding: 12px 0;
    }

    .ann-track {
        animation-duration: 22s;
    }
}
/* Reserve bottom space ONLY when announcement exists */
body.has-annbar {
    padding-bottom: 78px;
}

@media (max-width: 576px) {
    body.has-annbar {
        padding-bottom: 92px;
    }
}

.ann-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 10px 0 12px;
    pointer-events: none;
}

    .ann-fixed .container-xl {
        pointer-events: auto;
    }

.ann-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.ann-left {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(13,110,253,.07);
    color: #0d6efd;
    font-weight: 800;
    flex: 0 0 auto;
    white-space: nowrap;
    border-right: 1px solid rgba(0,0,0,.06);
}

    .ann-left i {
        font-size: 18px;
    }

.ann-mid {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 10px 0;
}

.ann-one {
    padding: 0 12px;
    font-weight: 600;
    color: #212529;
}

    .ann-one a {
        color: inherit;
        text-decoration: none;
    }

        .ann-one a:hover {
            text-decoration: underline;
        }

.ann-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: annScroll 28s linear infinite;
}

.ann-shell:hover .ann-track {
    animation-play-state: paused;
}

.ann-items {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    white-space: nowrap;
}

.ann-item {
    color: #212529;
    font-weight: 600;
}

    .ann-item a {
        color: inherit;
        text-decoration: none;
    }

        .ann-item a:hover {
            text-decoration: underline;
        }

.ann-sep {
    color: rgba(0,0,0,.28);
}

.ann-new {
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 8px;
    position: relative;
    top: -1px;
}

.ann-close {
    border: 0;
    background: transparent;
    padding: 0 14px;
    height: 100%;
    color: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ann-close:hover {
        color: rgba(0,0,0,.9);
    }

@keyframes annScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .ann-left {
        padding: 12px;
    }

    .ann-mid {
        padding: 12px 0;
    }

    .ann-track {
        animation-duration: 22s;
    }
}
/* reopen announcement button */

.ann-reopen-btn {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    z-index: 9999;
    transition: all .25s ease;
}

    .ann-reopen-btn:hover {
        transform: scale(1.08);
        background: #0b5ed7;
    }

.infra-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: .3s;
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

    .infra-photo:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 24px rgba(0,0,0,.25);
    }

.social-mini {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f5;
    color: #333 !important;
    text-decoration: none;
    transition: .25s;
}

    .social-mini i {
        font-size: 15px;
        color: #333 !important;
    }

    .social-mini:hover {
        background: #0d6efd;
        transform: translateY(-2px);
    }

        .social-mini:hover i {
            color: #fff !important;
        }

.top-strip {
    background: linear-gradient(90deg, #f8fafc 0%, #eef4ff 100%);
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 13px;
}

.top-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.top-strip-left,
.top-strip-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.top-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #495057;
    font-weight: 500;
}

    .top-contact-item i {
        color: #0d6efd;
        font-size: 14px;
    }

.top-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-mini {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #334155 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
    transition: all .25s ease;
    border: 1px solid rgba(0,0,0,.05);
}

    .social-mini i {
        font-size: 15px;
        line-height: 1;
        color: inherit !important;
    }

    .social-mini:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 10px 20px rgba(0,0,0,.12);
    }

.social-facebook:hover {
    background: #1877f2;
    color: #fff !important;
}

.social-instagram:hover {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #fff !important;
}

.social-youtube:hover {
    background: #ff0000;
    color: #fff !important;
}

.social-linkedin:hover {
    background: #0a66c2;
    color: #fff !important;
}

.social-twitter:hover {
    background: #111827;
    color: #fff !important;
}

.social-whatsapp:hover {
    background: #25d366;
    color: #fff !important;
}

.top-strip-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-login-btn {
    border-radius: 999px !important;
    padding-left: 12px;
    padding-right: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

@media (max-width: 991.98px) {
    .top-strip {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .top-strip-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-strip-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .top-strip-left,
    .top-strip-right,
    .top-strip-actions {
        width: 100%;
    }

    .top-strip-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .top-strip-actions {
        gap: 8px;
    }

    .top-login-btn {
        width: auto;
    }
    
}
