/* ----------------------------------------------------------------------------
        logo
----------------------------------------------------------------------------- */
.logo {}
.logo img { width: 100%; max-width: 360px; padding: 10px; }


/* ----------------------------------------------------------------------------
        Navigation
----------------------------------------------------------------------------- */

.navbar-brand {display: none;}
.navbar-mobile-bar .navbar-brand { display: block; }
.navbar {padding-top: 0;}
.navbar ul {margin: 0;}
.nav-item { padding: 0.5rem 0; }
.navbar-nav .nav-link, .navbar-expand-lg .navbar-nav .nav-link { padding-right: 1rem; padding-left: 1rem; padding-top: 0rem; padding-bottom: 0rem; border-right: 1px dotted #898989;}
.nav-item:last-child .nav-link {border-right: 0;}
.navbar .right .nav-link { padding: 0rem 0.5rem; border-right: 0;}
.navbar>.container,
.navbar>.container-xl,
.navbar>.w-100,
.navbar>.navbar-inner { padding-right: 0; padding-left: 0;}
a.nav-link { font-size: 18px; }

@media (max-width: 1365.98px) {
    a.nav-link,
    .navbar-nav .nav-link,
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 17px;
        white-space: nowrap;
    }
}

/* Navbar row: stick to top while scrolling (inside container-xl) */
.container-xl.main {
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
}

.container-xl.main > .row.nav-row {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.container-xl.main > .row.nav-row .navbar {
    margin-bottom: 0;
}

/* Main two-column content only — not nav, map, sponsors, or footer */
.container-xl.main > .row:not(.g-0) {
    padding: 0 1.25rem 1.25rem;
}

.container-xl.main .navbar > .navbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

/* Mobile / tablet header: logo | Member Login (centred) | hamburger — only < lg */
@media (max-width: 991.98px) {
.navbar-mobile-bar {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    min-height: 96px;
    width: 100%;
}

.navbar-mobile-bar .navbar-brand {
    display: block;
    max-width: 200px;
    margin-right: 0;
    padding: 0;
    justify-self: start;
}

.navbar-mobile-bar .navbar-brand img,
.navbar-mobile-bar .logo_mobile {
    max-height: 80px;
    width: auto;
}

.navbar-mobile-login {
    white-space: nowrap;
    justify-self: center;
    grid-column: 2;
    width: auto !important;
    margin: 0 !important;
    padding: 0.7rem 1.15rem !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0.4rem;
}

.navbar-mobile-bar .navbar-toggler {
    justify-self: end;
    grid-column: 3;
    flex-shrink: 0;
    background-color: #6c757d;
    border: 2px solid #5a6268;
    color: #fff !important;
    padding: 0.65rem 0.85rem;
    font-size: 1.85rem;
    line-height: 1;
    border-radius: 0.4rem;
}

.navbar-mobile-bar .navbar-toggler:hover,
.navbar-mobile-bar .navbar-toggler:focus {
    background-color: #5a6268;
    box-shadow: none;
}

.navbar-mobile-bar .navbar-toggler .navbar-toggler-icon-close {
    display: none;
}

.navbar-mobile-bar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-bars {
    display: none;
}

.navbar-mobile-bar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-close {
    display: inline-block;
}
} /* end max-width 991.98px mobile bar base */

/* Hide sidebar logo + Follow us on tablet/phone (nav already has logo) */
@media (max-width: 991.98px) {
    .sidebar-logo,
    .blog-sidebar > .logo,
    .blog-sidebar .logo.sidebar-logo,
    .sidebar-follow-us {
        display: none !important;
    }

    .container-xl.main .navbar > .navbar-inner {
        flex-wrap: wrap;
    }

    .navbar-mobile-bar {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        min-height: 96px;
        padding: 0.85rem 1rem;
    }

    .navbar-mobile-bar .navbar-brand {
        display: block !important;
        max-width: 200px;
        justify-self: start;
    }

    .navbar-mobile-bar .navbar-brand img,
    .navbar-mobile-bar .logo_mobile {
        max-height: 80px;
    }

    .navbar-mobile-login {
        font-size: 1.1rem !important;
        padding: 0.7rem 1.15rem !important;
        justify-self: center;
        margin: 0 !important;
    }

    .navbar-mobile-bar .navbar-toggler {
        font-size: 1.85rem;
        padding: 0.65rem 0.85rem;
        justify-self: end;
        background-color: #6c757d;
        border-color: #5a6268;
        color: #fff !important;
    }

    /* Keep collapse menu on its own row under the bar; centre items */
    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    .navbar-collapse .navbar-nav {
        width: 100%;
        align-items: center;
        text-align: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-collapse .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar-collapse .nav-link {
        justify-content: center;
        text-align: center;
        border-right: 0 !important;
    }

    .navbar-collapse .dropdown-menu {
        text-align: center;
    }
}

/* Desktop: restore horizontal nav (do not keep mobile bar layout) */
@media (min-width: 992px) {
    .navbar-mobile-bar {
        display: contents !important;
        padding: 0 !important;
        min-height: 0 !important;
        gap: 0 !important;
    }

    .navbar-mobile-bar .navbar-brand {
        display: none !important;
    }

    .navbar-mobile-login {
        display: none !important;
    }

    .navbar-mobile-bar .navbar-toggler {
        display: none !important;
    }

    .container-xl.main .navbar > .navbar-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }

    .container-xl.main .navbar .navbar-collapse {
        flex-grow: 1;
        flex-basis: auto;
        width: auto;
        display: flex !important;
        text-align: left;
    }

    .container-xl.main .navbar .navbar-collapse .navbar-nav {
        flex-direction: row;
        align-items: center;
        width: auto;
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }

    .container-xl.main .navbar .navbar-collapse .nav-item {
        width: auto;
        text-align: left;
    }

    .container-xl.main .navbar .navbar-collapse .nav-link {
        text-align: left;
        justify-content: flex-start;
    }

    .container-xl.main .navbar .navbar-nav.right {
        flex-shrink: 0;
        flex-direction: row;
    }
}


/* ----------------------------------------------------------------------------
        Structure - General
----------------------------------------------------------------------------- */
body { 
	background-color: #efefef;
	font-size: 15px;
	font-family: 'Open Sans', Tahoma, Arial, Verdana, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main {
    border: 1px solid #acacac;
    box-shadow: 0px 3px 5px 2px #aaa9a9;
    background-color: #fff;
    padding: 0;
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-xl {
    margin: 0 auto;
}

.container-xl.main .navbar {
    margin-bottom: 0;
}

.container-xl.main > .row.g-0:first-child {
    margin-left: 0;
    margin-right: 0;
}

/* Basic column layout */
.row {
    margin-left: 0;
    margin-right: 0;
}

.blog-main {
    padding-bottom: 20px;
    padding-top: 30px;
}
.blog-sidebar {
    padding-top: 30px;
}

#news .well {box-shadow: 0 1px 1px #ccc;} 
#aboutus .well { 
    box-shadow: 0 1px 1px #0178b4;  
    background-color: transparent; 
    background-image: none;
}
.well>.media>img { max-width: 200px; height: auto; }
.well .media.content-media {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.well .media.content-media .media-body {
    flex: 1 1 auto;
    min-width: 0;
}
.well .media.content-media .content-thumb,
.well .media.content-media > img {
    max-width: 200px;
    width: auto;
    height: auto;
    flex-shrink: 0;
}
.blog-main .well .media .content-thumb,
.blog-main .well .media img.content-thumb {
    max-width: 200px;
}
.media-heading { color: #0178b4; font-size: 1.50em; }

.well {
    box-shadow: 2px 2px 4px 1px #ccc;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #fff;
}

.roster_design ul { margin-left: 0px; }
.roster_design ul li { display: inline; padding-right: 15px; }
.roster_design .row:nth-child(even) { background-color: #efefef; }

.bk-grey { background-color: #e9e9e9; padding: 10px 5px; }

/* Toy list filter bar — Bootstrap 5 horizontal row (replaces BS4 form-row) */
#search_form .row.g-2 {
    --bs-gutter-x: 0.5rem;
    margin-left: 0;
    margin-right: 0;
}
#search_form .row.g-2 > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}
#search_form select.form-control {
    width: 100%;
}
#search_form .input-group .form-control {
    width: 1%;
    flex: 1 1 auto;
}
#search_form .input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
}
#search_form .input-group-text {
    width: auto;
    flex: 0 0 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
#search_form .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Join form — date of birth input groups (Bootstrap 5) */
#new_member .row {
    margin-bottom: 0.75rem;
}
#new_member .form-group {
    margin-bottom: 1.25rem;
}
#new_member label.control-label {
    display: block;
    margin-bottom: 0.35rem;
    line-height: 1.4;
    position: relative;
    padding-right: 0.75rem;
}
#new_member label.control-label sup {
    position: static;
    margin-left: 0.15rem;
    vertical-align: super;
    font-size: 0.75em;
}
#new_member .join-levy-check {
    padding: 0.75rem 0 0.25rem;
}
#new_member .join-extra-questions .form-group {
    margin-bottom: 1rem;
}
.blog-main .breadcrumb {
    background-color: #e9ecef;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.25rem;
}
#new_member .input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
}
#new_member .input-group-text {
    width: auto;
    flex: 0 0 auto;
}
#new_member .input-group .form-control {
    width: 1%;
    flex: 1 1 auto;
}

#search_form input[type="submit"],
#search_form .btn {
    width: auto;
    min-width: 5rem;
}


label { width: 100%; }
input:not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea { width: 100%; }

/* Bootstrap 5: legacy selects still use form-control — restore dropdown arrow */
.main select.form-control,
.main select.form-select {
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.on-loan { background-color: #ffeece; }

iframe {max-width: 100%;}

.carousel {padding-bottom: 20px;}

/* ----------------------------------------------------------------------------
        Button
----------------------------------------------------------------------------- */
.btn-default { background-image: none; text-shadow: none; }
.button-max-margin { margin-top: 28px; }
.btn-margin-bottom { margin-bottom: 20px; }
.btn-pink, .btn-orange, .btn-blue, .btn-green, .btn-yellow, .btn-default { font-weight: 500; font-size: 15px; }
.btn-pink { background-color: #FC84B4; }
.btn-orange { background-color:#F6920C; }
.btn-blue { background-color: #98B9F0; }
.btn-green { background-color: #B3CC4A; }
.btn-yellow { background-color: #FFDF44; }
.btn-right { float: right; }
.icon-input-btn{ display: inline-block; position: relative; margin-left: 15px; }
.icon-input-btn input[type="submit"]{ padding-left: 2em; }
.icon-input-btn .glyphicon{ display: inline-block; position: absolute; left: 0.45em; top: 30%; font-size: 16px; color: #333; }
.btn-max-width { width: 100%; }


.panel-default>.panel-heading {
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#b3cc4a+0,efefef+100 */
background: #b3cc4a; /* Old browsers */
background: -moz-linear-gradient(top, #b3cc4a 0%, #efefef 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #b3cc4a 0%,#efefef 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #b3cc4a 0%,#efefef 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3cc4a', endColorstr='#efefef',GradientType=0 ); /* IE6-9 */
}

/* ----------------------------------------------------------------------------
        Toy Page
----------------------------------------------------------------------------- */
#pic-view h3 { font-size: 1.4em; margin: 0;}
#pic-view h4 { font-size: 1.1em; margin: 0;}
#pic-view .toy-title { min-height: 80px;}
#pic-view .box-pic { min-height: 300px; }
#pic-view a { color: #333; }


.blog-main .img-fluid { margin: 10px 0; }

.card { margin-bottom: 2%; padding: 0px 5px; }
.accordion>.card, .accordion>.card:not(:first-of-type):not(:last-of-type), .accordion>.card:first-of-type, .accordion>.card:last-of-type {border: 1px solid rgba(0,0,0,.125); border-radius: .25rem;}

/* ----------------------------------------------------------------------------
        Pages
----------------------------------------------------------------------------- */
.sponsor_img { 
    float: left;
    margin: 15px;
    max-width: 500px;
    max-height: 200px;
}

.carousel-item img {width: 100%;}


.carousel-item > div {
  float: left;
}
.carousel-by-item [class*="cloneditem-"] {
  display: none;
}

.carousel-control-prev .fas, .carousel-control-next .fas {color: #333;}

sup { color: #ff0000; font-size: 110%;}


/* equal card height */
.row-equal > div[class*='col-'] {
    display: flex;
    flex: 1 0 auto;
}

.row-equal .card {
   width: 100%;
}

/* ensure equal card height inside carousel */
.carousel-inner>.row-equal.active, 
.carousel-inner>.row-equal.next, 
.carousel-inner>.row-equal.prev {
    display: flex;
}

/* prevent flicker during transition */
.carousel-inner>.row-equal.active.left, 
.carousel-inner>.row-equal.active.right {
    opacity: 0.5;
    display: flex;
}


/* control image height */
.card-img-top-250 {
    max-height: 250px;
    overflow:hidden;
}


/***********************************************/
/***************** Accordion ********************/
/***********************************************/


#accordionFAQ .btn-link {
    font-weight: 400;
    color: #007b5e;
    background-color: transparent;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: bold;
    padding-left: 25px;
    text-align: left;
}

#accordionFAQ h2 {margin: 0;}

#accordionFAQ .card-body {
    border-top: 2px solid #666;
}

#accordionFAQ .card-header .btn.collapsed .fa.main{
    display:none;
}

#accordionFAQ .card-header .btn .fa.main{
    background: #007b5e;
    padding: 13px 11px;
    color: #ffffff;
    width: 35px;
    height: 41px;
    position: absolute;
    left: -1px;
    top: 10px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    display:block;
}

#accordionFAQ .card-header { padding: 0.5rem 0;}

#accordionFAQ .card {padding:0; }


/* ----------------------------------------------------------------------------
        footer
----------------------------------------------------------------------------- */

footer { 
    margin: 0;
    padding: 0;
    background-color: transparent;
    color: #fff;
}

/* Sticky to bottom on short pages; flush with main container edges */
.container-xl.main > footer.footer {
    margin-top: auto;
    width: 100%;
}

footer.footer > .w-100 {
    padding: 20px 2%;
}
footer p, footer a { margin: 0; font-size: 12px; }
footer a:hover { color: #efefef; }



/*==================================================
=            Bootstrap 4 Media Queries             =
==================================================*/


    /* Large Devices, Wide Screens */
    @media only screen and (max-width : 1200px) {
        .container-xl { max-width: 1140px; }
    }

    /* Medium Devices, Desktops */
    @media only screen and (max-width : 992px) {
        .container-xl { max-width: 960px; }
    }

    /* Small Devices, Tablets */
    @media only screen and (max-width : 768px) {
        .media a.pull-left {display: none;}
        ul { margin-left: 0px; padding-left: 25px;}
        .sponsor_img { 
            float: none;
            margin: 15px auto;
            display: block;
            max-width: 100%;
        }
        /* Stack homepage content/sidebar only — do not force toy cards full-width */
        .blog-main,
        .blog-sidebar,
        .row > .col-8,
        .row > .col-4 {
            flex: 0 0 100%;
            max-width: 100%;
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }
        
        /* Fix float layouts on mobile (CMS HTML often uses float + fixed widths) */
        .blog-main div[style*="float"],
        .blog-main p[style*="float"],
        .blog-main span[style*="float"],
        .blog-sidebar div[style*="float"] {
            float: none !important;
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            margin-bottom: 15px;
        }

        /* Side-by-side media / reason-to-join style blocks */
        .well .media.content-media,
        .blog-main .media {
            flex-direction: column !important;
            display: flex !important;
        }

        .well .media.content-media .content-thumb,
        .well .media.content-media > img,
        .blog-main .well .media .content-thumb,
        .blog-main .media img {
            max-width: 100% !important;
            width: 100% !important;
            height: auto !important;
            flex-shrink: 1;
        }

        .home-page {
            font-size: 1.65rem;
            line-height: 1.25;
            word-wrap: break-word;
        }
    }

    /* Small Devices, Tablets */
    @media only screen and (max-width : 767px) {
        nav, .navbar { padding: 0; margin: 0; }
        nav>.container, .navbar>.container {padding: 0;}
        nav>.container-xl, .navbar>.container-xl {padding: 0;}
        #nav a.navbar-brand, nav a.navbar-brand { max-width: 200px; display: block; }
        #nav a.navbar-brand img, nav a.navbar-brand img { max-height: 80px; }
        .navbar-toggler {
            font-size: 1.85rem;
            padding: .65rem .85rem;
            background-color: #6c757d;
            border-color: #5a6268;
            color: #fff !important;
        }

        .logo_mobile {max-height: 80px; }

        .navbar-collapse {
            width: 100%;
            flex-basis: 100%;
            padding: 0.5rem 0.75rem 0.75rem;
            text-align: center;
        }

        .navbar-collapse .navbar-nav {
            align-items: center;
            width: 100%;
        }

        .navbar-collapse .nav-item {
            width: 100%;
            text-align: center;
        }

        .navbar-collapse .nav-link {
            border-right: 0 !important;
            padding: 0.55rem 0.25rem !important;
            text-align: center;
            justify-content: center;
        }

        iframe {width: 100%;}
        .blog-main,
        .blog-sidebar,
        .row > .col-8,
        .row > .col-4 {
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }
    }

    /* Extra Small Devices, Phones */ 
    @media only screen and (max-width : 480px) {
        .container-xl { max-width: 100%; }
        .blog-main { padding: 0.5rem 0 1rem; }
        .blog-sidebar { padding: 0.5rem 0 1rem; }
        .home-page { font-size: 1.45rem; }
    }

    /* Custom, iPhone Retina */ 
    @media only screen and (max-width : 320px) {
        .container-xl { max-width: 100%; }
        .blog-main { padding: 0.35rem 0 0.85rem; }
        .blog-sidebar { padding: 0.35rem 0 0.85rem; }
    }


/*
 * Row with equal height columns
 * --------------------------------------------------
 */
.row-eq-height {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display:         flex;
}


.addthis_inline_share_toolbox {margin-bottom: 10px;}


/* Bootstrap 5 Custom Styles for MiBaseNZ */

/* General Layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styling */

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    /* Color will be set by client's settings in head.php */
}

/* Main Content */
main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home-page {
    color: #0178b4;
    font-size: 2.5em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Home slideshow — always visible; compact on phone/tablet, taller on desktop */
.home-slideshow,
#myCarousel.home-slideshow {
    display: block !important;
    width: 100%;
    margin: 0 0 1.25rem;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 0.35rem;
    position: relative;
    z-index: 1;
    clear: both;
}

#myCarousel .carousel-inner {
    overflow: hidden;
    width: 100%;
    border-radius: 0.35rem;
    background: #e9ecef;
}

#myCarousel .carousel-item {
    max-height: 360px;
    overflow: hidden;
    height: 360px;
}

#myCarousel .carousel-item img {
    width: 100%;
    height: 360px;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Tablet / iPad: full slide visible (no crop) */
@media (max-width: 991.98px) {
    .home-page {
        font-size: 1.75rem;
        margin-bottom: 0.85rem;
        line-height: 1.25;
    }

    #myCarousel .carousel-inner {
        background: transparent;
    }

    #myCarousel .carousel-item {
        max-height: none;
        height: auto;
        overflow: hidden;
    }

    #myCarousel .carousel-item img {
        height: auto;
        max-height: none;
        width: 100%;
        object-fit: contain;
        object-position: center;
        background: transparent;
    }

    #myCarousel .carousel-control-prev,
    #myCarousel .carousel-control-next {
        width: 2.5rem;
    }

    #myCarousel .carousel-indicators {
        margin-bottom: 0.35rem;
    }

    #myCarousel .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
    }

    /* Social / login icons belong to desktop nav only */
    .navbar .navbar-nav.right {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .home-page {
        font-size: 1.45rem;
    }

    #myCarousel .carousel-item {
        max-height: none;
        height: auto;
    }

    #myCarousel .carousel-item img {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    #myCarousel .carousel-control-prev,
    #myCarousel .carousel-control-next {
        width: 2.25rem;
    }
}

/* Carousel Styling */

.carousel-item img {
    width: 100%;
    object-fit: contain;

}

.carousel-caption {
    background: rgba(0,0,0,0.6);
    border-radius: 5px;
    padding: 1rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-header {
    background-color: #f8f9fa;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

.card-title {
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Sidebar */
.sidebar-content {
    position: sticky;
    top: 2rem;
}

.sidebar-content .card {
    margin-bottom: 1.5rem;
}

/* Buttons — slight radius like legacy Bootstrap 3 (not pill-shaped) */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
}

/* FAQ accordion — style-page colours (public + members share faqs_box_list.php) */
#accordionFAQ .card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    box-shadow: none;
    transform: none;
    margin-bottom: 2%;
    padding: 0;
    overflow: visible;
}

#accordionFAQ .card:hover {
    transform: none;
    box-shadow: none;
}

#accordionFAQ .card-header {
    background: transparent;
    background-color: transparent;
    color: inherit;
    border: none;
    border-bottom: none;
    padding: 0.5rem 0;
}

#accordionFAQ .btn-link,
#accordionFAQ .btn.btn-link {
    font-weight: bold;
    color: #007b5e;
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none !important;
    font-size: 20px;
    padding: 0.5rem 0.75rem 0.5rem 25px;
    text-align: left;
    width: 100%;
}

#accordionFAQ .btn-link:hover,
#accordionFAQ .btn-link:focus,
#accordionFAQ .btn-link:active {
    color: #007b5e;
    background: transparent !important;
    transform: none;
    box-shadow: none;
}

#accordionFAQ .card-body {
    border-top: 2px solid #666;
    padding: 1rem;
}

#accordionFAQ .fa-question-circle {
    color: #007b5e;
}

/* Social Links */
.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* Footer */

footer .social-links a {
    /* Color will be set by client's settings in head.php */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer .social-links a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .home-page {
        font-size: 2rem;
    }
    
    .sidebar-content {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }

    /* Full-width only for primary content actions — not navbar controls */
    .blog-main .btn:not(.navbar-mobile-login),
    .blog-sidebar .btn,
    .card .btn,
    form .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Google Maps */
.ratio-16x9 {
    border-radius: 8px;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    padding-top: 20px;
}

/* Links */
a {
    /* Color will be set by client's settings in head.php */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    /* Color will be set by client's settings in head.php */
    text-decoration: none;
}

/* Form Elements */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Sponsor Carousel Styling */
.spe-cor {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.spe-cor h3 {
    text-align: center;
    margin-bottom: 40px;
}

.suppliers-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
    padding: 20px 40px;
    min-height: 150px;
}

.suppliers-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

.suppliers-grid-three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
    gap: 28px;
}

.suppliers-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin: 0 auto;
    gap: 24px;
}

.supplier-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 140px;
    width: 100%;
    max-width: 280px;
}

.supplier-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.supplier-logo {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.supplier-item:hover .supplier-logo {
    filter: grayscale(0%);
}

/* Carousel Controls Styling */
#sponsorCarousel .carousel-control-prev,
#sponsorCarousel .carousel-control-next,
#sponsorCarouselDesktop .carousel-control-prev,
#sponsorCarouselDesktop .carousel-control-next,
#sponsorCarouselTablet .carousel-control-prev,
#sponsorCarouselTablet .carousel-control-next,
#sponsorCarouselMobile .carousel-control-prev,
#sponsorCarouselMobile .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid #0178b4;
}

#sponsorCarousel .carousel-control-prev,
#sponsorCarouselDesktop .carousel-control-prev,
#sponsorCarouselTablet .carousel-control-prev,
#sponsorCarouselMobile .carousel-control-prev {
    left: -25px;
}

#sponsorCarousel .carousel-control-next,
#sponsorCarouselDesktop .carousel-control-next,
#sponsorCarouselTablet .carousel-control-next,
#sponsorCarouselMobile .carousel-control-next {
    right: -25px;
}

#sponsorCarousel .carousel-control-prev-icon,
#sponsorCarousel .carousel-control-next-icon,
#sponsorCarouselDesktop .carousel-control-prev-icon,
#sponsorCarouselDesktop .carousel-control-next-icon,
#sponsorCarouselTablet .carousel-control-prev-icon,
#sponsorCarouselTablet .carousel-control-next-icon,
#sponsorCarouselMobile .carousel-control-prev-icon,
#sponsorCarouselMobile .carousel-control-next-icon {
    background-color: #0178b4;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-size: 60%;
}

#sponsorCarousel .carousel-control-prev:hover,
#sponsorCarousel .carousel-control-next:hover,
#sponsorCarouselDesktop .carousel-control-prev:hover,
#sponsorCarouselDesktop .carousel-control-next:hover,
#sponsorCarouselTablet .carousel-control-prev:hover,
#sponsorCarouselTablet .carousel-control-next:hover,
#sponsorCarouselMobile .carousel-control-prev:hover,
#sponsorCarouselMobile .carousel-control-next:hover {
    background-color: #0178b4;
}

#sponsorCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#sponsorCarousel .carousel-control-next:hover .carousel-control-next-icon,
#sponsorCarouselDesktop .carousel-control-prev:hover .carousel-control-prev-icon,
#sponsorCarouselDesktop .carousel-control-next:hover .carousel-control-next-icon,
#sponsorCarouselTablet .carousel-control-prev:hover .carousel-control-prev-icon,
#sponsorCarouselTablet .carousel-control-next:hover .carousel-control-next-icon,
#sponsorCarouselMobile .carousel-control-prev:hover .carousel-control-prev-icon,
#sponsorCarouselMobile .carousel-control-next:hover .carousel-control-next-icon {
    background-color: white;
}

@media (max-width: 991.98px) {
    .suppliers-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        min-height: 120px;
        padding: 12px 40px;
        max-width: 100%;
    }

    .suppliers-grid-two .supplier-item {
        padding: 16px;
        min-height: 100px;
        max-width: none;
    }

    .suppliers-grid-two .supplier-logo {
        max-height: 72px;
    }

    #sponsorCarouselMobile .carousel-control-prev,
    #sponsorCarouselMobile .carousel-control-next {
        width: 40px;
        height: 40px;
        left: auto;
        right: auto;
    }

    #sponsorCarouselMobile .carousel-control-prev {
        left: 0;
    }

    #sponsorCarouselMobile .carousel-control-next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .suppliers-grid,
    .suppliers-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        min-height: 120px;
        padding: 12px 36px;
    }
    
    .supplier-item {
        padding: 16px;
        min-height: 100px;
        max-width: none;
    }
    
    .supplier-logo {
        max-height: 72px;
    }
    
    .spe-cor h3 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    #sponsorCarousel .carousel-control-prev,
    #sponsorCarousel .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    
    #sponsorCarousel .carousel-control-prev {
        left: 0;
    }
    
    #sponsorCarousel .carousel-control-next {
        right: 0;
    }
    
    #sponsorCarousel .carousel-control-prev-icon,
    #sponsorCarousel .carousel-control-next-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .suppliers-grid,
    .suppliers-grid-two {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        min-height: 100px;
        padding: 10px 32px;
    }
    
    .supplier-item {
        padding: 12px;
        min-height: 88px;
    }
    
    .supplier-logo {
        max-height: 60px;
    }
    
    #sponsorCarousel .carousel-control-prev,
    #sponsorCarousel .carousel-control-next {
        width: 32px;
        height: 32px;
    }
    
    #sponsorCarousel .carousel-control-prev-icon,
    #sponsorCarousel .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

/* Latest toys — one toy per slide */
.latest-toys-section {
    margin: 1.5rem 0 2rem;
}

.latest-toys-section h3 {
    margin-bottom: 1rem;
}

.latest-toys-row {
    padding: 0.5rem 2.5rem 2rem;
}

/* Keep card columns at a fixed share of the row (avoids tiny leftover on last slide) */
.latest-toys-row > .latest-toy-col {
    position: relative;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.latest-toys-row > .latest-toy-col--third {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.latest-toys-row > .latest-toy-col--half {
    flex: 0 0 50%;
    max-width: 50%;
}

.latest-toys-row > .latest-toy-col--full {
    flex: 0 0 100%;
    max-width: 100%;
}

.latest-toy-card {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.latest-toy-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: #f3f4f6;
    overflow: hidden;
}

.latest-toy-image img {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.latest-toys-carousel .carousel-item {
    padding: 0.5rem 0 1rem;
}

.latest-toys-carousel .card {
    margin-bottom: 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.latest-toys-carousel .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.latest-toys-carousel .card-body .btn {
    margin-top: auto;
}

.latest-toys-carousel .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0178b4;
}

.latest-toys-carousel .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.latest-toys-carousel .carousel-control-prev,
.latest-toys-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 40%;
    transform: translateY(-50%);
    background-color: rgba(1, 120, 180, 0.85);
    border-radius: 50%;
    opacity: 1;
}

.latest-toys-carousel .carousel-control-prev { left: 0; }
.latest-toys-carousel .carousel-control-next { right: 0; }

.latest-toys-carousel .carousel-indicators {
    margin-bottom: 0;
}

.latest-toys-carousel .carousel-indicators [data-bs-target] {
    background-color: #0178b4;
}

@media (max-width: 767.98px) {
    .latest-toys-row {
        padding: 0.5rem 2.25rem 1.75rem;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* General Content Images */
.blog-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.blog-main .img-fluid {
    max-width: 100%;
    height: auto;
}

/* Content area images */
.main img {
    max-width: 100%;
    height: auto;
}

/* Well/Content box images */
.well img:not(.content-thumb) {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Media object images */
.media img:not(.content-thumb) {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.blog-main .well .media .content-thumb {
    max-width: 200px;
    width: auto;
    height: auto;
    border-radius: 4px;
}

/* Contact form honeypot (hidden from humans, visible to bots) */
.contact-form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Content layout fixes for float-based layouts */
.blog-main div[style*="float"] {
    overflow: hidden;
}

.blog-main div[style*="width: 25%"] {
    float: left;
    margin-right: 10px;
}

.blog-main div[style*="width: 70%"] {
    float: left;
}

.blog-main div[style*="width: 100%"] {
    clear: both;
    overflow: hidden;
}

/* Ensure images in content are properly displayed (desktop only) */
@media (min-width: 769px) {
    .blog-main img[style*="width: 100%"] {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .blog-main img[style*="max-width: 170px"] {
        max-width: 170px;
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Toys page — list/table view */
.toys-page .table-responsive table.table td,
.toys-page .table-responsive table.table th,
.toys-page .table tbody td,
.toys-page .table tbody th,
.toys-page .table td,
.toys-page .table th {
    vertical-align: middle !important;
    height: auto !important;
}

.toys-page .table tbody td img {
    vertical-align: middle;
    display: inline-block;
    margin: 0;
}

.toys-page .table tbody td .btn {
    vertical-align: middle;
    display: inline-block;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.2 !important;
}

.toys-page .table tbody td .btn:hover {
    transform: none !important;
}

.toys-page .toys-list-view {
    margin-top: 0.5rem;
}

/* Toy cards: 4 on desktop, 2 on tablet/phone, 1 only below 560px */
#card-infinite.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 992px) {
    #card-infinite.col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 559.98px) {
    #card-infinite.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* CMS content images — override inline width/height (mobile only, max 768px) */
@media (max-width: 768px) {
    .blog-main img,
    .blog-main p img,
    .blog-sidebar img,
    .well img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Toys list thumbnails stay small */
    .toys-page .table tbody td img {
        width: auto !important;
        max-width: 80px !important;
        height: auto !important;
        display: inline-block !important;
        margin: 0 !important;
    }
}
