/* ============================================================
   Vetprise Laravel - Layout Fixes
   ============================================================ */

/* ── BODY ── */
body {
    padding-top: 0 !important;
}

/* ── HOME PAGE NAVBAR (navbar-custom) ──────────────────────
   Transparent on top, dark after scroll (affix) */
.navbar-custom {
    background-color: rgba(0,0,0,0.6) !important;
    padding: 15px 0;
    transition: all 0.3s ease;
    border: none;
}
/* Logo always visible */
.navbar-custom .logo_setting img {
    height: 55px;
    transition: all 0.3s ease;
}
/* Nav text always white */
.navbar-custom .nav li a {
    color: #fff !important;
}
/* After scroll - solid dark */
.navbar-custom.affix {
    background: #222222 !important;
    padding: 8px 0 !important;
}
.navbar-custom.affix .logo_setting img {
    height: 45px !important;
}
.navbar-custom.affix .header_custom_setting {
    margin-top: 0 !important;
    background: none !important;
}
.navbar-custom.affix .first_nav {
    margin-top: 0 !important;
    float: right !important;
}
.navbar-custom.affix .top_social_nav {
    margin-top: 0 !important;
    float: right !important;
}
.navbar-custom.affix .second_nav {
    background: none !important;
}
.navbar-custom.affix .second_nav li {
    float: left !important;
    display: inline-block !important;
}

/* ── INNER PAGES NAVBAR (navbar-custom-outershell) ─────────
   Always dark, no transparency */
.navbar-custom-outershell {
    background-color: #222222 !important;
    padding: 10px 0 !important;
    border: none;
}
.navbar-custom-outershell .logo_setting img {
    height: 55px !important;
}
.navbar-custom-outershell .nav li a {
    color: #fff !important;
}
.navbar-custom-outershell .header_custom_setting {
    margin-top: 0 !important;
    background: none !important;
}
.navbar-custom-outershell .first_nav {
    margin-top: 0 !important;
    float: right !important;
}
.navbar-custom-outershell .top_social_nav {
    margin-top: 0 !important;
    float: right !important;
}
.navbar-custom-outershell .second_nav {
    background: none !important;
    min-width: 100%;
}
.navbar-custom-outershell .second_nav li {
    float: left !important;
    display: inline-block !important;
}
.navbar-custom-outershell .second_nav li a {
    padding: 10px 10px !important;
    font-size: 11px !important;
}
.navbar-custom-outershell.affix {
    background: #222222 !important;
    padding: 8px 0 !important;
}

/* ── HEADER LAYOUT (home carousel + inner pages banner) ─── */
/* Home carousel starts at very top (navbar overlaps it intentionally) */
header#myCarousel {
    margin-top: 0;
}
/* Inner pages banner strip - sits below fixed navbar */
header#inner-pages {
  min-height: 350px;
    background-image: url('../img/header_img/banner1.jpg');
    /* background-size: cover;
    background-position: center top; */
    margin-top: 0;
}

/* ── FLASH MESSAGES ────────────────────────────────────────
   Make sure alerts never overlap the navbar */
.alert {
    margin-bottom: 38px;
    border-radius: 3px;
}

/* ── CONTENT SECTIONS ─────────────────────────────────────── */
#about_us {
    padding-top: 20px;
    padding-bottom: 40px;
    min-height: 400px;
}
.home_content {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* ── DASHBOARD SIDEBAR ───────────────────────────────────── */
.right_side_bar_section {
    margin-top: 20px;
}
.sidebar-nav {
    background: #f0eee8;
    padding-bottom: 10px;
    margin: 20px 0;
    border-radius: 4px;
    overflow: hidden;
}
.sidebar-nav .heading_bg {
    background: #e06a00;
    color: #fff;
    padding: 4px 15px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}
.right_side_bar {
    background: none;
    border: none;
    box-shadow: none;
    margin: 0;
}
.sidebar-navbar-collapse {
    padding: 0;
}
.sidebar-navbar-collapse .navbar-nav > li > a {
    padding: 9px 15px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    letter-spacing: 1px;
    color: #444;
    text-transform: uppercase;
}
.sidebar-navbar-collapse .navbar-nav > li > a:hover {
    background: #e06a00;
    color: #fff;
    text-decoration: none;
}
.sidebar-navbar-collapse ul li {
    width: 100%;
}

/* ── DROPDOWN MENUS ──────────────────────────────────────── */
.dropdown-menu > li > a {
    color: #333 !important;
}
@media (max-width: 767px) {
    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #fff !important;
    }
}
/* dropdown width handled below */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}
.dropdown-submenu:hover > a:after {
    border-left-color: #fff;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    header#inner-pages {
        min-height: 120px;
    }
    .navbar-custom,
    .navbar-custom-outershell {
        padding: 5px 0 !important;
    }
    .navbar-custom .logo_setting img,
    .navbar-custom-outershell .logo_setting img {
        height: 40px !important;
    }
}
@media (max-width: 480px) {
    header#inner-pages {
        min-height: 80px;
    }
}

/* ── MISC ────────────────────────────────────────────────── */
@media (min-width: 800px) {
    .header_custom_setting {
        width: 100%;
        text-align: center;
        margin-top: 160px;
    }
    .first_nav {
        float: none;
        text-align: center;
        margin-top: -48px;
    }
    .second_nav {
        min-width: 100%;
    }
    .second_nav li {
        float: none;
        display: inline-block;
    }
    .second_nav li a {
        padding-left: 10px;
        padding-right: 10px;
    }
    .top_social_nav {
        margin-top: -150px;
    }
    .top_social_nav li a {
        padding: 0;
        margin: 0 5px;
        width: 38px;
        height: 38px;
        line-height: 40px;
        background: rgba(255,255,255,0.9);
        color: #000 !important;
        border-radius: 50%;
        border: 2px solid transparent;
        text-align: center;
        display: inline-block;
    }
    .top_social_nav li a:hover {
        border: 2px solid #fff;
        background: transparent;
    }
    .top_social_nav li a i {
        font-size: 16px;
        color: #333;
    }
    .top_social_nav li a:hover i {
        color: #fff;
    }
    .navbar-custom.affix .top_social_nav {
        margin-top: -48px;
        margin-right: 180px !important;
    }
}

@media (max-width: 786px) {
    .top_social_nav {
        margin-top: 11px;
    }
    .top_social_nav li {
        display: inline-block;
    }
    .top_social_nav li a {
        color: #fff !important;
        background: none !important;
    }
}

@media (max-width: 1199px) and (min-width: 801px) {
    .first_nav {
        margin-top: -49px;
    }
    .navbar-custom.affix .first_nav {
        margin-top: -3px;
    }
    .navbar-custom.affix .top_social_nav {
        margin-right: 10px !important;
        margin-top: 0;
    }
}

/* ── DROPDOWN MENU CRITICAL FIXES ────────────────────────────
   Fix z-index so dropdowns appear ABOVE the carousel
   Fix text color so items are visible
   Fix width so items are not blank boxes
   ─────────────────────────────────────────────────────────── */

/* Navbar must sit above carousel (z-index 1030 is Bootstrap navbar default) */
#mainNav {
    z-index: 9999 !important;
}

/* Dropdown menus */
.navbar-custom .dropdown-menu,
.navbar-custom-outershell .dropdown-menu {
    z-index: 9998 !important;
    background-color: #222222 !important;
    border: 1px solid #444 !important;
    border-radius: 0 0 4px 4px !important;
    min-width: 200px !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

/* Dropdown items - white text on dark background */
.navbar-custom .dropdown-menu > li > a,
.navbar-custom-outershell .dropdown-menu > li > a {
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    display: block !important;
    background-color: transparent !important;
}

/* Dropdown item hover */
.navbar-custom .dropdown-menu > li > a:hover,
.navbar-custom-outershell .dropdown-menu > li > a:hover {
    background-color: #e06a00 !important;
    color: #ffffff !important;
}

/* Dividers between items */
.navbar-custom .dropdown-menu > li + li,
.navbar-custom-outershell .dropdown-menu > li + li {
    border-top: 1px solid #444 !important;
}

/* Open state - keep parent highlighted */
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .open > a:hover {
    background-color: transparent !important;
    color: #e06a00 !important;
}

/* Submenu (fly-out) positioning */
.dropdown-submenu > .dropdown-menu {
    top: 0 !important;
    left: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    border-radius: 0 4px 4px 4px !important;
    z-index: 9997 !important;
}

/* Fix Bootstrap carousel z-index - must be BELOW navbar */
.carousel {
    z-index: 1 !important;
}
.carousel-control {
    z-index: 2 !important;
}

/* Fix the width constraint that was making blank boxes */
.multi-level li,
.dropdown-menu li {
    width: auto !important;
    max-width: none !important;
    min-width: 200px !important;
}
