/**
 * Medic Site Consolidated CSS
 * Bootstrap 5 + Custom Utilities + Legacy Classes
 * Optimized for performance and maintainability
 */

/* ========== Typography Utilities ========== */
.text-2 {
	font-size: .9em !important;
}

.text-3 {
	font-size: 1em !important;
}

.text-4 {
	font-size: 1.2em !important;
}

.text-5 {
	font-size: 1.50em !important;
}

.text-6 {
	font-size: 1.80em !important;
}

.text-7 {
	font-size: 2em !important;
}

.text-10 {
	font-size: 2.75em !important;
}

.font-weight-extra-bold {
	font-weight: 800 !important;
}

.font-weight-semibold,
.font-weight-semi-bold {
	font-weight: 600 !important;
}

/* ========== Utility Classes ========== */
.overflow-hidden {
	overflow: hidden !important;
}

/* Background colors - use theme-colors.css or Bootstrap utilities instead */
.bg-color-primary {
	background-color: var(--bs-primary) !important;
}

.bg-color-grey-scale-1 {
	background-color: #f8f9fa !important;
}

/* Aspect ratio - Bootstrap 5 has .ratio classes, but keep for compatibility */
.ratio-16x9 {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.ratio-16x9 > * {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ========== Custom Medic Site Styles ========== */
/* (Merged from custom.css - add your custom styles here) */

/* Add here all your CSS customizations */

/* CRITICAL FIX: Ensure all images are visible and don't disappear */
img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Header images must always be visible */
#header img,
.header img,
.logo img,
.cart-icon img,
.navbar img {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Product images fix */
.product-image img,
.product img,
.shop img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Cart icon specific fix */
.header-nav-features-cart img,
.cart-info img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Header active link styling */
.nav-pills > .active > .dropdown-item {
    color: #ffffff !important;
    background-color: #28a745 !important;
}

.nav-pills > .active > .dropdown-item:hover {
    color: #ffffff !important;
    background-color: #218838 !important;
}

/* Slider responsive improvements */
@media (max-width: 767.98px) {
    /* Adjust slider height for mobile */
    .slider-container {
        height: 400px !important;
    }
}

@media (max-width: 575.98px) {
    /* Extra small screens */
    .slider-container {
        height: 350px !important;
    }
}

/* Product variant styling */
.variant-choice {
    margin: 0 0.5rem 0.5rem 0;
}

.variant-choice.active {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

.variant-choice small {
    font-size: 0.75rem;
}

/* Shop grid refinements */
.main.shop .product-thumb-info-image.ratio-box {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 75%;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 0.25rem;
}

.main.shop .product-thumb-info-image.ratio-box > img.ratio-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-featured {
    display: inline-block;
    background: #ffc107;
    color: #3a2f0b;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.main.shop .product-thumb-info-image .badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.single-product-badge {
    margin-left: 0.75rem;
}

.main.shop .add-to-cart-product {
    display: none !important;
}

.main.shop .product .product-thumb-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main.shop .product-thumb-info-content {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.main.shop .product-thumb-info-content .price,
.main.shop .product-thumb-info-content .rfq-text {
    font-weight: 600;
}

.main.shop .product-thumb-info-content .rfq-text {
    color: #0d6efd;
}

.main.shop .product-cta {
    margin-top: auto;
}

.main.shop .product-cta .btn {
    width: 100%;
}

/* Checkout presentation */
.checkout-page .card.sticky-top {
    position: sticky !important;
    top: 20px;
}

.checkout-page .order-items img {
    border-radius: 8px;
}

.checkout-page .form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.checkout-page .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.checkout-page .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.checkout-page .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.checkout-page #placeOrderBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.main.shop .product-thumb-info-content .badge {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.08);
    color: #5c5c5c;
    padding: 0.25rem 0.4rem;
    border-radius: 999px;
}

.main.shop .product-thumb-info .btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: 50px;
}

.main.shop .product-thumb-info .btn.btn-primary {
    background: #1e73be;
    border-color: #1e73be;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.main.shop .product-thumb-info .btn.btn-primary:hover {
    background: #155a93;
    border-color: #155a93;
    transform: translateY(-1px);
}

.main.shop .product-thumb-info .btn.btn-outline-primary {
    border-color: #1e73be;
    color: #1e73be;
}

.main.shop .product-thumb-info .btn.btn-outline-primary:hover {
    background: #1e73be;
    color: #fff;
}

/* Remove global gap before footer */
#footer {
    margin-top: 0;
}

/* Header tier layout */
#header .header-tier {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
#header .header-tier:last-of-type {
    border-bottom: none;
}
#header .header-tier-top {
    background: #f8fafc;
    font-size: 0.85rem;
}
#header .header-tier-middle,
#header .header-tier-bottom {
    background: #ffffff;
}
#header .header-tier-inner {
    width: 100%;
}
#header .header-tier-top .header-nav-top .nav-link {
    padding: 0.2rem 0.65rem;
}
#header .header-nav-features .header-nav-feature + .header-nav-feature {
    margin-left: 0.75rem;
}
#header .header-extra-info {
    gap: 1.5rem;
    padding-left: 0;
    margin-bottom: 0;
}
#header .header-extra-info li {
    list-style: none;
}
#header .header-extra-info label {
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}
@media (max-width: 575.98px) {
    #header .header-tier {
        padding: 0.65rem 0;
    }
    #header .header-extra-info {
        gap: 0.75rem;
    }
}

/* ============================================
   HEADER USER DROPDOWN FIX - ALL DROPDOWNS
   ============================================ */
/* Fix for ALL header dropdowns (user menu, cart, search) */
#header .header-nav-features-dropdown,
#header .dropdown-menu {
    z-index: 10000 !important;
    position: absolute !important;
}

#header .nav-item.dropdown,
#header .header-nav-feature {
    position: relative;
    z-index: 1001;
}

#header .dropdown-menu.show,
#header .header-nav-features-dropdown {
    z-index: 10000 !important;
}

/* Ensure header body has lower z-index than dropdowns */
#header .header-body {
    position: relative;
    z-index: 100;
}

/* Main navigation should be below dropdowns */
#header .header-nav-main {
    position: relative;
    z-index: 50;
}

/* Top header features area needs proper stacking */
#header .header-nav-top {
    position: relative;
    z-index: 1001;
}

#header .header-row {
    position: relative;
    z-index: auto;
}

/* ============================================
   PHONE FIELD FLAG OVERFLOW FIX
   ============================================ */
.iti {
    width: 100%;
    position: relative;
    display: block;
}

.iti__flag-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.iti__selected-flag {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Prevent phone input from expanding vertically */
.iti input[type="tel"],
.iti input.form-control {
    height: calc(1.5em + 0.75rem + 2px) !important;
    min-height: calc(1.5em + 0.75rem + 2px) !important;
    max-height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Allow intl-tel-input to manage padding when using separate dial code */
.iti:not(.iti--separate-dial-code) input[type="tel"],
.iti:not(.iti--separate-dial-code) input.form-control {
    padding-left: 52px;
}

/* Form group should not expand with validation */
.form-group {
    position: relative;
    overflow: visible;
}

/* Validation feedback positioning */
.invalid-feedback,
.valid-feedback,
.text-danger,
.text-success {
    display: block;
    position: relative;
    z-index: 0;
    margin-top: 0.25rem !important;
    font-size: 0.875rem;
    line-height: 1.4;
}

#registerForm .invalid-feedback {
    display: none;
}

#registerForm.was-validated .form-control:invalid ~ .invalid-feedback,
#registerForm.was-validated .form-check-input:invalid ~ .invalid-feedback,
#registerForm .invalid-feedback.show-feedback {
    display: block;
}

/* Ensure validation doesn't affect input height */
.form-control.is-invalid,
.form-control.is-valid,
.was-validated .form-control:invalid,
.was-validated .form-control:valid {
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding-right: calc(1.5em + 0.75rem);
    background-position: right calc(0.375em + 0.1875rem) center;
}

/* Phone field specific - prevent height expansion */
.iti input[type="tel"].is-invalid,
.iti input[type="tel"].is-valid,
.was-validated .iti input[type="tel"]:invalid,
.was-validated .iti input[type="tel"]:valid {
    height: calc(1.5em + 0.75rem + 2px) !important;
    min-height: calc(1.5em + 0.75rem + 2px) !important;
    max-height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Keep country dropdown properly positioned */
.iti__country-list {
    position: absolute;
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
}

/* Form row spacing */
.form-row {
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.contact-form .alert {
    position: relative;
    z-index: 0;
    margin-bottom: 1rem;
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================ */

/* Header mobile improvements */
@media (max-width: 991.98px) {
    /* Top bar text sizing for tablets */
    .site-header-top .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
    
    /* Adjust logo sizing */
    .site-header-mid .logo img,
    .site-header-middle .brand-logo img {
        max-height: 50px;
    }
}

@media (max-width: 767.98px) {
    /* Mobile header adjustments */
    .site-header-top {
        padding: 0.5rem 0;
    }
    
    .site-header-top .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }
    
    /* Hide separators on small screens */
    .site-header-top .sep {
        display: none;
    }
    
    /* Logo sizing for mobile - PREVENT OVERFLOW */
    .site-header-mid .logo img,
    .site-header-middle .brand-logo img {
        max-height: 45px !important;
        height: auto !important;
        max-width: 90vw !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    /* Cart icon sizing */
    .header-nav-features-cart .header-nav-features-number {
        font-size: 0.65rem;
        width: 16px;
        height: 16px;
        line-height: 16px;
    }
    
    /* Navbar brand when stuck */
    .nav-brand-when-stuck .nav-logo {
        max-height: 35px;
        max-width: 150px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* Center logo on mobile - stack layout */
    .site-header-middle .row {
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
    }
    
    .site-header-middle .col-auto {
        width: 100%;
        text-align: center !important;
        margin-bottom: 0.75rem;
        padding: 0 15px;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .site-header-middle .brand-logo {
        justify-content: center !important;
        text-align: center !important;
        max-width: 100%;
        overflow: hidden;
        display: flex !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
    
    .site-header-middle .col {
        width: 100%;
    }
    
    .site-header-middle .search-50 {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    /* Extra small screens */
    .site-header-top .nav {
        font-size: 0.7rem;
    }
    
    /* Stack nav items vertically if needed */
    .site-header-top .nav-item {
        margin: 0 0.15rem;
    }
    
    /* Logo smaller on tiny screens - MAINTAIN ASPECT RATIO */
    .site-header-mid .logo img,
    .site-header-middle .brand-logo img {
        max-height: 35px !important;
        height: auto !important;
        max-width: 85vw !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    /* Adjust search bar */
    .site-header-mid .header-search-form input,
    .site-header-middle .search-50 input {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 400px) {
    /* Very small mobile devices */
    .site-header-top .nav-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
    }
    
    .site-header-mid .logo img,
    .site-header-middle .brand-logo img {
        max-height: 30px !important;
        height: auto !important;
        max-width: 80vw !important;
        width: auto !important;
        object-fit: contain !important;
    }
}

/* Footer mobile improvements */
@media (max-width: 991.98px) {
    /* Footer columns stacking */
    #footer .footer-top .col-lg-3,
    #footer .footer-top .col-lg-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    /* Footer spacing and typography */
    #footer .footer-heading {
        font-size: 1rem;
    }
    
    #footer .footer-top {
        padding: 2rem 0;
    }
    
    /* Social icons sizing */
    #footer .footer-social .social-link {
        font-size: 0.9rem;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
    
    /* Footer links spacing */
    #footer .footer-links li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    /* Footer logo sizing */
    #footer .footer-top img {
        max-width: 60px !important;
    }
    
    /* Footer text sizing */
    #footer .footer-top p,
    #footer .footer-links a {
        font-size: 0.9rem;
    }
    
    /* Footer heading stack */
    #footer .footer-heading-stack h5 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
    }
    
    /* Social icons smaller */
    #footer .footer-social .social-link {
        font-size: 0.85rem;
        width: 28px;
        height: 28px;
        line-height: 28px;
        margin-right: 0.25rem;
    }
    
    /* Copyright text */
    #footer .footer-copyright p {
        font-size: 0.8rem;
    }
}

/* Mobile navbar dropdown fixes - SIMPLE DESIGN */
@media (max-width: 991.98px) {
    /* Collapsed navbar - white background */
    .navbar-collapse,
    #siteMainNav,
    #siteMainNav.collapse,
    #siteMainNav.collapsing,
    #siteMainNav.show {
        background-color: #ffffff !important;
    }
    
    .navbar-collapse {
        border-top: 1px solid #ddd;
        margin-top: 10px;
        padding: 0;
    }
    
    /* Simple nav links - ULTRA COMPACT */
    #siteMainNav .navbar-nav .nav-link,
    #siteMainNav .navbar-nav .nav-link strong,
    .navbar-nav .nav-link,
    .navbar-nav .nav-link strong {
        color: #000000 !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 4px 15px !important; /* Ultra compact - 4px */
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px !important;
        line-height: 1.2 !important;
        display: block !important;
        text-decoration: none !important;
    }
    
    #siteMainNav .navbar-nav .nav-link:hover {
        color: #1a73e8 !important;
        background-color: #f8f9fa !important;
    }
    
    #siteMainNav .navbar-nav .nav-item.active .nav-link {
        color: #1a73e8 !important;
        background-color: transparent !important;
        font-weight: 600;
    }
    
    /* Dropdown menu - compact and simple with REDUCED spacing */
    #siteMainNav .dropdown-menu {
        background-color: #ffffff;
        border: none;
        border-left: 3px solid #1a73e8;
        margin: 0;
        padding: 0;
        box-shadow: none;
        position: static !important;
        width: 100%;
    }
    
    #siteMainNav .dropdown-menu .dropdown-item {
        color: #495057;
        padding: 3px 15px 3px 25px !important; /* Ultra compact - 3px */
        border: none;
        border-radius: 0;
        font-size: 14px;
        line-height: 1.2 !important;
        margin: 0 !important;
        border-bottom: 1px solid #f5f5f5;
    }
    
    #siteMainNav .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #1a73e8;
    }
    
    /* Mega dropdown - simple list */
    #siteMainNav .mega-dropdown {
        background-color: #ffffff;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    #siteMainNav .mega-dropdown .mega-grid {
        padding: 0;
    }
    
    #siteMainNav .mega-heading {
        color: #212529;
        font-size: 14px;
        font-weight: 600;
        padding: 4px 15px !important; /* Ultra compact - 4px */
        margin: 0 !important;
        line-height: 1.2 !important;
        background-color: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
    }
    
    #siteMainNav .mega-heading a {
        color: #212529;
        text-decoration: none;
    }
    
    #siteMainNav .mega-links {
        padding: 0;
        margin: 0;
    }
    
    #siteMainNav .mega-links li {
        padding: 0;
        margin: 0;
        list-style: none;
        border-bottom: 1px solid #f5f5f5; /* Moved border here */
    }
    
    #siteMainNav .mega-links li + li {
        margin-top: 0; /* Remove extra margin */
        padding-top: 0; /* Remove extra padding */
        border-top: none; /* Remove duplicate border */
    }
    
    #siteMainNav .mega-links a {
        color: #495057;
        padding: 3px 15px 3px 25px !important; /* Ultra compact - 3px */
        display: block;
        font-size: 14px;
        line-height: 1.2 !important;
        margin: 0 !important;
        text-decoration: none;
        border-bottom: none; /* Remove duplicate border */
    }
    
    #siteMainNav .mega-links a:hover {
        color: #1a73e8;
        background-color: #f8f9fa;
    }
    
    /* Remove column padding on mobile */
    #siteMainNav .mega-dropdown .col-md-4 {
        padding: 0;
        margin-bottom: 0;
    }
}

/* Top bar mobile fixes - show login/user info */
@media (max-width: 767.98px) {
    /* Make sure login/register/user menu is visible on mobile */
    .site-header-top .nav-item {
        display: inline-block !important;
    }
    
    .site-header-top .nav-item.d-none.d-sm-block {
        display: inline-block !important;
    }
    
    .site-header-top .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
        min-width: 200px;
    }
    
    /* Ensure user dropdown is visible */
    .site-header-top .nav-item.dropdown {
        position: relative;
    }
}

@media (max-width: 575.98px) {
    /* Very small screens - compact user info */
    .site-header-top .dropdown-toggle {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) and (hover: none) {
    /* Increase touch targets for mobile */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .header-nav-features-cart,
    .header-nav-features-search-reveal-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    #footer .footer-social .social-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}



/* ========== Page Header & Breadcrumbs (Bootstrap 5) ========== */
.page-header {
	background-color: #212529;
	margin: 0 0 35px 0;
	padding: 30px 0;
	position: relative;
	text-align: left;
}

.page-header .breadcrumb {
	background: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
}

.page-header .breadcrumb > li {
	display: inline-block;
	font-size: 0.8em;
	text-transform: uppercase;
	text-shadow: none;
	color: #fff;
}

.page-header .breadcrumb > li + li:before {
	color: inherit;
	opacity: 0.5;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	content: "\f105";
	padding: 0 7px 0 5px;
}

.page-header .breadcrumb.breadcrumb-block {
	background: #212529;
	display: inline-block !important;
	padding: 7.2px 19.2px;
	padding: .45rem 1.2rem;
	border-radius: 4px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-header .breadcrumb.breadcrumb-light {
	color: #FFF;
}

.page-header .breadcrumb.breadcrumb-light a {
	color: #FFF;
	text-decoration: none;
}

.page-header .breadcrumb.breadcrumb-light a:hover {
	color: #FFF;
	opacity: 0.8;
}

.page-header .breadcrumb.breadcrumb-light .active {
	opacity: 0.7;
}

.page-header .breadcrumb a {
	color: #fff;
	text-decoration: none;
}

.page-header .breadcrumb a:hover {
	color: #fff;
	opacity: 0.8;
}

.page-header h1 {
	color: #fff;
	display: inline-block;
	font-size: 30px;
	line-height: 1;
	margin: 0 0 0 0;
	padding: 0;
	font-weight: 400;
	position: relative;
	top: 1px;
}

.page-header h1[data-title-border]:after {
	content: '';
	display: block;
	width: 50px;
	height: 2px;
	background: #0088cc;
	margin-top: 10px;
}

.page-header .sub-title {
	display: block;
	font-size: 1.2em;
	font-weight: 300;
	margin: 0;
	opacity: 0.8;
	color: #fff;
}

.page-header .page-header-extra-button {
	position: absolute;
	width: 100%;
	bottom: 50px;
	left: 0;
	right: 0;
	z-index: 5;
}

.page-header.page-header-sm {
	padding: 30px 0;
}

.page-header.page-header-sm h1 {
	font-size: 22px;
}

.page-header.page-header-lg {
	padding: 50px 0;
}

.page-header.page-header-lg h1 {
	font-size: 40px;
}

.page-header.page-header-classic:after {
	display: none;
}

.page-header.page-header-classic .page-header-title-border {
	width: 0;
	height: 5px;
	position: absolute;
	bottom: 0;
	background: transparent;
	z-index: 1;
}

.page-header.page-header-modern h1 {
	font-size: 28px;
}

.page-header.page-header-modern.page-header-sm h1 {
	font-size: 22px;
}

.page-header.page-header-modern.page-header-md {
	padding: 50px 0;
}

.page-header.page-header-modern.page-header-lg {
	padding: 65px 0;
}

.page-header.page-header-modern.page-header-lg h1 {
	font-size: 32px;
}

.page-header.page-header-modern.page-header-background {
	padding: 130px 0;
	background-size: cover;
}

.page-header.page-header-modern.page-header-background.page-header-background-pattern {
	background-size: auto;
	background-repeat: repeat;
	background-attachment: fixed;
}

.page-header.page-header-modern.page-header-background.page-header-background-sm {
	padding: 50px 0;
}

.page-header.page-header-modern.page-header-background.page-header-background-md {
	padding: 150px 0;
}

.page-header.page-header-modern.page-header-background.page-header-background-lg {
	padding: 250px 0;
}

/* Position */
.p-relative {
	position: relative !important;
}

.p-absolute {
	position: absolute !important;
}

.p-fixed {
	position: fixed !important;
}

.p-static {
	position: static !important;
}

/* Box Shadow */
.box-shadow-none {
	box-shadow: none !important;
}

/* Inverted */
.inverted {
	color: #FFF;
	display: inline-block;
	padding-left: 10px;
	padding-right: 10px;
}

h1 .inverted {
	padding-left: 10px;
	padding-right: 10px;
}

h2 .inverted {
	padding-left: 7px;
	padding-right: 7px;
}



/* ========== Lists & Icons ========== */
.list.list-icons {
	list-style: none;
	padding-left: 0;
	padding-right: 0;
}

.list.list-icons li {
	position: relative;
	padding-left: 25px;
}

.list.list-icons li > [class*="fa-"]:first-child,
.list.list-icons li > .icons:first-child, .list.list-icons li a:first-child > [class*="fa-"]:first-child,
.list.list-icons li a:first-child > .icons:first-child {
	position: absolute;
	left: 0;
	top: 5px;
}

.list.list-icons.list-icons-style-2 li {
	padding-top: 5px;
	padding-left: 36px;
}

.list.list-icons.list-icons-style-2 li > [class*="fa-"]:first-child,
.list.list-icons.list-icons-style-2 li > .icons:first-child, .list.list-icons.list-icons-style-2 li a:first-child > [class*="fa-"]:first-child,
.list.list-icons.list-icons-style-2 li a:first-child > .icons:first-child {
	border-width: 1px;
	border-style: solid;
	border-radius: 50%;
	width: 25px;
	height: 25px;
	text-align: center;
	padding: 4px;
	font-size: 0.8em;
	line-height: 1.3;
}

.list.list-icons.list-icons-style-3 li {
	padding-top: 5px;
	padding-left: 36px;
}

.list.list-icons.list-icons-style-3 li > [class*="fa-"]:first-child,
.list.list-icons.list-icons-style-3 li > .icons:first-child, .list.list-icons.list-icons-style-3 li a:first-child > [class*="fa-"]:first-child,
.list.list-icons.list-icons-style-3 li a:first-child > .icons:first-child {
	color: #FFF;
	border-radius: 50%;
	width: 25px;
	height: 25px;
	text-align: center;
	padding: 5px;
	font-size: 0.8em;
	line-height: 1.3;
}

.list.list-icons.list-icons-sm li {
	padding-left: 13px;
	margin-bottom: 5px;
}

.list.list-icons.list-icons-sm li > [class*="fa-"]:first-child,
.list.list-icons.list-icons-sm li > .icons:first-child, .list.list-icons.list-icons-sm li a:first-child > [class*="fa-"]:first-child,
.list.list-icons.list-icons-sm li a:first-child > .icons:first-child {
	font-size: 0.8em;
	top: 7px;
}

.list.list-icons.list-icons-sm.list-icons-style-2 li {
	padding-left: 32px;
}

.list.list-icons.list-icons-sm.list-icons-style-2 li > [class*="fa-"]:first-child,
.list.list-icons.list-icons-sm.list-icons-style-2 li > .icons:first-child, .list.list-icons.list-icons-sm.list-icons-style-2 li a:first-child > [class*="fa-"]:first-child,
.list.list-icons.list-icons-sm.list-icons-style-2 li a:first-child > .icons:first-child {
	width: 20px;
	height: 20px;
	padding: 3px;
}

.list.list-icons.list-icons-sm.list-icons-style-3 li {
	padding-left: 32px;
}

.list.list-icons.list-icons-sm.list-icons-style-3 li > [class*="fa-"]:first-child,
.list.list-icons.list-icons-sm.list-icons-style-3 li > .icons:first-child, .list.list-icons.list-icons-sm.list-icons-style-3 li a:first-child > [class*="fa-"]:first-child,
.list.list-icons.list-icons-sm.list-icons-style-3 li a:first-child > .icons:first-child {
	width: 20px;
	height: 20px;
	padding: 3px;
}

.list.list-icons.list-icons-lg li {
	padding-top: 5px;
	padding-left: 27px;
}

.list.list-icons.list-icons-lg li > [class*="fa-"]:first-child,
.list.list-icons.list-icons-lg li > .icons:first-child,
.list.list-icons.list-icons-lg li a:first-child > [class*="fa-"]:first-child,
.list.list-icons.list-icons-lg li a:first-child > .icons:first-child {
	font-size: 1.3em;
}

/* ========== Featured Boxes ========== */
.featured-box {
	background: #FFF;
	box-sizing: border-box;
	border-bottom: 1px solid #DFDFDF;
	border-left: 1px solid #ECECEC;
	border-radius: 8px;
	border-right: 1px solid #ECECEC;
	box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	min-height: 100px;
	position: relative;
	text-align: center;
	z-index: 1;
}

.featured-box h4 {
	font-size: 1.3em;
	font-weight: 400;
	letter-spacing: -0.7px;
	margin-top: 5px;
	margin-bottom: 5px;
}

.featured-box .box-content {
	border-radius: 8px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	border-top-width: 4px;
	padding: 28.8px;
	padding: 1.8rem;
	position: relative;
}

.featured-box .box-content:not(.box-content-border-0) {
	top: -1px;
	border-top-width: 4px;
}

.featured-box .box-content.box-content-border-0 {
	border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
	border-bottom: 0 !important;
}

.featured-box .box-content.box-content-border-bottom {
	top: 1px;
}

.featured-box .box-content-border-bottom {
	border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
	border-bottom: 4px solid rgba(0, 0, 0, 0.06);
}

/* Featured Box Left */
.featured-box-text-left {
	text-align: left;
}

/* Featured Boxes - Flat */
.featured-boxes-flat .featured-box {
	box-shadow: none;
	margin: 10px 0;
}

.featured-boxes-flat .featured-box .box-content {
	background: #FFF;
	margin-top: 65px;
}

.featured-boxes-flat .featured-box .icon-featured {
	display: inline-block;
	font-size: 2em;
	height: 90px;
	line-height: 90px;
	padding: 0;
	width: 90px;
	margin: -100px 0 -15px;
	position: relative;
	top: -40px;
}

/* Featured Boxes - Style 2 */
.featured-boxes-style-2 .featured-box {
	background: none;
	border: 0;
	margin: 10px 0;
	box-shadow: none;
}

.featured-boxes-style-2 .featured-box .box-content {
	border: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.featured-boxes-style-2 .featured-box .icon-featured {
	display: inline-block;
	font-size: 1.8em;
	height: 75px;
	line-height: 75px;
	padding: 0;
	width: 75px;
	margin-top: 0;
}

/* Featured Boxes - Style 3 */
.featured-boxes-style-3 .featured-box {
	margin: 10px 0;
}

.featured-boxes-style-3 .featured-box .icon-featured {
	display: inline-block;
	font-size: 1.8em;
	height: 75px;
	line-height: 75px;
	padding: 0;
	width: 75px;
	margin-top: -37px;
	top: -37px;
	background: #FFF;
	border: 2px solid rgba(0, 0, 0, 0.06);
	color: rgba(0, 0, 0, 0.06);
}

.featured-boxes-style-3:not(.featured-boxes-flat) .featured-box {
	background: none;
	border: 0;
	box-shadow: none;
}

.featured-boxes-style-3:not(.featured-boxes-flat) .featured-box .box-content {
	border: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/* Featured Boxes - Style 4 */
.featured-boxes-style-4 .featured-box {
	background: none;
	border: 0;
	margin: 10px 0;
	box-shadow: none;
}

.featured-boxes-style-4 .featured-box .box-content {
	border: 0;
	padding-top: 0;
	padding-bottom: 0;
}



/* ========== Position Utilities ========== */
.top-6 { position: relative; top: 6px; }
.top-7 { position: relative; top: 7px; }

/* ========== Scroll to Top Button ========== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.scroll-to-top i {
  display: block;
  line-height: 1;
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top:hover {
  background: var(--primary-orange-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* ========== Additional Utilities ========== */
.p-static {
	position: static !important;
}
.list-dark { color: #333; }
[data-title-border] { padding-bottom: 0; border-bottom: none; }

/* ========== Studio Typography (merged from studio-typography.css) ========== */
.title-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title-cell:hover {
    overflow: visible;
    white-space: normal;
    background-color: var(--bs-light);
    position: relative;
    z-index: 10;
    border-radius: 0.25rem;
    padding: 0.5rem !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.15);
}

.notes-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-cell:hover {
    overflow: visible;
    white-space: normal;
    background-color: var(--bs-light);
    position: relative;
    z-index: 10;
    border-radius: 0.25rem;
    padding: 0.5rem !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.15);
}


/* ============================================================
   THEME COLOR OVERRIDES - Orange & Dark Blue Theme
   ============================================================ */

:root {
    /* Primary Colors */
    --primary-orange: #f97316;
    --primary-orange-hover: #ea580c;
    --primary-orange-dark: #c2410c;
    --primary-blue: #0f172a;
    --secondary-blue: #1d4ed8;
    --secondary-blue-hover: #1e40af;
    
    /* Light Variants */
    --light-orange: #fed7aa;
    --light-blue: #dbeafe;
    --lighter-orange: #ffedd5;
    --lighter-blue: #eff6ff;
    
    /* Text Colors */
    --text-dark: #0f172a;
    --text-gray: #333333;
}

/* ============================================================
   BUTTONS - Primary (Orange)
   ============================================================ */

.btn-primary {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-orange-hover) !important;
    border-color: var(--primary-orange-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--primary-orange-dark) !important;
    border-color: var(--primary-orange-dark) !important;
}

.btn-primary:disabled {
    background-color: #fed7aa !important;
    border-color: #fed7aa !important;
    opacity: 0.6;
}

/* Button Outline Primary */
.btn-outline-primary {
    color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: #ffffff !important;
}

/* ============================================================
   BADGES - Primary (Orange)
   ============================================================ */

.badge-primary {
    background-color: var(--primary-orange) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.badge.badge-primary {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}

/* ============================================================
   TEXT & LINKS
   ============================================================ */

.text-primary {
    color: var(--primary-orange) !important;
}

a {
    color: var(--secondary-blue);
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--primary-orange);
    text-decoration: none;
}

/* Primary colored links */
a.text-primary:hover,
a.text-primary:focus {
    color: var(--primary-orange-hover) !important;
}

/* ============================================================
   BACKGROUNDS
   ============================================================ */

.bg-primary {
    background-color: var(--primary-orange) !important;
}

.bg-light-orange {
    background-color: var(--light-orange) !important;
}

.bg-lighter-orange {
    background-color: var(--lighter-orange) !important;
}

/* ============================================================
   FORM CONTROLS - Focus States (Orange)
   ============================================================ */

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25) !important;
}

textarea.form-control:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25) !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}

/* ============================================================
   PAGINATION - Active State (Orange)
   ============================================================ */

.pagination .page-item.active .page-link {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: #ffffff !important;
}

.pagination .page-link {
    color: var(--secondary-blue);
}

.pagination .page-link:hover {
    color: var(--primary-orange);
    background-color: var(--lighter-orange);
    border-color: var(--primary-orange);
}

/* ============================================================
   ALERTS - Primary (Orange)
   ============================================================ */

.alert-primary {
    background-color: var(--lighter-orange) !important;
    border-color: var(--light-orange) !important;
    color: var(--primary-orange-dark) !important;
}

/* ============================================================
   PROGRESS BARS - Primary (Orange)
   ============================================================ */

.progress-bar {
    background-color: var(--primary-orange) !important;
}

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
}

/* ============================================================
   CARDS & BORDERS
   ============================================================ */

.border-primary {
    border-color: var(--primary-orange) !important;
}

.card-primary {
    border-color: var(--primary-orange) !important;
}

.card-primary .card-header {
    background-color: var(--primary-orange) !important;
    color: #ffffff !important;
}

/* ============================================================
   TABS & NAV PILLS - Active State (Orange)
   ============================================================ */

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--primary-orange) !important;
    color: #ffffff !important;
}

.nav-tabs .nav-link.active {
    color: var(--primary-orange) !important;
    border-bottom-color: var(--primary-orange) !important;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-orange) !important;
}

/* ============================================================
   DROPDOWNS - Hover & Active States
   ============================================================ */

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--lighter-orange) !important;
    color: var(--primary-orange) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-orange) !important;
    color: #ffffff !important;
}

/* ============================================================
   LIST GROUP - Active State (Orange)
   ============================================================ */

.list-group-item.active {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: #ffffff !important;
}

.list-group-item-primary {
    background-color: var(--lighter-orange) !important;
    color: var(--primary-orange-dark) !important;
}

/* ============================================================
   SPINNERS & LOADERS - Primary (Orange)
   ============================================================ */

.spinner-border-primary {
    color: var(--primary-orange) !important;
}

.spinner-grow-primary {
    color: var(--primary-orange) !important;
}

/* ============================================================
   PRICE & SALE TAGS
   ============================================================ */

.price-tag,
.sale-tag,
.discount-badge {
    background-color: var(--primary-orange) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.price-highlight {
    color: var(--primary-orange) !important;
    font-weight: 700;
}

/* ============================================================
   ADD TO CART BUTTONS (Specific to E-commerce)
   ============================================================ */

.btn-add-to-cart {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.btn-add-to-cart:hover {
    background-color: var(--primary-orange-hover) !important;
    border-color: var(--primary-orange-hover) !important;
    transform: scale(1.02);
}

/* ============================================================
   HEADINGS (Dark Blue - Optional)
   ============================================================ */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-dark);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-orange {
    color: var(--primary-orange) !important;
}

.text-orange-hover:hover {
    color: var(--primary-orange) !important;
}

.bg-orange {
    background-color: var(--primary-orange) !important;
}

.border-orange {
    border-color: var(--primary-orange) !important;
}

/* ============================================================
   HOVER EFFECTS - Orange Glow
   ============================================================ */

.hover-orange:hover {
    color: var(--primary-orange) !important;
    transition: color 0.3s ease;
}

.hover-bg-orange:hover {
    background-color: var(--lighter-orange) !important;
    transition: background-color 0.3s ease;
}

/* ============================================================
   SHADOWS & ELEVATION (with orange tint)
   ============================================================ */

.shadow-orange {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2) !important;
}

.shadow-orange-lg {
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25) !important;
}


/* Performance and Lazy Loading Styles */

/* Lazy loading fade-in effect - Only apply to specifically marked elements */
.lazyload:not([src]) {
    opacity: 0;
}

.lazyload[src] {
    opacity: 1;
}

.lazyloaded {
    opacity: 1 !important;
    transition: opacity 300ms ease-in-out;
}

/* Ensure critical images are always visible */
.header img, 
.logo img, 
.cart-icon img,
.nav img,
#header img {
    opacity: 1 !important;
}

/* Placeholder for lazy loaded images */
.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(#f0f0f0 50%, transparent 50%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: loading 1.5s infinite linear;
}

@keyframes loading {
    0% { background-position: 0 0, 10px 10px; }
    100% { background-position: 20px 20px, 30px 30px; }
}

/* Critical CSS for above-the-fold content */
.hero-section {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optimize button and form performance */
.btn {
    transition: all 0.15s ease-in-out;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .lazyloaded {
        transition: none;
    }
}

/* Performance optimizations for large lists */
.large-list {
    contain: layout style paint;
}

.large-list-item {
    contain: layout style;
}

/* Cookie banner performance optimization */
#cookieConsent {
    will-change: transform;
    contain: layout style paint;
}

/* Optimize animations */
.animate__animated {
    animation-fill-mode: both;
}

/* Reduce repaints for modals */
.modal {
    contain: layout style paint;
}

/* Optimize carousel performance */
.owl-carousel {
    will-change: transform;
}

/* Image optimization classes */
.img-optimized {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Loading skeleton for better perceived performance */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

/* CSS Loading State Management */
.css-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out;
}

.css-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.css-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Prevent FOUC for specific elements */
.anti-fouc {
    visibility: hidden;
}

.css-loaded .anti-fouc {
    visibility: visible;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fast loading states for critical UI elements */
.header-loading .navbar-brand {
    background: #f0f0f0;
    border-radius: 4px;
    width: 120px;
    height: 40px;
}

.header-loading .nav-link {
    background: #f0f0f0;
    border-radius: 4px;
    width: 80px;
    height: 20px;
    margin: 0 10px;
}

/* ========== Blog Styles ========== */
/* Posts */
.blog-posts:not(.blog-posts-no-margins) article {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	margin-bottom: 50px;
	padding-bottom: 20px;
}

.blog-posts:not(.blog-posts-no-margins) .pagination {
	margin: -10px 0 20px;
}

.blog-posts.blog-posts-no-margins .pagination {
	margin-top: 28.8px;
	margin-top: 1.8rem;
}

/* Post */
article.post h2 a {
	text-decoration: none;
}

article.post .post-meta {
	font-size: 0.9em;
	margin-bottom: 7px;
}

article.post .post-meta > span {
	display: inline-block;
	padding-right: 8px;
}

article.post .post-meta i {
	margin-right: 3px;
}

article.post .post-date {
	float: left;
	margin-right: 10px;
	text-align: center;
}

article.post .post-date .month {
	display: block;
	background: #CCC;
	border-radius: 0 0 2px 2px;
	color: #FFF;
	font-size: 0.8em;
	line-height: 1.8;
	padding: 1px 10px;
	text-transform: uppercase;
}

article.post .post-date .day {
	background: #f7f7f7;
	border-radius: 2px 2px 0 0;
	color: #CCC;
	display: block;
	font-size: 18px;
	font-weight: 900;
	padding: 10px;
}

article.post .post-image .owl-carousel {
	width: 100.1%;
}

article .post-video {
	transition: all 0.2s ease-in-out;
	padding: 0;
	background-color: #FFF;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 8px;
	display: block;
	height: auto;
	position: relative;
	margin: 0 0 30px 0;
	padding-bottom: 61%;
}

article .post-video iframe {
	bottom: 0;
	height: auto;
	left: 0;
	margin: 0;
	min-height: 100%;
	min-width: 100%;
	padding: 4px;
	position: absolute;
	right: 0;
	top: 0;
	width: auto;
}

article .post-audio {
	transition: all 0.2s ease-in-out;
	padding: 0;
	background-color: #FFF;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 8px;
	display: block;
	height: auto;
	position: relative;
	margin: 0 0 30px 0;
	padding-bottom: 35%;
	min-height: 160px;
}

article .post-audio iframe {
	bottom: 0;
	height: auto;
	left: 0;
	margin: 0;
	min-height: 100%;
	min-width: 100%;
	padding: 4px;
	position: absolute;
	right: 0;
	top: 0;
	width: auto;
}

article.post-medium .post-image .owl-carousel {
	width: 100.2%;
}

article.post-large {
	margin-left: 60px;
}

article.post-large h2 {
	margin-bottom: 5px;
}

article.post-large .post-image, article.post-large .post-date {
	margin-left: -60px;
}

article.post-large .post-image {
	margin-bottom: 25px;
}

article.post-large .post-image.single {
	margin-bottom: 30px;
}

article.post-large .post-video {
	margin-left: -60px;
}

article.post-large .post-audio {
	margin-left: -60px;
}

/* Single Post */
.single-post article {
	border-bottom: 0;
	margin-bottom: 0;
}

article.blog-single-post .post-meta {
	margin-bottom: 20px;
}

/* Post Block */
.post-block h3 {
	font-size: 1.8em;
	font-weight: 200;
	margin: 0 0 20px;
	text-transform: none;
}

.post-block h3 i {
	margin-right: 7px;
}

/* Post Author */
.post-author img {
	max-height: 80px;
	max-width: 80px;
}

.post-author p {
	font-size: 0.9em;
	line-height: 22px;
	margin: 0;
	padding: 0;
}

.post-author p .name {
	font-size: 1.1em;
}

.post-author .img-thumbnail {
	float: left;
	margin-right: 20px;
}

/* Post Comments */
ul.comments {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.comments li {
	clear: both;
	padding: 10px 0 0 70px;
}

ul.comments li img.avatar {
	height: 48px;
	width: 48px;
}

ul.comments li ul.reply {
	margin: 0;
}

ul.comments li a {
	text-decoration: none;
}

ul.comments li .img-thumbnail {
	margin-left: -70px;
	position: absolute;
}

ul.comments li .comment {
	margin-bottom: 10px;
}

ul.comments .comment-arrow {
	border-bottom: 12px solid transparent;
	border-right: 12px solid #f7f7f7;
	border-top: 12px solid transparent;
	height: 0;
	left: -12px;
	position: absolute;
	top: 12px;
	width: 0;
}

ul.comments .comment-block {
	background: #f7f7f7;
	border-radius: 5px;
	padding: 20px 20px 30px;
	position: relative;
}

ul.comments .comment-block p {
	font-size: 0.9em;
	line-height: 21px;
	margin: 0;
	padding: 0;
}

ul.comments .comment-block .comment-by {
	display: block;
	font-size: 1em;
	line-height: 21px;
	margin: 0;
	padding: 0 0 5px 0;
}

ul.comments .comment-block .date {
	color: #999;
	font-size: 0.9em;
}

/* Leave a Comment */
.post-leave-comment h3 {
	margin: 0 0 40px;
}

/* Recent Posts */
.recent-posts h4 {
	margin-bottom: 7px;
}

.recent-posts article.recent-post h4 {
	margin: 0 0 3px 0;
}

.recent-posts article.recent-post h4 a {
	display: block;
}

.recent-posts .date {
	margin-right: 10px;
	text-align: center;
}

.recent-posts .date .month {
	background: #CCC;
	color: #FFF;
	font-size: 0.9em;
	padding: 3px 10px;
	position: relative;
	top: -2px;
}

.recent-posts .date .day {
	background: #F7F7F7;
	color: #CCC;
	display: block;
	font-size: 18px;
	font-weight: 500;
	font-weight: bold;
	padding: 8px;
}

section.section .recent-posts .date .day {
	background: #FFF;
}

/* Simple Post List */
ul.simple-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.simple-post-list li {
	border-bottom: 1px dotted #E2E2E2;
	padding: 15px 0;
}

ul.simple-post-list li::after {
	clear: both;
	content: "";
	display: block;
}

ul.simple-post-list li:last-child {
	border-bottom: 0;
}

ul.simple-post-list .post-image {
	float: left;
	margin-right: 12px;
}

ul.simple-post-list .post-meta {
	color: #888;
	font-size: 0.8em;
}

ul.simple-post-list .post-info {
	line-height: 20px;
}

/* Responsive */
@media (max-width: 575px) {
	ul.comments li {
		border-left: 8px solid rgba(0, 0, 0, 0.06);
		clear: both;
		padding: 0 0 0 10px;
	}

	ul.comments li .img-thumbnail {
		display: none;
	}

	ul.comments .comment-arrow {
		display: none;
	}
}


/* Medic Theme - Home Page Section Styles */

/* ===== PROTOLY PROTOCOL BUILDER SECTION ===== */
.protoly-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.protoly-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 140, 66, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.protoly-content {
    position: relative;
    z-index: 2;
}

.protoly-content .section-label {
    color: #ff8c42;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.protoly-content h2 {
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.protoly-content .lead {
    color: #4b5563;
    line-height: 1.8;
}

.protoly-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
}

.protoly-icon {
    font-size: 12rem;
    color: #ff8c42;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== NANOMATERIALS PERIODIC TABLE SECTION ===== */
.nanomaterials-section {
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.nanomaterials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.nanomaterials-content {
    position: relative;
    z-index: 2;
}

.nanomaterials-content .section-label {
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.nanomaterials-content h2 {
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.nanomaterials-content .lead {
    color: #4b5563;
    line-height: 1.8;
}

.nanomaterials-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
}

.nanomaterials-icon {
    font-size: 12rem;
    color: #3b82f6;
    opacity: 0.15;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
}

/* Button Styling */
.protoly-section .btn-primary,
.nanomaterials-section .btn-primary {
    background: #ff8c42;
    border-color: #ff8c42;
    font-weight: 600;
    transition: all 0.3s ease;
}

.protoly-section .btn-primary:hover {
    background: #e67a32;
    border-color: #e67a32;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 140, 66, 0.3);
}

.protoly-section .btn-outline-primary {
    border-color: #ff8c42;
    color: #ff8c42;
    font-weight: 600;
    transition: all 0.3s ease;
}

.protoly-section .btn-outline-primary:hover {
    background: #ff8c42;
    border-color: #ff8c42;
    color: #ffffff;
    transform: translateY(-2px);
}

.nanomaterials-section .btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
}

.nanomaterials-section .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .protoly-visual,
    .nanomaterials-visual {
        min-height: 200px;
        margin-bottom: 2rem;
    }
    
    .protoly-icon,
    .nanomaterials-icon {
        font-size: 8rem;
    }
    
    .protoly-content h2,
    .nanomaterials-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .protoly-icon,
    .nanomaterials-icon {
        font-size: 6rem;
    }
}




/* ============================================================
   LEGACY THEME UTILITIES
   Retained for compatibility - use Bootstrap 5 utilities when possible
   Updated to use orange theme
   ============================================================ */

/* Background Color Primary - Using Orange Theme */
html .bg-color-primary,
html .bg-primary {
	background-color: var(--primary-orange) !important;
}

html .bg-color-hover-primary:hover,
html .bg-hover-primary:hover {
	background-color: var(--primary-orange-hover) !important;
}

/* Page Header Primary Color - Using Orange Theme */
section.page-header .page-header-title-border {
	background-color: var(--primary-orange) !important;
}

html .page-header-color.page-header-primary {
	background-color: var(--primary-orange);
	border-bottom-color: var(--primary-orange);
	color: #FFF;
}

html .page-header-color.page-header-primary h1 {
	color: #FFF;
}

html .page-header-color.page-header-primary h1 span {
	color: #FFF;
}

html .page-header-color.page-header-primary a {
	color: #FFF;
}

html .page-header-color.page-header-primary .breadcrumb > .active {
	color: #FFF;
}

