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


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

.navbar-brand {display: none;}
.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 { padding-right: 0; padding-left: 0;}
a.nav-link { font-size: 18px; }


/* ----------------------------------------------------------------------------
        Structure - General
----------------------------------------------------------------------------- */
body { 
	background-color: #efefef;
	font-size: 15px;
	font-family: 'Open Sans', Tahoma, Arial, Verdana, sans-serif; 
}

.main {
    border: 1px solid #acacac;
    box-shadow: 0px 3px 5px 2px #aaa9a9;
    background-color: #fff;
    padding: 45px 0px 0px 0px;
    width: 100%;
}

.container-xl { 
    margin: 0 auto;
}

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

.blog-main { 
    padding-bottom: 20px; 
    padding-top: 30px; 
    padding-right: 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; }
.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; }


label { width: 100%; }
input, select, textarea { width: 100%; }

.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: 20px;
    background-color: #333;
    color: #fff;
}
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 columns on mobile */
        .col-8, .col-4 {
            flex: 0 0 100%;
            max-width: 100%;
            padding-left: 15px;
            padding-right: 15px;
        }
        
        /* Fix float layouts on mobile */
        .blog-main div[style*="float"] {
            float: none !important;
            width: 100% !important;
            margin-right: 0 !important;
            margin-bottom: 15px;
        }
        
        .blog-main img[style*="max-width: 170px"] {
            max-width: 100% !important;
            width: 100% !important;
            margin: 0 auto;
            display: block;
        }
    }

    /* Small Devices, Tablets */
    @media only screen and (max-width : 767px) {
        nav, .navbar { padding: 0; margin: 0; }
        nav>.container, .navbar>.container {padding: 8px;}
        nav>.container-xl, .navbar>.container-xl {padding: 8px;}
        #nav a.navbar-brand, nav a.navbar-brand { max-width: 110px; display: block; }
        #nav a.navbar-brand img, nav a.navbar-brand img { max-height: 54px; }
        .navbar-toggler {font-size: 1.8rem; padding: .5rem .75rem;}

        .logo_mobile {max-height: 40px; }

        iframe {width: 100%;}
        .col-8, .col-4 {
            padding-left: 10px;
            padding-right: 10px;
        }
    }

    /* Extra Small Devices, Phones */ 
    @media only screen and (max-width : 480px) {
        .container-xl { max-width: 100%; }
        .blog-main { padding: 10px; }
        .blog-sidebar { padding: 10px; }
        .col-8, .col-4 {
            padding-left: 8px;
            padding-right: 8px;
        }
    }

    /* Custom, iPhone Retina */ 
    @media only screen and (max-width : 320px) {
        .container-xl { max-width: 100%; }
        .blog-main { padding: 8px; }
        .blog-sidebar { padding: 8px; }
        .col-8, .col-4 {
            padding-left: 5px;
            padding-right: 5px;
        }
    }


/*
 * 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;
}

/* 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: 20px;
}

/* 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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    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 */
.btn {
    border-radius: 25px;
    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;
}

/* 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;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .sidebar-content {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .container-xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .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 0;
    min-height: 150px;
}

.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 {
    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 {
    left: -25px;
}

#sponsorCarousel .carousel-control-next {
    right: -25px;
}

#sponsorCarousel .carousel-control-prev-icon,
#sponsorCarousel .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 {
    background-color: #0178b4;
}

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

@media (max-width: 768px) {
    .suppliers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        min-height: 120px;
    }
    
    .supplier-item {
        padding: 20px;
        min-height: 110px;
    }
    
    .supplier-logo {
        max-height: 80px;
    }
    
    .spe-cor h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    #sponsorCarousel .carousel-control-prev,
    #sponsorCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #sponsorCarousel .carousel-control-prev-icon,
    #sponsorCarousel .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .suppliers-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        min-height: 100px;
    }
    
    .supplier-item {
        padding: 15px;
        min-height: 90px;
    }
    
    .supplier-logo {
        max-height: 70px;
    }
    
    #sponsorCarousel .carousel-control-prev,
    #sponsorCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    #sponsorCarousel .carousel-control-prev-icon,
    #sponsorCarousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* Latest Toys Carousel Styling */
#toysCarousel .carousel-item {
    padding: 20px 0;
}

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

#toysCarousel .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#toysCarousel .card-body .btn {
    margin-top: auto;
}

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

#toysCarousel .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

#toysCarousel .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#toysCarousel .carousel-control-prev,
#toysCarousel .carousel-control-next {
    width: 5%;
    background-color: rgba(0,0,0,0.3);
}

#toysCarousel .carousel-control-prev-icon,
#toysCarousel .carousel-control-next-icon {
    background-color: #0178b4;
    border-radius: 50%;
    padding: 10px;
}

/* 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 {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

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

/* 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 */
.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;
}
