/* =============================================================================
   Lawyers PI Program — Custom Stylesheet
   ============================================================================= */

/* ── Header outer positioning context ───────────────────────────────────── */
#sp-header {
    position: relative;
}

/* ── Studin Trademark image — top-right of header ───────────────────────── */
/* Overrides inline style="position:absolute; right:-150px" */
img[alt="Studin Tradmark"] {
    position: absolute !important;
    top: 8px !important;
    right: 12px !important;
    width: 110px !important;
    height: auto !important;
    z-index: 200;
}

/* ── Primary nav bar (Our Program | About The Academy | … ) ──────────────── */
.sec-nav {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    color: #222;
    background: transparent;
    border-bottom: 2px solid #0345BF;
    margin-bottom: 4px;
}

.sec-nav .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.sec-nav .nav-li a,
.sec-nav .inav-li a {
    color: #0345BF;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 2px 4px;
    transition: color 0.2s;
}

.sec-nav .nav-li a:hover,
.sec-nav .inav-li a:hover {
    color: #022d8a;
    text-decoration: underline;
}

.sec-nav .nav-li-seperator {
    color: #aaa;
    padding: 0 2px;
    list-style: none;
}

/* ── Referral Counter ────────────────────────────────────────────────────── */
.counter {
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #eef3ff;
    padding: 5px 12px;
    border-left: 4px solid #0345BF;
    border-radius: 0 4px 4px 0;
    margin-top: 4px;
    display: inline-block;
}

.counter .btn-primary {
    margin-left: 10px;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 4px;
    background-color: #0345BF;
    border-color: #0345BF;
}

.counter .btn-primary:hover {
    background-color: #022d8a;
    border-color: #022d8a;
}

/* ── Secondary nav bar (Home | About Us | Contact Us | …) ───────────────── */
/* Sits below the primary sec-nav within the same header column              */
.sp-megamenu-wrapper {
    display: block !important;
    margin-top: 6px;
    border-top: 1px solid #e0e7f5;
    padding-top: 4px;
}

ul.sp-megamenu-parent {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    background: transparent;
    gap: 0;
}

ul.sp-megamenu-parent > li.sp-menu-item {
    height: auto !important;
    background: transparent;
}

ul.sp-megamenu-parent > li.sp-menu-item > a {
    font-size: 13px !important;
    font-family: Arial, Helvetica, sans-serif;
    color: #444 !important;
    font-weight: 500;
    line-height: 28px !important;
    padding: 0 10px !important;
    border-right: 1px solid #d0d8ec;
    text-decoration: none;
    display: block;
    transition: color 0.2s, background 0.2s;
}

ul.sp-megamenu-parent > li.sp-menu-item:last-child > a {
    border-right: none;
}

ul.sp-megamenu-parent > li.sp-menu-item > a:hover,
ul.sp-megamenu-parent > li.sp-menu-item.active > a,
ul.sp-megamenu-parent > li.sp-menu-item.current-item > a {
    color: #0345BF !important;
    background: #eef3ff;
    border-radius: 3px;
}

/* ── Off-canvas toggle ───────────────────────────────────────────────────── */
#offcanvas-toggler {
    line-height: 35px !important;
    color: #0345BF !important;
}

/* ── Search bar ──────────────────────────────────────────────────────────── */
#sp-search {
    height: 50px;
}

#mod-finder-searchform93 > label {
    display: none;
}

#mod-finder-searchword93 {
    float: left;
    width: 65%;
}

/* ── Login z-index fix ───────────────────────────────────────────────────── */
input#username {
    z-index: 999;
}

/* ── SP Page Builder override ────────────────────────────────────────────── */
#sppb-addon-1546758690644 {
    margin-top: 0 !important;
}

/* ── Box headings ────────────────────────────────────────────────────────── */
.box-headings {
    padding: 6px 12px;
    border-left: 3px solid #0345BF;
    background: #f4f7ff;
    border-radius: 0 4px 4px 0;
}

/* ── SignUp bodylink button ──────────────────────────────────────────────── */
.bodylink {
    background-color: #0345BF !important;
    color: #fff !important;
    padding: 5px 14px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.bodylink:hover {
    background-color: #022d8a !important;
}

/* ── Off-canvas mobile menu ──────────────────────────────────────────────── */
.offcanvas-menu {
    background-color: #f3f3f3;
}

.hmenu {
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.hmenu > li {
    padding: 14px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.hmenu > li > a {
    font-size: 15px;
    color: #0345BF;
    font-weight: 600;
    text-decoration: none;
}

.hmenu > li > a:hover {
    color: #022d8a;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media only screen and (max-width: 1000px) {
    #sp-menu        { height: auto; }
    .counter        { display: none !important; }
    .sec-nav        { display: none !important; }
    #sp-search      { display: none; }
    img[alt="Studin Tradmark"] { display: none !important; }

    ul.sp-megamenu-parent.d-none { display: none !important; }
}
