
@font-face {
    font-family: Montserrat-Medium;
    src: url(../fonts/Montserrat-Medium.ttf) format('truetype');
}
@font-face {
    font-family: Montserrat-regular;
    src: url(../fonts/Montserrat-Regular.ttf) format('truetype');
}
@font-face {
    font-family: Montserrat-semibold;
    src: url(../fonts/Montserrat-SemiBold.ttf) format('truetype');
}
@font-face {
    font-family: Montserrat-bold;
    src: url(../fonts/Montserrat-Bold.ttf) format('truetype');
}

/* Design tokens — the palette is unchanged; components below derive from these
   so radii, shadows, and hover behavior stay consistent site-wide. */
:root {
    --bh-blue: #014eb4;
    --bh-blue-deep: #013c8a;
    --bh-blue-tint: #ecf3fc;
    --bh-navy: #253241;
    --bh-ink: #212b36;
    --bh-muted: #5c6b7a;
    --bh-cream: #f7f2dd;
    --bh-line: rgba(37, 50, 65, 0.12);
    --bh-line-soft: rgba(37, 50, 65, 0.08);
    --bh-radius: 10px;
    --bh-shadow-card: 0 1px 2px rgba(37,50,65,.05), 0 8px 24px rgba(37,50,65,.08);
    --bh-shadow-lift: 0 2px 4px rgba(37,50,65,.06), 0 14px 34px rgba(37,50,65,.14);
}

body {
    font-size: 16px;
    color: var(--bh-ink);
    font-family: Montserrat-regular;
    background-color: #ffffff;
}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(1, 78, 180, 0.45);
    outline-offset: 2px;
}
label {
    margin-top: 1rem;
}

.RadEditor_Bootstrap {
    width: auto !important;
}
li::marker {
    font-size: 30px !important;
    color: #0c2e60 !important;
}
.topbar .left-bar{
    gap:14px;
}
.padzero {
    padding: 0px !important;
}
.mb30{margin-bottom: 30px !important}
.pdlft100 {
    padding-left: 100px;
}

.header{float: left;width: 100%;}
.header .navbar.navbar-expand-lg.navbar-light {
    background: #fff;
    border-bottom: 1px solid var(--bh-line-soft);
    box-shadow: 0 1px 0 rgba(37,50,65,.04), 0 6px 18px rgba(37,50,65,.05);
    min-height: 78px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.header .navbar.navbar-expand-lg.navbar-light .navbar-brand img {
    height: 46px;
    width: auto;
}
.header .navbar-nav .nav-link {
    color: var(--bh-ink);
    font-family: Montserrat-bold;
    font-size: 14.5px;
    margin: 0 .35rem;
    padding: 9px 13px;
    border-radius: 7px;
    transition: background .15s ease, color .15s ease;
}
.header .navbar-nav .nav-link:hover {
    color: var(--bh-blue);
    background: var(--bh-blue-tint);
}
/* Single blue CTA in the nav; everything else stays quiet */
.header .navbar-nav .nav-link.nav-cta {
    background: var(--bh-blue);
    color: #fff;
    margin-left: 6px;
}
.header .navbar-nav .nav-link.nav-cta:hover {
    background: var(--bh-blue-deep);
    color: #fff;
}
.topbar {
    position: relative;
    float: left;
    width: 100%;
    background: #253241;
    padding: 7px 0;
}
.mailandnumber {
    display: block;
    padding: 0;
    margin: 0;
}
.mailandnumber li {
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
}
.mailandnumber li:first-child {
    margin-right: 20px;
    border-right: 1px solid rgba(255,255,255,.25);
    padding-right: 20px;
}
.mailandnumber li a {
    color: #e7ecf2;
    font-size: 13.5px;
    font-family: Montserrat-Medium;
    transition: color .18s ease;
}
.mailandnumber li a:hover {
    color: #fff;
    text-decoration: underline;
}
/* Quiet outline buttons on the navy top bar — blue is reserved for primary actions */
.loginbtn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    padding: 8px 16px;
    font-size: 13.5px;
    font-family: Montserrat-Medium;
    transition: background .18s ease, border-color .18s ease;
}
.loginbtn:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.6);
    color: #fff;
    text-decoration: none;
}

.banner{float: left;width: 100%;}
.banner img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}
/* Soft dark overlay keeps caption text legible over any slide photo */
.banner .carousel-item::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(rgba(16,24,33,.55), rgba(16,24,33,.55));
}
/* Dots sit above the search card that overlaps the slider bottom */
.banner .carousel-indicators {
    bottom: 86px;
    margin-bottom: 0;
}
.banner .carousel-item .carousel-caption {
    top: 42%;
    transform: translate(-50%, -50%);
    left: 50%;
    width: 52%;
    margin: 0 auto;
    z-index: 2;
}
/* Circular arrow controls + clickable dots replace the bare chevrons */
.banner .carousel-control-prev,
.banner .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 18px;
    background: rgba(16,24,33,.35);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    opacity: 1;
    transition: background .18s ease, border-color .18s ease;
}
.banner .carousel-control-prev:hover,
.banner .carousel-control-next:hover {
    background: rgba(1,78,180,.75);
    border-color: transparent;
}
.banner .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    margin: 0 4px;
    background: rgba(255,255,255,.4);
    transition: background .18s ease, transform .18s ease;
}
.banner .carousel-indicators li.active {
    background: #fff;
    transform: scale(1.25);
}
.banner h5 {
    color: #9db8dd;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin: 0 0 14px;
    font-family: Montserrat-bold;
}
.picturead{
    display:flex;
    align-items:center;
    justify-content:center;
}
.banner h4 {
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    font-family: Montserrat-bold;
}
.banner p {
    color: #d4dce5;
    font-size: 17.5px;
    max-width: 34em;
    margin: 0 auto 26px;
}
.btncss {
    background: var(--bh-blue);
    color: #fff;
    border-radius: 8px;
    padding: 14px 28px;
    display: inline-block;
    transition: background .18s ease;
    font-family: Montserrat-semibold;
    border: none;
}
    /* Hover deepens the blue instead of inverting to white */
    .btncss:hover {
        background: var(--bh-blue-deep);
        color: #fff;
        text-decoration: none;
    }
/* Signature move from the mockup: the white search card overlaps the slider bottom */
.Find_match_form{
    float: left;
    width: 100%;
    margin-top: -76px;
    position: relative;
    z-index: 5;
}
.Find_match_form .form-label {
    color: var(--bh-navy);
    font-size: 12px;
    font-family: 'Montserrat-SemiBold';
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.Find_match_form .form-label span {
    color: #cccccc;
    margin: 0 6px 0 0;
    font-family: 'Montserrat-Bold';
    font-size: 16px;
}
.Find_match_form .form-control {
    border: 1px solid var(--bh-line);
    border-radius: 8px;
    color: var(--bh-ink);
    height: 50px;
    font-size: 15px;
    margin-right: 8px;
}
.Find_match_form .form-control:hover {
    border-color: rgba(37,50,65,.28);
}
.Find_match_form select.form-control {
    -moz-appearance: none;
    -webkit-appearance: none;
    background:url(../image/arrow.png);
    background-repeat: no-repeat;
    background-position: 94% center;
}
.Find_match_form form .btncss {
    width: 100%;
    margin: 35px 0 0;
}
.Find_match_form form .btncss:hover {
    background:#253241;
    color: #fff; 
}
/* Quiet eyebrow inside the search card, per the mockup */
.formHeading {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: var(--bh-blue);
    font-size: 11px;
    letter-spacing: .14em;
    font-family: Montserrat-bold;
    margin: 0 0 12px;
}
.formHeading span img {
    margin: 0 8px 0 0;
    height: 16px;
}

h4.heading {
    color: #253241;
    font-size: 28px;
    letter-spacing: -0.01em;
    margin: 40px 0 22px;
    font-family: Montserrat-bold;
}
h4.heading span {
    color: #014eb4;
}

.mainsec {
    float: left;
    width: 100%;
    padding: 84px 0 90px;
    background-color: #ffffff;
}
.View_Classifieds {
    background-color: rgb(255, 255, 255);
    border: 1px solid var(--bh-line-soft);
    border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow-card);
    float: left;
    width: 100%;
    padding: 8px 26px;
    margin: 0 0 30px;
}
.View_Classifieds_inner {
    float: left;
    width: 100%;
    border-bottom: 1px solid var(--bh-line-soft);
    margin: 0;
    padding: 22px 0;
}
.View_Classifieds_inner:last-child {
    border-bottom: none;
}
.View_Classifieds_inner h4 {
    color: var(--bh-navy);
    font-size: 17.5px;
    margin: 0 0 6px;
    font-family: Montserrat-bold;
}
.View_Classifieds_inner p {
    color: var(--bh-muted);
    font-size: 14.5px;
    margin: 0 0 10px;
}
    .View_Classifieds_inner a {
        color: var(--bh-blue);
        font-size: 14.5px;
        margin: 0 0 0px;
        font-family: Montserrat-bold;
        transition: color .15s ease;
    }
    .View_Classifieds_inner a::after {
        content: " \2192";
    }
    .View_Classifieds_inner a:hover {
        color: var(--bh-blue-deep);
        text-decoration: underline;
    }
.adimg img {
    width: 100%;
}
.PictureAdsinr {
    display: block;
    margin: 0 0 30px;
    transition: transform .18s ease;
}
.PictureAdsinr:hover {
    transform: translateY(-2px);
}
.PictureAdsinr:hover img {
    opacity: .92;
}

.PictureAdsinr img, .twoadsimg img {
    width: 100%;
}

/*************************
 * Banner ad tiles (BannerAdDisplay control)
 */
.bannerad {
    background: #fff;
    border: 1px solid var(--bh-line-soft);
    border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow-card);
    overflow: hidden;
    margin-bottom: 8px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.bannerad:hover {
    transform: translateY(-3px);
    box-shadow: var(--bh-shadow-lift);
}
.bannerad img {
    display: block;
}

/* An open featured slot sells itself instead of sitting empty */
.adslot-open {
    border: 1.5px dashed rgba(37,50,65,.3);
    border-radius: var(--bh-radius);
    background: rgba(255,255,255,.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 18px;
    min-height: 178px;
    height: 100%;
}
.adslot-open .name {
    color: var(--bh-blue);
    font-family: Montserrat-bold;
    font-size: 15.5px;
}
.adslot-open .line {
    color: var(--bh-muted);
    font-size: 13px;
    margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .bannerad, .PictureAdsinr, .btncss, .loginbtn {
        transition: none;
    }
    .bannerad:hover, .PictureAdsinr:hover {
        transform: none;
    }
}


footer {
    float: left;
    width: 100%;
    padding: 80px 0 40px;
    background: #121820;
}
/* The navy wordmark disappears on the dark footer; give it a white chip */
.footerlogo {
    background: #fff;
    border-radius: 10px;
    display: inline-block;
    padding: 12px 20px;
    margin-bottom: 10px;
}
.footerlogo img {
    width: 100%;
    max-width: 260px;
}
footer ul.social_icon {
    margin: 30px 0 40px;
    padding: 0;
    display: block;
}
footer ul.social_icon li{
    margin: 0px 0 0;
    padding: 0;
    display: inline-block;
}
footer ul.social_icon li .socicon {
    color: #a9aeb3;
    background: #34404e;
    width: 40px;
    height: 40px;
    display: inline-block;
    line-height: 40px;
    border-radius: 50px;
    margin: 0 2px;
    transition: 0.5s;
}
footer ul.social_icon li .socicon:hover {
    color: #014eb4;
    background: #fff;
    transition: 0.5s;
}
.footerlinks {
    float: left;
    width: 100%;
}
.footerlinks h2 {
    float: left;
    width: 100%;
    color: #fff;
    font-size: 20px;
    margin: 0 0 30px;
    font-family: Montserrat-semibold;
}
.footerlinks ul {
    padding: 0;
    margin: 0;
    float: left;
    width: 100%;
}
.footerlinks ul li {
    list-style: none;
    margin: 0 0 5px;
}
.footerlinks ul li a {
    color: #a9aeb3;
    font-size: 15px;
    font-family: Montserrat-Medium;
    transition: 0.5s;
}
.footerlinks ul li a:hover {
    color: #fff;
    text-decoration: none;
    transition: 0.5s;
}
.footerlinks p {
    color: #a9aeb3;
    font-size: 15px !important;
    font-family: Montserrat-Medium;
}
.footerlinks ul.contactinfo {
    margin: 30px 0 0;
}
.footerlinks ul.contactinfo li {
    margin: 0 0 15px;
}
.footerlinks ul.contactinfo li a span img {
    margin: 0 8px 0 0;
}
.footerlinks .form-control {
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
}
.footerlinks .form-control::placeholder {
    color: #7c8894;
}
.footerlinks .btncss {
    padding: 15px 40px;
}
.Copyright {
    color: #a8a8a8;
    text-align: center;
    margin: 60px 0 0;
    font-family: Montserrat-Medium;
}
.sidebar .widget {
    border: 1px solid #e0e4e6;
    border-radius: 5px;
    padding: 15px;
    position: relative;
    margin-bottom: 30px;
}

    .sidebar .widget .single-course .ribbon {
        font-size: 13px;
        padding: 2px 10px;
    }

    .sidebar .widget .single-course .course-content {
        padding: 15px;
    }

        .sidebar .widget .single-course .course-content h3 {
            margin: 0;
            padding: 0;
        }

            .sidebar .widget .single-course .course-content h3 a {
                font-size: 13px;
                line-height: 1.5;
            }

    .sidebar .widget ul.social-media.nav.nav-tabs {
        border: none;
    }

        .sidebar .widget ul.social-media.nav.nav-tabs li {
            text-align: center;
            -webkit-box-flex: 1;
            -ms-flex: 1;
            flex: 1;
        }

            .sidebar .widget ul.social-media.nav.nav-tabs li a {
                display: block;
            }

                .sidebar .widget ul.social-media.nav.nav-tabs li a i {
                    display: block;
                    background: var(--bh-blue);
                    color: #fff;
                    padding: 10px 0;
                }

    .sidebar .widget form input, .sidebar .widget form textarea {
        border-radius: 0;
        font-size: 14px;
    }

    .sidebar .widget form button {
        display: block;
        width: 100%;
        padding: 15px;
    }

    .sidebar .widget .widget-title {
        text-transform: capitalize;
        margin-bottom: 20px;
    }
.buy-course {
    text-align: center;
}

    .buy-course .btn {
        padding: 15px;
        width: 100%;
    }

    .buy-course .btn-outline {
        border-radius: 0;
        margin-bottom: 10px;
    }

.course-content {
    border: 1px solid #e0e4e6;
    border-radius: 3px;
    padding: 15px 20px;
    position: relative;
}

    .course-content dt.product-item-part {
        width: 50%;
        text-transform: capitalize;
    }

@media screen and (max-width: 575px) {
    .course-content {
        padding: 15px;
    }
}

.course-content h3 {
    font-size: 36px;
    line-height: 30px;
    text-align: center;
    margin-bottom: 13px;
}

    .course-content h3 a {
        font-size: 20px;
        display: block;
        color: #000;
    }

        .course-content h3 a:hover {
            color: var(--bh-blue);
        }

@media screen and (max-width: 575px) {
    .course-content h3 {
        font-size: 24px;
    }
}

.course-content h3 .badge {
    margin-left: 0;
}

.course-content p {
    color: #0c2e60;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 20px;
}

@media screen and (max-width: 575px) {
    .course-content p {
        font-size: 15px;
    }
}

.course-content ul li {
    display: inline-block;
    width: 49%;
}

    .course-content ul li i {
        margin-right: 10px;
    }

.course-content .details span {
    display: inline-block;
    position: relative;
    margin-right: 10px;
    padding-right: 10px;
    line-height: 1;
}

@media screen and (max-width: 767px) {
    .course-content .details span {
        font-size: 13px;
    }
    .View_Classifieds {
        padding: 16px;
    }
    .mainsec {
        padding-left: 20px !important;
    }
        .mainsec .container-fluid, .Find_match_form .container-fluid {
            width: 100% !important;
        }
  
}


.course-content .details span a {
    color: #f98f05;
}

.course-content .details span:after {
    content: '';
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    background-color: #525151;
    height: 100%;
    width: 1px;
}

.course-content .details .ratings {
    display: inline-block;
}

.course-content .enroll {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

    .course-content .enroll div {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }

    .course-content .enroll .total-students {
        display: block;
        margin: 0;
    }
.buy-course .btn {
    padding: 15px;
    width: 100%;
}

.btn-filled {
    border-radius: 8px;
    background: var(--bh-blue);
    -webkit-transition: background .18s ease;
    transition: background .18s ease;
}
.btn-filled:hover {
    background: var(--bh-blue-deep);
}
.btn {
    border: none;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    line-height: 0.8;
    text-transform: uppercase;
    padding: 20px 40px;
}
.discount-price {
    display: block;
    margin-bottom: 15px;
}
/* Print-copy request: quiet outline button (shared by classifieds + picture ads) */
.printCopy {
    width: auto !important;
    margin-left: 0 !important;
    background: #fff;
    border: 1px solid var(--bh-line);
    border-radius: 8px;
    display: inline-block;
    padding: 12px 22px;
    transition: border-color .15s ease;
}
.printCopy:hover {
    border-color: var(--bh-blue);
}
.printCopy a {
    color: var(--bh-navy);
    font-family: Montserrat-semibold;
    text-decoration: none;
}
.printCopy:hover a {
    color: var(--bh-blue);
}
.alignCenter {
    text-align: center;
}
/* Category sidebar card (classifieds + picture ads) */
.cat-sidebar h4 {
    color: var(--bh-navy);
    font-family: Montserrat-bold;
    font-size: 20px;
    margin-bottom: 12px;
}
.cat-sidebar ul {
    list-style: none;
    margin: 0;
    background: #fff;
    border: 1px solid var(--bh-line-soft);
    border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow-card);
    padding: 10px;
}
.cat-sidebar li {
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 14.5px;
    color: var(--bh-muted);
    transition: background .15s ease;
}
.cat-sidebar li::marker {
    font-size: 0 !important;
}
.cat-sidebar li:hover {
    background: var(--bh-blue-tint);
}
.cat-sidebar li a {
    color: var(--bh-ink) !important;
    text-decoration: none;
}
.cat-sidebar li:hover a {
    color: var(--bh-blue) !important;
}
.cat-sidebar .more a {
    color: var(--bh-blue) !important;
    font-family: Montserrat-semibold;
    font-size: 14.5px;
}
.cat-sidebar .more a::after {
    content: " \2192";
}
.RadForm.rfdFieldset fieldset {
  padding:0  !important; 
  
}
.sidebar > h4{
margin-top:1rem;
}
.blog-posts ul{
    padding:0 1rem;
}
/*************************
 * Login / Registration / Submission forms
 * (restored from css/style.css, which the site does not load)
 */
@media screen and (min-width: 1200px) {
  .login-registration {
    padding: 5% 0 5%;
  }
}

.login-registration .content-box, .login-registration .content-box-fluid {
  margin-bottom: 30px;
}

.content-box h2, .content-box-fluid h2 {
  font-size: 30px;
  line-height: 40px;
  margin-bottom: 23px;
}

@media screen and (max-width: 479px) {
  .content-box h2, .content-box-fluid h2 {
    font-size: 26px;
    line-height: 34px;
  }
}

.content-box h5, .content-box-fluid h5 {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  margin-bottom: 30px;
}

.content-box .btn, .content-box-fluid .btn {
  margin-top: 25px;
}

.sl-form {
  position: relative;
  width: 100%;
}

@media screen and (max-width: 991px) {
  .sl-form {
    margin: 0 auto;
  }
}

.sl-form .form-group {
  position: relative;
  padding: 0;
  margin-bottom: 20px;
}

.sl-form .form-group label {
  color: #0c2e60;
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}

.sl-form .form-group input:not([type="checkbox"]) {
  border: 1px solid #e0e4e6;
  display: block;
  padding: 10px 15px;
  width: 100%;
}

.sl-form .form-check {
  margin-bottom: 30px;
}

.sl-form .form-check label {
  color: #000;
}

.sl-form .form-check label a {
  color: #000;
}

.sl-form .form-check label a:hover {
  text-decoration: underline;
}

.sl-form .form-check input {
  margin-top: 8px;
}

.sl-form .btn {
  margin-bottom: 30px;
  text-transform: uppercase;
}

.sl-form .notice {
  color: #000;
}

.sl-form .notice a {
  color: var(--bh-blue);
}

.sl-form .notice a:hover {
  text-decoration: underline;
}

/*************************
 * Submission wizard refinements
 */
.wizard-step-indicator {
  color: #0c2e60;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid #e0e4e6;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.field-hint {
  color: #6c757d;
  font-size: 0.875em;
  margin: 4px 0 10px;
}

.btncss + .btncss {
  margin-left: 10px;
}

.validation-summary {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  margin: 15px 0;
  padding: 12px 20px;
}

.validation-summary ul {
  margin: 5px 0 0;
  padding-left: 20px;
}

.upload-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.upload-thumbs .upload-thumb {
  border: 1px solid #e0e4e6;
  border-radius: 4px;
  padding: 5px;
  text-align: center;
  width: 130px;
}

.upload-thumbs .upload-thumb img {
  max-width: 118px;
  max-height: 90px;
  display: block;
  margin: 0 auto 4px;
}

.upload-thumbs .upload-thumb span {
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*************************
 * Ad browsing pages
 */
.browse-pad {
  padding-left: 50px;
  padding-right: 50px;
}

@media screen and (max-width: 767px) {
  .browse-pad {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.classified-ad {
  padding: 16px 0;
  border-bottom: 1px solid #e0e4e6;
  max-width: 900px;
  line-height: 1.5;
  word-break: break-word;
}

.classified-ad:last-of-type {
  border-bottom: none;
}

/*************************
 * Home search form + banner heading (moved from BHSite_v2.Master inline styles)
 */
.match_form {
  float: left;
  width: 100%;
  background-color: #fff;
  border: 1px solid var(--bh-line-soft);
  border-radius: var(--bh-radius);
  padding: 26px 34px 34px;
  box-sizing: border-box;
  box-shadow: var(--bh-shadow-lift);
  position: relative;
}

.match_form .btncss {
  width: 100%;
  margin: 0;
}

.match_form .btncss:hover {
  background: #253241;
  color: #fff;
}

.hd1 {
  color: #fff;
}

/* Server-side error labels render an empty span when there is no error;
   don't show an empty alert box (important to beat Bootstrap's .d-block). */
.alert:empty {
  display: none !important;
}

/*************************
 * Picture ad rates sidebar
 */
.rate-table {
  border-collapse: collapse;
  margin-bottom: 15px;
  width: 100%;
  max-width: 420px;
}

.rate-table th {
  background: var(--bh-navy);
  color: #fff;
  padding: 8px 12px;
  text-align: left;
}

.rate-table td {
  border: 1px solid #e0e4e6;
  padding: 6px 12px;
}

.rate-table tr:nth-child(even) td {
  background-color: #f5f7f8;
}

.rate-sizes img {
  max-width: 100%;
  height: auto;
}

/* Picture-ad browsing pages: pager pills, section headers, and card tiles
   share the front page's card language (tokens above). */
.pager-row {
  margin: 10px 0 18px;
  font-size: 14px;
}
/* The DataPager itself renders as one outer span wrapping the page links */
.pager-row > span {
  display: block;
}
.pager-row a,
.pager-row span span {
  display: inline-block;
  min-width: 36px;
  padding: 6px 11px;
  margin: 0 3px 4px 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 7px;
  color: var(--bh-navy) !important;
  font-family: Montserrat-semibold;
  text-decoration: none !important;
  transition: border-color .15s ease, color .15s ease;
}
.pager-row a:hover {
  border-color: var(--bh-blue);
  color: var(--bh-blue) !important;
}
/* Current page (and disabled arrows) render as inner spans */
.pager-row span span {
  background: var(--bh-blue);
  border-color: var(--bh-blue);
  color: #fff !important;
}
.pager-row span span.aspNetDisabled {
  background: #fff;
  border-color: var(--bh-line-soft);
  color: var(--bh-muted) !important;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bh-line-soft);
}
.category-header h2 {
  margin: 0;
  color: var(--bh-navy);
  font-size: 21px;
  font-family: Montserrat-bold;
  letter-spacing: -0.01em;
}
.picAdBtn {
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: Montserrat-semibold;
  color: var(--bh-navy) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.picAdBtn:hover {
  border-color: var(--bh-blue);
  color: var(--bh-blue) !important;
}

.category-ads {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.CatItemDiv {
  background: #fff;
  border: 1px solid var(--bh-line-soft);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow-card);
  padding: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.CatItemDiv:hover {
  transform: translateY(-3px);
  box-shadow: var(--bh-shadow-lift);
}
.CatItemDiv .img-hover-zoom {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.CatItemDiv img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.CatItemDiv .tile-company {
  margin: 12px 2px 2px;
}
.CatItemDiv .tile-company h5 {
  margin: 0;
  color: var(--bh-navy);
  font-family: Montserrat-semibold;
  font-size: 14.5px;
  line-height: 1.35;
}
@media (prefers-reduced-motion: reduce) {
  .CatItemDiv, .CatItemDiv:hover { transition: none; transform: none; }
}

/* Ad detail modals opened from the tiles */
.modal-content {
  border: none;
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow-lift);
}
.modal-header .modal-title {
  margin: 0;
  color: var(--bh-navy);
  font-size: 20px;
  font-family: Montserrat-bold;
}
.modal-header .close.pad {
  font-size: 26px;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
  color: var(--bh-muted);
}
.modal-header .close.pad:hover {
  color: var(--bh-navy);
}

/*************************
 * Payment section on the submission wizards
 */
.payment-box {
  background-color: #f8fafb;
  border: 1px solid #e0e4e6;
  border-radius: 4px;
  margin: 20px 0;
  padding: 20px;
}

.payment-box h4 {
  color: #0c2e60;
  margin-bottom: 10px;
}

.payment-box .cc-logos img {
  max-width: 250px;
  width: 100%;
}

.payment-box .cc-exp {
  gap: 10px;
}

/*************************
 * Admin portal (BHAdmin.Master pages). Scoped under .admin-portal on the
 * body so nothing here leaks into the public site. The pages keep their
 * legacy class names (mydatagrid/dgheader/dgrows/dgpager, btn-filled,
 * sl-form) — these rules restyle those names with the shared tokens.
 */
.admin-portal .admin-main {
  padding: 28px 0 56px;
  float: left;
  width: 100%;
}
/* Pages title themselves with a bare h5; give it the navy heading treatment */
.admin-portal .admin-main h5 {
  color: var(--bh-navy);
  font-family: Montserrat-bold;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.admin-portal .topbar .portal-name {
  color: #fff;
  font-family: Montserrat-semibold;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
}
.admin-portal .topbar .welcome-name {
  color: #d4dce5;
  font-size: 13.5px;
}
.admin-portal footer {
  padding: 30px 0;
}
.admin-portal footer .Copyright {
  margin: 4px 0 0;
}

/* Primary buttons: same treatment as the public .btncss */
.admin-portal .btn-filled {
  background: var(--bh-blue);
  border: none;
  border-radius: 8px;
  color: #fff !important;
  font-family: Montserrat-semibold;
  transition: background .18s ease;
}
.admin-portal .btn-filled:hover,
.admin-portal .btn-filled:focus {
  background: var(--bh-blue-deep);
  color: #fff !important;
  text-decoration: none;
}
/* Secondary actions (Back, Cancel): quiet outline so blue stays on the primary */
.admin-portal .btn-quiet {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  color: var(--bh-navy);
  font-family: Montserrat-semibold;
  transition: border-color .15s ease, color .15s ease;
}
.admin-portal .btn-quiet:hover,
.admin-portal .btn-quiet:focus {
  background: #fff;
  border-color: var(--bh-blue);
  color: var(--bh-blue);
  text-decoration: none;
}
/* Inline grid editing: actions under the editor, not bare side-by-side links */
.admin-portal .edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.admin-portal .update_btn {
  gap: 10px;
}
/* "Payment Details" links next to gateway IDs — quiet outline, not a second blue */
.admin-portal a.button.payment {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  color: var(--bh-navy);
  font-family: Montserrat-semibold;
  font-size: 14px;
  padding: 9px 16px;
  transition: border-color .15s ease, color .15s ease;
}
.admin-portal a.button.payment:hover {
  border-color: var(--bh-blue);
  color: var(--bh-blue);
  text-decoration: none;
}

/* Edit forms: card wrapper plus consistent inputs (many admin TextBoxes have
   no CssClass, so bare inputs are styled here rather than per control) */
.admin-portal .sl-form {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid var(--bh-line-soft);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow-card);
  padding: 28px;
  margin-bottom: 48px;
}
.admin-portal label {
  color: var(--bh-navy);
  font-family: Montserrat-semibold;
  font-size: 14px;
}
.admin-portal input[type="text"],
.admin-portal input[type="password"],
.admin-portal input[type="email"],
.admin-portal select,
.admin-portal textarea {
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bh-ink);
  font-size: 15px;
  padding: 10px 14px;
  max-width: 100%;
}
.admin-portal input[type="text"]:read-only {
  background: #f4f6f8;
  color: var(--bh-muted);
}
.admin-portal .form-control {
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  height: 46px;
  font-size: 15px;
}
.admin-portal .sl-form h3 {
  color: var(--bh-navy);
  font-family: Montserrat-bold;
  font-size: 22px;
}
/* Validators render as spans right after their control */
.admin-portal .sl-form > div span[style*="color"],
.admin-portal .text-danger {
  font-size: 13px;
}

/* Data grids: card-style table replacing the black-border/#5badff look */
.admin-portal .mydatagrid {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow-card);
  font-size: 14.5px;
}
.admin-portal .mydatagrid th,
.admin-portal .mydatagrid td {
  padding: 11px 14px;
}
.admin-portal .dgheader {
  background: var(--bh-navy);
  color: #fff;
  text-align: left;
}
.admin-portal .dgheader th {
  font-family: Montserrat-semibold;
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-portal .dgheader a {
  color: #fff;
  text-decoration: none;
}
.admin-portal .dgheader a:hover {
  text-decoration: underline;
}
.admin-portal .dgrows {
  background: #fff;
  color: var(--bh-ink);
}
.admin-portal .dgrows td {
  border-top: 1px solid var(--bh-line-soft);
}
/* Tinted hover instead of the old blue/white row inversion */
.admin-portal .dgrows:hover {
  background: var(--bh-blue-tint);
}
.admin-portal .dgrows a {
  color: var(--bh-blue);
  text-decoration: none;
}
.admin-portal .dgrows a:hover {
  text-decoration: underline;
}
/* Pager row: pill buttons matching the public DataPager treatment */
.admin-portal .dgpager {
  background: #fff;
}
.admin-portal .dgpager > td {
  border-top: 1px solid var(--bh-line);
}
.admin-portal .dgpager table td {
  border: none;
  padding: 0 3px;
}
.admin-portal .dgpager a {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  padding: 5px 10px;
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bh-ink);
  text-decoration: none;
  font-size: 13.5px;
}
.admin-portal .dgpager a:hover {
  border-color: var(--bh-blue);
  background: var(--bh-blue-tint);
  color: var(--bh-blue);
}
.admin-portal .dgpager span {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bh-blue);
  color: #fff;
  font-size: 13.5px;
}
