/* JibFou Clean Centered & Orange Fix for Blesta 6.0.5 */
:root, [data-bs-theme="light"] {
    --bs-primary: #e85a1a;
    --bs-primary-rgb: 232, 90, 26;
    --bs-link-color: #d94e14;
    --bs-link-hover-color: #b53d0c;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Smooth centered containers across the site */
body .container,
body .container-fluid,
body main,
body #body,
body .content-wrapper,
body .cms-page,
body .page-content {
    width: 100% !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    overflow-x: clip !important;
}

/* Prevent negative row margins from causing horizontal scroll */
body .row {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body .row > [class*="col-"] {
    margin-bottom: 20px;
}

/* Section headings centered & clean */
body h1, body h2, body h3, body h4 {
    line-height: 1.3;
    color: #2b2b2b;
}

body h2, body .section-heading, body .page-title {
    text-align: center !important;
    margin-top: 24px;
    margin-bottom: 18px;
}

/* Orange brand buttons & accents */
body .btn,
body button.btn,
body a.btn,
body input[type="submit"],
body .btn-primary,
body .btn-info,
body .btn-success,
body .badge.bg-primary {
    background-color: #e85a1a !important;
    border-color: #e85a1a !important;
    color: #ffffff !important;
    border-radius: 5px !important;
    padding: 8px 18px;
    text-decoration: none;
}

body .btn:hover,
body button.btn:hover,
body a.btn:hover,
body input[type="submit"]:hover,
body .btn-primary:hover,
body .btn-info:hover {
    background-color: #c84810 !important;
    border-color: #c84810 !important;
    color: #ffffff !important;
}

body a {
    color: #d94e14;
}

body a:hover {
    color: #b53d0c;
}

/* Clean cards & boxes */
body .card,
body .panel,
body .well,
body .pricing-box,
body .package-box {
    background-color: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    padding: 20px !important;
    max-width: 100% !important;
}

/* Images & logo clean scaling */
body img {
    max-width: 100% !important;
    height: auto !important;
}

body img[src*="client_logo"] {
    height: 34px !important;
    width: auto !important;
    max-width: 180px !important;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    body .container,
    body .container-fluid,
    body main,
    body #body {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    body .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 16px !important;
    }

    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body .btn {
        max-width: 100%;
        white-space: normal;
    }
}

/* Hard horizontal scroll prevention across all wrappers & flex/grid children */
html,
body,
#body,
main,
.container,
.container-fluid,
.row,
section,
article,
.cms-page {
    max-width: 100vw !important;
    overflow-x: clip !important;
}

.row > * {
    min-width: 0 !important;
}

pre,
code,
table,
img,
svg,
iframe {
    max-width: 100% !important;
}

/* Clean Caesar-Orange Hover Highlight for Packages & Cards */
body ::selection {
    background-color: rgba(232, 90, 26, 0.22);
    color: #1f1f1f;
}

body .row > [class*="col-"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body .row > [class*="col-"]:hover {
    transform: translateY(-3px);
}

body .row > [class*="col-"]:hover .card,
body .row > [class*="col-"]:hover .panel,
body .row > [class*="col-"]:hover .well,
body .row > [class*="col-"]:hover .pricing-box,
body .row > [class*="col-"]:hover .package-box,
body .card:hover,
body .panel:hover,
body .well:hover {
    border-color: #e85a1a !important;
    box-shadow: 0 8px 20px rgba(232, 90, 26, 0.16) !important;
}

body .row > [class*="col-"]:hover .btn,
body .card:hover .btn,
body .btn:hover {
    background-color: #d94e14 !important;
    border-color: #d94e14 !important;
    color: #ffffff !important;
}

/* Bigger JibFou logo & sticky top header while scrolling */
body img[src*="client_logo"],
body .navbar-brand img,
body header img,
body .logo img {
    height: auto !important;
    max-height: 78px !important;
    max-width: 260px !important;
    width: auto !important;
}

body header,
body .top-header,
body .site-header,
body nav.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background-color: #ffffff !important;
}

@media (max-width: 767.98px) {
    body img[src*="client_logo"],
    body .navbar-brand img,
    body header img,
    body .logo img {
        max-height: 54px !important;
        max-width: 190px !important;
    }
}

/* Bigger JibFou logo & sticky top header while scrolling */
body img[src*="client_logo"],
body .navbar-brand img,
body header img,
body .logo img {
    height: auto !important;
    max-height: 78px !important;
    max-width: 260px !important;
    width: auto !important;
}

body header,
body .top-header,
body .site-header,
body nav.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background-color: #ffffff !important;
}

@media (max-width: 767.98px) {
    body img[src*="client_logo"],
    body .navbar-brand img,
    body header img,
    body .logo img {
        max-height: 54px !important;
        max-width: 190px !important;
    }
}

/* Spacing for Have a question / Support / Address / CCTS / Privacy Policy */
body .privacy-policy,
body .terms-content,
body [class*="privacy"],
body [class*="ccts"],
body [class*="support-box"],
body footer {
    line-height: 1.75 !important;
    margin-top: 28px !important;
    margin-bottom: 28px !important;
}

body p + p,
body ul + p,
body p + ul {
    margin-top: 12px !important;
}

body ul li,
body ol li {
    margin-bottom: 8px !important;
    line-height: 1.7 !important;
}

/* Mobile text sizing, spacing & readability */
@media (max-width: 767.98px) {
    html, body {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    body h1 {
        font-size: 1.55rem !important;
        line-height: 1.3 !important;
        margin-top: 18px !important;
        margin-bottom: 12px !important;
    }

    body h2 {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        margin-top: 22px !important;
        margin-bottom: 14px !important;
    }

    body h3, body h4 {
        font-size: 1.12rem !important;
        line-height: 1.4 !important;
        margin-top: 16px !important;
        margin-bottom: 8px !important;
    }

    body p,
    body li,
    body div {
        line-height: 1.65 !important;
    }

    body .btn {
        font-size: 0.95rem !important;
        padding: 9px 16px !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
}

/* Center & balance feature items on narrow / mobile viewports */
@media (max-width: 991.98px) {
    body .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        text-align: center !important;
        margin-bottom: 18px !important;
    }

    body .row > [class*="col-"] img,
    body .row > [class*="col-"] svg {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    body .row > [class*="col-"] p,
    body .row > [class*="col-"] h3,
    body .row > [class*="col-"] h4 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* JibFou Client Logo Sizing */
.vertical-logo, .navbar-brand img, .llogin { max-height: 54px !important; max-width: 220px !important; width: auto !important; object-fit: contain !important; }

/* JibFou Client Logo Sizing */
.vertical-logo, .navbar-brand img, .llogin { max-height: 54px !important; max-width: 220px !important; width: auto !important; object-fit: contain !important; }

/* JibFou Client All Logos Sizing */
.vertical-logo, .logocae, .navbar-brand img, .llogin { max-height: 54px !important; max-width: 220px !important; width: auto !important; object-fit: contain !important; }

/* Show only single JibFou navbar logo */
.logocae { display: none !important; }
.vertical-logo, .navbar-brand img { max-height: 54px !important; max-width: 220px !important; width: auto !important; object-fit: contain !important; }

/* Keep only single desktop header/nav without touching existing theme rules */
.showmobile, .navbar-caesar, .logocae { display: none !important; }

/* Keep JibFou logo and nav tabs locked at top on scroll */
.navbar-vertical {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #ffffff;
}

/* JibFou Homepage Most Popular Packages (.feaproducts .boxy) Orange Hover */
.feaproducts .row .col-md-4 .boxy,
.feaproducts .boxy {
  padding: 24px 20px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  transition: all 0.25s ease !important;
}

.feaproducts .row .col-md-4 .boxy:hover,
.feaproducts .boxy:hover {
  background: #ffe8d1 !important;
  background-color: #ffe8d1 !important;
  border-color: #fd7e14 !important;
  box-shadow: 0 8px 20px rgba(253, 126, 20, 0.18) !important;
  transform: translateY(-3px) !important;
}

.feaproducts .row .col-md-4 .boxy:hover > div,
.feaproducts .boxy:hover > div,
.feaproducts .row .col-md-4 .boxy:hover .ffheader,
.feaproducts .boxy:hover .ffheader,
.feaproducts .row .col-md-4 .boxy:hover .ffdesc,
.feaproducts .boxy:hover .ffdesc {
  background: transparent !important;
  background-color: transparent !important;
}

.feaproducts .row .col-md-4 .boxy:hover h3,
.feaproducts .boxy:hover h3,
.feaproducts .row .col-md-4 .boxy:hover .ffheader h3,
.feaproducts .boxy:hover .ffheader h3 {
  color: #c2410c !important;
}

.feaproducts .row .col-md-4 .boxy:hover p,
.feaproducts .boxy:hover p,
.feaproducts .row .col-md-4 .boxy:hover .ffdesc,
.feaproducts .boxy:hover .ffdesc,
.feaproducts .row .col-md-4 .boxy:hover b,
.feaproducts .boxy:hover b,
.feaproducts .row .col-md-4 .boxy:hover strong,
.feaproducts .boxy:hover strong {
  color: #111827 !important;
}

/* Hide grey sub-header title bar */
.title {
    display: none !important;
}
