/**
 * ToolClinic UI Enhancement Stylesheet
 * Modern & Professional Design System
 * Author: Enhanced by Cowork AI
 * Brand Color: #e25101 (Sphurit Orange)
 * NOTE: This file only handles visual presentation. Zero logic changes.
 */

/* =========================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================= */
:root {
    --brand:         #e25101;
    --brand-hover:   #c44601;
    --brand-light:   rgba(226, 81, 1, 0.08);
    --brand-shadow:  rgba(226, 81, 1, 0.18);

    --slate-900:  #0f172a;
    --slate-800:  #1e293b;
    --slate-700:  #334155;
    --slate-500:  #64748b;
    --slate-300:  #cbd5e1;
    --slate-200:  #e2e8f0;
    --slate-100:  #f1f5f9;
    --slate-50:   #f8fafc;

    --white:      #ffffff;
    --success:    #16a34a;
    --info:       #0284c7;
    --warning:    #d97706;
    --danger:     #dc2626;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --radius-xl:  24px;
    --radius-pill: 50px;

    --shadow-xs:  0 1px 3px rgba(0,0,0,0.05);
    --shadow-sm:  0 4px 12px rgba(0,0,0,0.06);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.09);
    --shadow-lg:  0 16px 40px rgba(0,0,0,0.12);

    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Plus Jakarta Sans', 'Source Sans Pro', system-ui, sans-serif;
}

/* =========================================================
   2. BASE / RESET ENHANCEMENTS
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main) !important;
    color: var(--slate-800);
    background-color: var(--slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.65;
}

a {
    transition: var(--transition);
}

img {
    max-width: 100%;
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main) !important;
    font-weight: 700;
    line-height: 1.3;
    color: var(--slate-800);
}

.subheading {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--brand) !important;
    background: var(--brand-light);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.heading-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-800);
    position: relative;
    padding-bottom: 14px;
}

.heading-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background: var(--brand);
    border-radius: 2px;
}

.heading-section.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.title-6 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
}

/* =========================================================
   4. NAVBAR
   ========================================================= */
#ftco-navbar {
    padding: 0.6rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

#ftco-navbar.scrolled {
    padding: 0.4rem 0 !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.18) !important;
}

.ftco_navbar .navbar-brand .logo {
    height: 46px;
    width: auto;
    border-radius: 6px;
    transition: var(--transition);
}

.ftco_navbar .navbar-brand .logo:hover {
    transform: scale(1.04);
    opacity: 0.92;
}

.ftco_navbar .nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.55rem 1rem !important;
    position: relative;
    transition: var(--transition) !important;
}

.ftco_navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.ftco_navbar .nav-item.active .nav-link::after,
.ftco_navbar .nav-link:hover::after {
    transform: scaleX(1);
}

/* CTA buttons in nav */
.nav-item.cta .nav-link {
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.82rem !important;
    padding: 0.45rem 1.1rem !important;
    margin-left: 4px;
}

.nav-item.cta .nav-link:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.6) !important;
    transform: translateY(-2px);
}

.nav-item.cta.cta-colored .nav-link {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--brand-shadow);
}

.nav-item.cta.cta-colored .nav-link:hover {
    background: var(--brand-hover) !important;
    border-color: var(--brand-hover) !important;
    box-shadow: 0 8px 20px var(--brand-shadow);
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown-menu {
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
    padding: 6px !important;
    min-width: 240px !important;
    animation: dropdownFadeIn 0.2s ease;
    background: var(--white);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: var(--radius-sm) !important;
    padding: 9px 14px !important;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--slate-700);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--brand-light) !important;
    color: var(--brand) !important;
    padding-left: 20px !important;
}

/* =========================================================
   5. HERO / PAGE BANNERS
   ========================================================= */
.hero-wrap {
    position: relative;
    overflow: hidden;
}

.hero-wrap.hero-wrap-2 {
    min-height: 320px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--slate-900) 0%, #1a2744 100%) !important;
}

.hero-wrap.hero-wrap-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-wrap.hero-wrap-2 .overlay {
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(226,81,1,0.15) 100%);
}

.hero-wrap.hero-wrap-2 .bread {
    font-size: 2.4rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.breadcrumbs span a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumbs span a:hover {
    color: var(--white) !important;
}

.breadcrumbs > span:last-child {
    color: var(--brand);
    font-weight: 600;
}

/* =========================================================
   6. BUTTONS
   ========================================================= */
.btn {
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: var(--transition) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.55rem 1.4rem !important;
}

.btn-primary {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--brand-shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-hover) !important;
    border-color: var(--brand-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--brand-shadow);
    color: #fff !important;
}

.btn-secondary {
    background: var(--slate-800) !important;
    border-color: var(--slate-800) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background: var(--slate-700) !important;
    border-color: var(--slate-700) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: #fff !important;
}

.btn-outline-primary {
    border-color: var(--brand) !important;
    color: var(--brand) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--brand) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--brand-shadow);
}

.btn-light {
    background: var(--slate-100) !important;
    border-color: var(--slate-200) !important;
    color: var(--slate-700) !important;
}

.btn-light:hover {
    background: var(--slate-200) !important;
    border-color: var(--slate-300) !important;
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--slate-800) !important;
    border-color: var(--slate-800) !important;
}

.btn-dark:hover {
    background: var(--slate-900) !important;
    border-color: var(--slate-900) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-sm {
    padding: 0.38rem 1rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
}

.btn-lg {
    padding: 0.78rem 2rem !important;
    font-size: 1rem !important;
    border-radius: var(--radius-md) !important;
}

/* =========================================================
   7. FORM CONTROLS
   ========================================================= */
.form-control {
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--slate-200) !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem;
    background: var(--white) !important;
    color: var(--slate-800) !important;
    transition: var(--transition) !important;
    font-family: var(--font-main) !important;
    box-shadow: var(--shadow-xs);
}

.form-control:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 4px var(--brand-light) !important;
    background: var(--white) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--slate-500);
    font-weight: 400;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-group label,
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--slate-700);
    margin-bottom: 6px;
    display: block;
}

/* =========================================================
   8. CARDS (GENERIC)
   ========================================================= */
.card {
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-body {
    padding: 1.5rem !important;
}

/* =========================================================
   9. JOB CARDS
   ========================================================= */
.job-post-item {
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-lg) !important;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.25rem;
}

.job-post-item:hover {
    border-color: rgba(226, 81, 1, 0.35);
    box-shadow: 0 12px 30px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

.job-post-item h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--slate-800);
}

.job-post-item h2 a {
    color: var(--slate-800);
    text-decoration: none;
}

.job-post-item h2 a:hover {
    color: var(--brand);
}

.job-post-item-body {
    font-size: 0.87rem;
    color: var(--slate-500);
    gap: 12px;
}

.job-post-item-body span[class^="icon-"] {
    color: var(--brand);
    margin-right: 4px;
}

/* Employment type badges */
.subadge, .subbadge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: var(--brand-light);
    color: var(--brand);
    border: 1.5px solid rgba(226, 81, 1, 0.2);
}

/* Save/heart icon */
.icon.icon-heart,
a.icon {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    border: 1.5px solid var(--slate-200) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-50);
    color: var(--slate-500);
    transition: var(--transition);
    text-decoration: none;
}

a.icon:hover {
    background: #fff0f0;
    border-color: #fca5a5 !important;
    color: #ef4444;
    transform: scale(1.1);
}

/* =========================================================
   10. MACHINE CARDS
   ========================================================= */
.machine-card {
    background: var(--white);
    border-radius: var(--radius-lg) !important;
    border: 1.5px solid var(--slate-200);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.machine-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-5px) !important;
    border-color: rgba(226, 81, 1, 0.25);
}

.machine-img {
    height: 240px !important;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.machine-card:hover .machine-img {
    transform: scale(1.04);
}

.machine-title {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: var(--slate-800);
}

.machine-title a {
    color: var(--slate-800);
    text-decoration: none;
}

.machine-title a:hover {
    color: var(--brand);
}

.machine-desc {
    color: var(--slate-500);
    font-size: 0.875rem !important;
    line-height: 1.55;
}

/* =========================================================
   11. EXPERT / TEAM MEMBER CARDS
   ========================================================= */
.team .member {
    background: var(--white);
    border-radius: var(--radius-lg) !important;
    border: 1.5px solid var(--slate-200) !important;
    padding: 28px 20px !important;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    position: relative;
}

.team .member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), #f97316);
    opacity: 0;
    transition: var(--transition);
}

.team .member:hover::before {
    opacity: 1;
}

.team .member:hover {
    border-color: rgba(226, 81, 1, 0.25) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.team .member .pic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--slate-200);
    transition: var(--transition);
}

.team .member:hover .pic {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-light);
}

.team .member .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team .member:hover .pic img {
    transform: scale(1.06);
}

.team .member h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.team .member span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand) !important;
}

.team .member p {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.55;
    margin-top: 10px;
}

/* =========================================================
   12. BLOG CARDS
   ========================================================= */
.blog-entry {
    background: var(--white);
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1.5px solid var(--slate-200);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.blog-entry:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(226, 81, 1, 0.2);
}

.blog-entry .block-20 {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.blog-entry:hover .block-20 {
    transform: scale(1.04);
}

.blog-entry .text {
    padding: 16px 18px 18px;
}

.blog-entry .meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--slate-500);
    margin-bottom: 8px;
}

.blog-entry .meta a {
    color: var(--slate-500);
    font-weight: 500;
}

.blog-entry .meta a:hover {
    color: var(--brand);
}

.blog-entry .heading {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.blog-entry .heading a {
    color: var(--slate-800);
    text-decoration: none;
}

.blog-entry .heading a:hover {
    color: var(--brand);
}

/* =========================================================
   13. TESTIMONIALS
   ========================================================= */
.testimony-section .testimony-wrap {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border-radius: var(--radius-lg) !important;
    padding: 28px !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.22);
    border: none;
    min-height: 300px !important;
    position: relative;
    overflow: hidden;
}

.testimony-section .testimony-wrap::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 6rem;
    color: rgba(255,255,255,0.12);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimony-section .testimonial-text {
    color: rgba(255,255,255,0.92) !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
}

.testimony-section .user-img {
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.testimony-section .name {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.testimony-section .position {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75) !important;
}

/* Section-specific bg colors for different testimonial types */
.testimony-section.bg-light {
    background: var(--slate-50) !important;
}

/* =========================================================
   14. SEARCH SECTION (HOME PAGE TABS)
   ========================================================= */
.ftco-search {
    padding: 0 !important;
}

.ftco-search .nav-link-wrap .nav {
    background: var(--slate-200);
    border-radius: var(--radius-pill);
    padding: 5px;
    display: inline-flex;
    gap: 4px;
}

.ftco-search .nav-link-wrap .nav .nav-link {
    border-radius: var(--radius-pill) !important;
    padding: 8px 24px !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    border: none;
    background: transparent;
    transition: var(--transition);
}

.ftco-search .nav-link-wrap .nav .nav-link.active,
.ftco-search .nav-link-wrap .nav .nav-link:hover {
    background: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--brand-shadow);
}

.ftco-search .tab-content {
    background: var(--white);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem !important;
    border: 1.5px solid var(--slate-200);
}

.ftco-search .form-field {
    position: relative;
}

.ftco-search .form-field .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
    z-index: 2;
    pointer-events: none;
}

.ftco-search .form-field .form-control {
    padding-left: 38px !important;
}

.ftco-search .form-field .select-wrap {
    position: relative;
}

.ftco-search .form-field .select-wrap .icon {
    right: 14px;
    left: auto;
}

/* =========================================================
   15. JOB CATEGORIES (FIVE PILLARS)
   ========================================================= */
.category {
    margin-top: 8px;
}

.top-category {
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--slate-200);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    margin: 8px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.top-category:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 28px var(--brand-shadow);
    transform: translateY(-5px);
}

.top-category h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 14px;
}

.top-category h3 a {
    color: var(--slate-800);
    text-decoration: none;
    transition: var(--transition);
}

.top-category:hover h3 a {
    color: var(--brand);
}

.top-category .icon img {
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.top-category:hover .icon img {
    transform: scale(1.12) rotate(-3deg);
}

/* =========================================================
   16. MiICUT PRODUCTS CARDS
   ========================================================= */
.team .member.d-flex.align-items-start {
    background: var(--white);
    border-radius: var(--radius-lg) !important;
    padding: 20px !important;
    border: 1.5px solid var(--slate-200) !important;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.team .member.d-flex.align-items-start:hover {
    border-color: rgba(226, 81, 1, 0.25) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-img img {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--slate-200);
    transition: transform 0.4s ease;
    object-fit: cover;
    width: 140px !important;
    height: 140px;
}

.team .member.d-flex:hover .product-img img {
    transform: scale(1.05);
    border-color: var(--brand);
}

/* =========================================================
   17. SIDEBAR
   ========================================================= */
.sidebar-box {
    background: var(--white) !important;
    border-radius: var(--radius-lg) !important;
    border: 1.5px solid var(--slate-200) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.5rem;
}

.heading-sidebar {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--slate-200);
    margin-bottom: 14px;
}

.browse-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.87rem;
    color: var(--slate-600);
    padding: 6px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.browse-form label:hover {
    color: var(--brand);
}

.browse-form input[type="checkbox"] {
    accent-color: var(--brand);
    width: 16px;
    height: 16px;
    cursor: pointer;
    border-radius: 4px;
}

.search-form .form-group {
    position: relative;
}

.search-form .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
    z-index: 2;
}

.search-form .form-control {
    padding-left: 36px !important;
}

/* =========================================================
   18. PAGINATION
   ========================================================= */
.block-27 .pagination {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.block-27 .page-item .page-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--slate-200) !important;
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--white);
}

.block-27 .page-item .page-link:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: var(--brand) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--brand-shadow);
}

.block-27 .page-item.active .page-link {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff;
    box-shadow: 0 4px 14px var(--brand-shadow);
}

.block-27 .page-item.disabled .page-link {
    opacity: 0.45;
    cursor: not-allowed;
}

/* =========================================================
   19. SECTION BACKGROUNDS & SPACING
   ========================================================= */
.ftco-section {
    padding: 5rem 0;
}

.ftco-section.bg-light {
    background: var(--slate-50) !important;
}

.section-bg {
    background: var(--slate-50) !important;
}

.services-section {
    background: var(--slate-50) !important;
}

/* =========================================================
   20. CONTACT PAGE
   ========================================================= */
.contact-section .contact-info p {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-section .contact-info p span:first-child {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand);
}

.contact-section .contact-info p a {
    color: var(--slate-700);
    font-weight: 500;
}

.contact-section .contact-info p a:hover {
    color: var(--brand);
}

/* Contact info cards */
.contact-section .contact-info .col-md-3 {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1.5px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.contact-section .contact-info .col-md-3:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 20px var(--brand-shadow);
    transform: translateY(-3px);
}

/* Contact form */
.contact-form {
    border-radius: var(--radius-xl) !important;
    border: 1.5px solid var(--slate-200) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 2.5rem !important;
}

.contact-form .form-group {
    margin-bottom: 1.1rem;
}

#map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1.5px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}

/* =========================================================
   21. ABOUT PAGE - EDITOR CONTENT
   ========================================================= */
.editor-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate-700);
}

.editor-content h2,
.editor-content h3,
.editor-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--slate-800);
    font-weight: 700;
}

.editor-content p {
    margin-bottom: 1rem;
}

.editor-content ul,
.editor-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.editor-content ul li,
.editor-content ol li {
    margin-bottom: 6px;
}

/* =========================================================
   22. FOOTER
   ========================================================= */
.ftco-footer {
    background: linear-gradient(135deg, #0a1628 0%, #0f172a 100%) !important;
    color: var(--slate-400);
    padding-top: 4rem;
    padding-bottom: 0;
}

.ftco-footer .ftco-heading-2 {
    color: var(--white) !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(226, 81, 1, 0.3);
    display: inline-block;
}

.ftco-footer-widget p {
    color: var(--slate-400);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ftco-footer ul.list-unstyled li a {
    color: var(--slate-400) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.ftco-footer ul.list-unstyled li a::before {
    content: '›';
    color: var(--brand);
    font-size: 1.1rem;
    line-height: 1;
    transition: var(--transition);
}

.ftco-footer ul.list-unstyled li a:hover {
    color: var(--white) !important;
    transform: translateX(5px);
    display: inline-flex;
}

.ftco-footer ul.list-unstyled li a:hover::before {
    color: #f97316;
}

/* Social icons */
.ftco-footer-social li a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-300) !important;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.ftco-footer-social li a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px var(--brand-shadow);
}

/* Footer bottom bar */
.ftco-footer .row:last-child {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
    margin-top: 2rem;
}

.ftco-footer .text-muted {
    color: var(--slate-500) !important;
}

.ftco-footer .text-muted strong {
    color: var(--slate-300);
}

/* Contact info block in footer */
.ftco-footer .block-23 ul li {
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--slate-400);
}

.ftco-footer .block-23 .icon {
    color: var(--brand);
    margin-top: 2px;
    flex-shrink: 0;
}

.ftco-footer .block-23 .text {
    color: var(--slate-400);
    font-weight: 400;
    line-height: 1.55;
}

/* =========================================================
   23. COUNTER / STATS SECTION
   ========================================================= */
.modern-counter-card {
    background: var(--white);
    border-radius: var(--radius-lg) !important;
    border: 1.5px solid var(--slate-200);
    padding: 1.4rem !important;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.modern-counter-card:hover {
    transform: translateY(-5px);
    border-color: rgba(226, 81, 1, 0.3);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08) !important;
}

.modern-counter-card .icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.modern-counter-card:hover .icon-wrapper {
    background: var(--brand);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

.modern-counter-card .number {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--slate-800) !important;
    line-height: 1;
}

.modern-counter-card .text-muted {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-500) !important;
    margin-top: 4px;
}

/* =========================================================
   24. WHATSAPP FLOATING BUTTON
   ========================================================= */
.float {
    position: fixed;
    width: 54px;
    height: 54px;
    bottom: 36px;
    right: 28px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: floatPulse 2.5s infinite;
}

.float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
    color: #fff !important;
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50%       { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6); }
}

/* =========================================================
   25. LOADER
   ========================================================= */
#ftco-loader {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1a2744 100%);
}

#ftco-loader.show {
    visibility: visible;
    opacity: 1;
}

/* =========================================================
   26. MODALS
   ========================================================= */
.modal-content {
    border: none !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    overflow: hidden;
}

.modal-header {
    background: var(--slate-50);
    border-bottom: 1.5px solid var(--slate-200);
    padding: 1.2rem 1.5rem;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-800);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background: var(--slate-50);
    border-top: 1.5px solid var(--slate-200);
    padding: 1rem 1.5rem;
    gap: 8px;
}

.modal-footer .btn-danger {
    background: var(--slate-200) !important;
    border-color: var(--slate-200) !important;
    color: var(--slate-700) !important;
}

.modal-footer .btn-danger:hover {
    background: var(--slate-300) !important;
    border-color: var(--slate-300) !important;
    color: var(--slate-800) !important;
    transform: translateY(-1px);
}

.close {
    font-size: 1.2rem;
    color: var(--slate-500);
    opacity: 1;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    color: var(--slate-800);
    transform: rotate(90deg);
}

/* =========================================================
   27. ALERTS & FLASH MESSAGES
   ========================================================= */
.alert {
    border-radius: var(--radius-md) !important;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border-left: 4px solid var(--success) !important;
}

.alert-danger {
    background: #fef2f2;
    color: var(--danger);
    border-left: 4px solid var(--danger) !important;
}

/* =========================================================
   28. OWL CAROUSEL / SLIDER DOTS
   ========================================================= */
.owl-dots .owl-dot span {
    background: var(--slate-300) !important;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    transition: var(--transition);
}

.owl-dots .owl-dot.active span,
.owl-dots .owl-dot:hover span {
    background: var(--brand) !important;
    width: 22px;
    border-radius: 4px;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
    background: var(--white) !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1.5px solid var(--slate-200) !important;
    color: var(--slate-700) !important;
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px var(--brand-shadow);
}

/* =========================================================
   29. SECTION HEADING COMPONENT (FTCO ANIMATE)
   ========================================================= */
.ftco-section .heading-section .subheading {
    margin-bottom: 8px;
}

/* =========================================================
   30. SERVICES PAGE CONTENT
   ========================================================= */
.media.services {
    transition: var(--transition);
}

.media.services:hover {
    transform: translateY(-3px);
}

/* =========================================================
   31. STICKY NAVBAR SCROLL BEHAVIOR (JS-FREE)
   ========================================================= */
.navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease !important;
}

/* =========================================================
   32. SCROLL-TO-TOP (If present)
   ========================================================= */
#back-to-top {
    background: var(--brand) !important;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--brand-shadow);
    transition: var(--transition);
}

#back-to-top:hover {
    background: var(--brand-hover) !important;
    transform: translateY(-3px) scale(1.08);
}

/* =========================================================
   33. RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 767.98px) {
    .ftco-section {
        padding: 3rem 0;
    }

    .hero-wrap.hero-wrap-2 .bread {
        font-size: 1.8rem;
    }

    .heading-section h2 {
        font-size: 1.5rem;
    }

    .modern-counter-card .number {
        font-size: 1.6rem !important;
    }

    .team .member {
        margin-bottom: 1rem;
    }

    .contact-form {
        padding: 1.5rem !important;
    }

    .ftco-footer .row:not(:last-child) .col-md {
        margin-bottom: 2rem;
    }

    .top-category {
        min-height: 140px;
        margin: 6px 4px;
    }

    .blog-entry .block-20 {
        height: 180px;
    }

    .dropdown-menu {
        min-width: 100% !important;
        position: static !important;
        box-shadow: none !important;
        border: 1px solid var(--slate-200) !important;
        border-radius: var(--radius-md) !important;
    }

    .nav-item.cta .nav-link {
        margin: 4px 0;
    }
}

@media (max-width: 575.98px) {
    .ftco-search .tab-content {
        padding: 1rem !important;
    }

    .job-post-item {
        padding: 1rem !important;
    }

    .sidebar-box {
        padding: 1rem !important;
    }
}

/* =========================================================
   34. UTILITY HELPERS
   ========================================================= */
.text-brand {
    color: var(--brand) !important;
}

.bg-brand {
    background: var(--brand) !important;
}

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

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.shadow-brand {
    box-shadow: 0 8px 20px var(--brand-shadow) !important;
}

/* AOS animation override for better timing */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* =========================================================
   35. NAVBAR SCROLL TEXT COLOR FIX (CRITICAL)
   ========================================================= */
/* Non-scrolled: white background (from overrides) → dark text */
#ftco-navbar:not(.scrolled) .nav-link {
    color: var(--slate-800) !important;
}
#ftco-navbar:not(.scrolled) .nav-link:hover {
    color: var(--brand) !important;
}
#ftco-navbar:not(.scrolled) .nav-item.cta .nav-link {
    color: var(--slate-800) !important;
    border-color: var(--slate-300) !important;
}
#ftco-navbar:not(.scrolled) .nav-item.cta.cta-colored .nav-link {
    color: #fff !important;
    border-color: var(--brand) !important;
}
/* Scrolled: dark background → white text */
#ftco-navbar.scrolled .nav-link {
    color: rgba(255,255,255,0.88) !important;
}
#ftco-navbar.scrolled .nav-link:hover {
    color: #fff !important;
}
#ftco-navbar.scrolled .nav-item.cta .nav-link {
    color: rgba(255,255,255,0.88) !important;
    border-color: rgba(255,255,255,0.35) !important;
}
#ftco-navbar.scrolled .nav-item.cta.cta-colored .nav-link {
    color: #fff !important;
}
/* Navbar toggler icon always visible */
.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.5) !important;
    color: rgba(255,255,255,0.9) !important;
}

/* =========================================================
   36. FOOTER COMPREHENSIVE TEXT COLOR FIX
   ========================================================= */
.ftco-footer {
    background: #0c1424 !important;
    color: #94a3b8;
}
.ftco-footer p,
.ftco-footer ul li,
.ftco-footer .block-23 ul li,
.ftco-footer .block-23 ul li .text {
    color: #94a3b8 !important;
}
.ftco-footer .ftco-heading-2 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    margin-bottom: 1.2rem !important;
    letter-spacing: 0.3px;
}
.ftco-footer a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: var(--transition);
}
.ftco-footer a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
    display: inline-block;
}
.ftco-footer .ftco-footer-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.7) !important;
    transition: var(--transition);
    transform: none !important;
}
.ftco-footer .ftco-footer-social a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff !important;
    transform: translateY(-3px) !important;
}
.ftco-footer .ftco-footer-social li {
    display: inline-block;
    margin-right: 6px;
}
.ftco-footer .block-23 ul li .icon {
    color: var(--brand) !important;
    margin-right: 8px;
}
.ftco-footer hr {
    border-color: rgba(255,255,255,0.08) !important;
}
/* Footer bottom bar */
.ftco-footer .row:last-child p,
.ftco-footer .row:last-child a {
    color: rgba(255,255,255,0.45) !important;
    font-size: 0.84rem;
}
.ftco-footer .row:last-child strong {
    color: rgba(255,255,255,0.7) !important;
}
.ftco-footer .container-fluid.d-flex.align-items-center.flex-column {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

/* =========================================================
   37. CORPORATE TYPOGRAPHY UPGRADES
   ========================================================= */
h1 { font-size: clamp(2rem, 5vw, 3.2rem) !important; font-weight: 800 !important; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem) !important; font-weight: 700 !important; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important; font-weight: 700 !important; }
h4 { font-size: 1.1rem !important; font-weight: 600 !important; }
h5 { font-size: 0.95rem !important; font-weight: 600 !important; }

p { line-height: 1.75; color: var(--slate-700); }

.bread { color: #fff !important; }

/* Section headings - corporate style */
.ftco-section .heading-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
}

/* Lead paragraph styling */
.ftco-section p.lead,
.lead {
    font-size: 1.05rem !important;
    font-weight: 400;
    color: var(--slate-600, #475569) !important;
    line-height: 1.8;
}

/* =========================================================
   38. SERVICES PAGE ENHANCEMENTS
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    display: block;
    color: var(--slate-800);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), #ff8c42);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(226,81,1,0.25);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09);
    transform: translateY(-5px);
    color: var(--brand);
    text-decoration: none;
}

.service-card .icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    background: var(--brand-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand);
    transition: var(--transition);
}

.service-card:hover .icon-wrap {
    background: var(--brand);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

.service-card h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: inherit;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--slate-500);
    margin: 0;
}

/* Services page section header */
.services-header-section {
    background: linear-gradient(135deg, var(--slate-900), #1a2744);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(226,81,1,0.15) 0%, transparent 65%);
    pointer-events: none;
}

/* =========================================================
   39. BLOG PAGE ENHANCEMENTS
   ========================================================= */
.blog-entry {
    background: #fff;
    border-radius: var(--radius-lg) !important;
    border: 1.5px solid var(--slate-200);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.5rem;
}

.blog-entry:hover {
    border-color: rgba(226,81,1,0.2);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.blog-entry .block-20 {
    height: 220px;
    background-size: cover;
    background-position: center;
    display: block;
}

.blog-entry .text {
    padding: 1.25rem 1.25rem 1rem;
}

.blog-entry .text h3.heading {
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.45;
    color: var(--slate-800) !important;
}

.blog-entry .text h3.heading a {
    color: var(--slate-800) !important;
    text-decoration: none;
    transition: var(--transition);
}

.blog-entry .text h3.heading a:hover {
    color: var(--brand) !important;
}

.blog-entry .meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.blog-entry .meta a {
    color: var(--slate-500) !important;
    transition: var(--transition);
}

.blog-entry .meta a:hover {
    color: var(--brand) !important;
}

/* Blog details page */
.editor-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--slate-700);
}

.editor-content h1, .editor-content h2, .editor-content h3 {
    color: var(--slate-800) !important;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.editor-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 100%;
}

.editor-content a {
    color: var(--brand);
    font-weight: 500;
}

/* Blog sidebar */
.sidebar-box {
    background: #fff !important;
    border-radius: var(--radius-lg) !important;
    border: 1.5px solid var(--slate-200) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.heading-3, .sidebar-box h3.heading-3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--slate-800) !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand);
    display: inline-block;
}

.sidebar-box .categories li {
    list-style: none;
    padding: 6px 0;
    border-bottom: 1px solid var(--slate-100);
}

.sidebar-box .categories li a {
    color: var(--slate-600, #475569) !important;
    font-size: 0.88rem;
    transition: var(--transition);
}

.sidebar-box .categories li a:hover {
    color: var(--brand) !important;
    padding-left: 6px;
}

/* Blog tags */
.tag-cloud-link {
    display: inline-block;
    padding: 5px 14px;
    background: var(--slate-100);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-700) !important;
    margin: 4px;
    transition: var(--transition);
    text-decoration: none;
}

.tag-cloud-link:hover {
    background: var(--brand);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Recent blog widget */
.block-21 .blog-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.block-21 .text h3.heading {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
}

.block-21 .text h3.heading a {
    color: var(--slate-800) !important;
    text-decoration: none;
}

.block-21 .text h3.heading a:hover {
    color: var(--brand) !important;
}

.block-21 .meta a {
    font-size: 0.78rem;
    color: var(--slate-500) !important;
}

/* Blog cover image */
.caption img {
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

/* Blog search form */
.search-form .form-group {
    position: relative;
}

.search-form .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-500);
    z-index: 2;
}

.search-form .form-control {
    padding-left: 42px !important;
}

/* =========================================================
   40. ADDITIONAL TEXT COLOR VISIBILITY FIXES
   ========================================================= */
/* Hero/Banner sections text must always be white */
.hero-wrap .slider-text h1,
.hero-wrap .bread,
.hero-wrap .breadcrumbs,
.hero-wrap .breadcrumbs span,
.hero-wrap .breadcrumbs a {
    color: #fff !important;
}

/* Background-light sections should have dark text */
.bg-light p, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5 {
    color: var(--slate-800);
}

/* ftco-bg-dark section text should be white */
.ftco-bg-dark p,
.ftco-bg-dark h2,
.ftco-bg-dark h3,
.ftco-bg-dark .ftco-heading-2 {
    color: #fff;
}

/* Machine dark section text */
.machinery-dark-section,
.machinery-dark-section .heading-section h2,
.machinery-dark-section .heading-section .subheading,
.machinery-dark-section p {
    color: rgba(255,255,255,0.88);
}

/* Testimonial sections */
.ftco-section.testimony-section p,
.testimony-wrap p {
    color: var(--slate-700);
}

/* Section with dark bg class */
section[style*="background"] p,
.ftco-section.bg-secondary p,
.ftco-section.bg-dark p {
    color: rgba(255,255,255,0.82) !important;
}

/* Counter numbers visibility */
.ftco-counter .counter-wrap .text,
.counter-wrap p {
    color: var(--slate-600, #475569);
}

/* =========================================================
   41. BUTTON COMPREHENSIVE OPTIMISATION
   ========================================================= */
.btn {
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    border-radius: var(--radius-md) !important;
    padding: 0.6rem 1.5rem;
    transition: var(--transition) !important;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px var(--brand-shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-hover) !important;
    border-color: var(--brand-hover) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--brand-shadow);
}

.btn-secondary {
    background: var(--slate-800) !important;
    border-color: var(--slate-800) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background: var(--slate-900) !important;
    border-color: var(--slate-900) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--brand) !important;
    color: var(--brand) !important;
}

.btn-outline-primary:hover {
    background: var(--brand) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-light {
    background: var(--slate-100) !important;
    border-color: var(--slate-200) !important;
    color: var(--slate-700) !important;
}

.btn-light:hover {
    background: var(--slate-200) !important;
    color: var(--slate-800) !important;
}

.btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem !important;
}

.btn-sm {
    padding: 0.4rem 1rem !important;
    font-size: 0.82rem !important;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Info / Danger buttons */
.btn-info {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #fff !important;
}
.btn-info:hover {
    background: #0369a1 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}
.btn-danger:hover {
    background: #b91c1c !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* =========================================================
   42. RESPONSIVE IMPROVEMENTS
   ========================================================= */
@media (max-width: 991.98px) {
    /* Mobile navbar */
    #ftco-navbar:not(.scrolled) {
        background: rgba(255,255,255,0.98) !important;
    }
    #ftco-navbar .navbar-collapse {
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        padding: 1rem;
        margin-top: 8px;
    }
    #ftco-navbar .navbar-collapse .nav-link {
        color: var(--slate-800) !important;
        padding: 0.55rem 0.75rem !important;
        border-radius: var(--radius-sm);
    }
    #ftco-navbar .navbar-collapse .nav-link:hover {
        background: var(--brand-light);
        color: var(--brand) !important;
    }
    /* Fix scrolled mobile */
    #ftco-navbar.scrolled .navbar-collapse {
        background: var(--slate-900);
    }
    #ftco-navbar.scrolled .navbar-collapse .nav-link {
        color: rgba(255,255,255,0.88) !important;
    }
}

@media (max-width: 767.98px) {
    /* Better mobile padding */
    .ftco-section { padding: 3rem 0; }
    .register-card-body { padding: 1.25rem !important; }
    .hero-wrap.hero-wrap-2 { min-height: 240px; }
    .hero-wrap.hero-wrap-2 .bread { font-size: 1.6rem !important; }
    /* Services grid */
    .services-grid { grid-template-columns: 1fr; }
    /* Blog */
    .blog-entry .block-20 { height: 180px; }
    /* Footer */
    .ftco-footer .ftco-footer-widget { margin-bottom: 2rem; }
}

@media (max-width: 575.98px) {
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.3rem !important; }
    .btn-lg { padding: 0.65rem 1.5rem !important; }
}

/* =========================================================
   43. EXPERT CARDS (Listing Page)
   ========================================================= */
.team .member {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.75rem;
    transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
}

.team .member::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e25101, #ff8c42);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.team .member:hover::before {
    transform: scaleX(1);
}

.team .member:hover {
    border-color: rgba(226,81,1,0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.team .member .pic {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    margin-right: 1.25rem;
}

.team .member .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team .member-info h4 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 2px;
}

.team .member-info span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e25101;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 0.5rem;
}

.team .member-info p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* =========================================================
   44. EXPERT DETAIL PAGE
   ========================================================= */
.expert-image {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 16px !important;
    border: 3px solid #e2e8f0 !important;
    float: left;
    margin-right: 2rem !important;
    margin-bottom: 1rem;
}

/* =========================================================
   45. JOB DETAILS PAGE
   ========================================================= */
.contact-section .card {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    overflow: hidden;
}

.contact-section .card-header {
    background: linear-gradient(135deg, #0f172a, #1a2744) !important;
    color: #fff !important;
    border: none !important;
    padding: 1.25rem 1.5rem;
}

.contact-section .card-header h4 {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0;
}

.contact-section .card-body {
    padding: 1.5rem;
}

/* Job detail content wrappers */
.contact-section .row > .col-md-8 {
    /* Main content area */
}

.contact-section .row > .col-md-8 h2 {
    color: #1e293b !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.contact-section .row > .col-md-8 h2:first-child {
    margin-top: 0;
    font-size: 1.8rem !important;
    border-bottom: 3px solid #e25101;
    padding-bottom: 0.75rem;
}

/* Job meta badges */
.job-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(226,81,1,0.08);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e25101;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* =========================================================
   46. MACHINE DETAILS PAGE  
   ========================================================= */
.machine-detail-gallery img {
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* =========================================================
   47. PAGE CONTENT / SERVICE DETAIL PAGES
   ========================================================= */
.ftco-section.contact-section.bg-light .editor-content {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.ftco-section.contact-section.bg-light .editor-content h2,
.ftco-section.contact-section.bg-light .editor-content h3 {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.ftco-section.contact-section.bg-light .editor-content ul {
    padding-left: 1.5rem;
}

.ftco-section.contact-section.bg-light .editor-content ul li {
    margin-bottom: 8px;
    color: #475569;
    line-height: 1.7;
}

.ftco-section.contact-section.bg-light .editor-content ul li::marker {
    color: #e25101;
}

/* Contact button at bottom of page-content */
.ftco-section.contact-section.bg-light .col-md-12.text-center.mt-4 {
    padding-top: 1.5rem;
    border-top: 1.5px solid #e2e8f0;
    margin-top: 2rem !important;
}

/* =========================================================
   48. NEWS PAGE STYLING
   ========================================================= */
.news-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.28s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-card:hover {
    border-color: rgba(226,81,1,0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* =========================================================
   49. PRIVACY POLICY / TERMS PAGE
   ========================================================= */
.ftco-section.bg-light .row.d-flex.contact-info {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* =========================================================
   50. GUEST ENQUIRE FORM
   ========================================================= */
.ftco-section .guest-enquire-form,
.ftco-section form.contact-form {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Enhanced form labels */
.ftco-section .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

/* =========================================================
   51. MIICUT PRODUCT LISTING & DETAIL
   ========================================================= */
.product-card {
    transition: all 0.28s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1) !important;
}

/* Product detail page */
.product-detail-img {
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    width: 100%;
    object-fit: cover;
}


/* =========================================================
   52. TESTIMONY SECTION — HEADING & SUBHEADING COLOURS
   ========================================================= */
/* The testimony section background image may not load on this deployment,
   leaving a white/light background. Force headings and subheadings dark so
   they are always readable. Card content (text-white) is still correct
   because cards use the dark gradient from rule 53 below. */
.testimony-section .heading-section h2,
.testimony-section h2 {
    color: #1e293b !important;
}
.testimony-section .heading-section .subheading,
.testimony-section .subheading {
    color: #64748b !important;
}

/* Testimonial card (bg-info) */
.testimony-wrap.bg-info {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%) !important;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
}
.testimony-wrap .testimonial-text,
.testimony-wrap p.name,
.testimony-wrap span.position {
    color: rgba(255,255,255,0.88) !important;
}

/* =========================================================
   53. MACHINERY DARK SECTION — CARD BODY DARK FIX
   ========================================================= */
/* Ensure no bg-white class can bleed in from Bootstrap */
.machinery-dark-section .machine-card .bg-white {
    background: rgba(15,23,42,0.85) !important;
}
/* Force all text inside card body to be readable */
.machinery-dark-section .machine-card h5,
.machinery-dark-section .machine-card h5 a,
.machinery-dark-section .machine-card p {
    color: #f1f5f9 !important;
}
.machinery-dark-section .machine-card h5 a:hover {
    color: #e25101 !important;
}

/* =========================================================
   54. MACHINERY DARK SECTION — FORCE DARK BACKGROUND
   ========================================================= */
/* Both .machinery-dark-section AND .services-section classes are on the same
   <section>. style.css .services-section background rule can win without
   !important here. Lock the dark gradient in. */
.machinery-dark-section {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%) !important;
}
/* Ensure heading is always visible on the dark background */
.machinery-dark-section .heading-section h2,
.machinery-dark-section h2.font-weight-bold {
    color: #f1f5f9 !important;
}
.machinery-dark-section .subheading {
    background: rgba(226,81,1,0.2) !important;
    color: #fb923c !important;
}
.machinery-dark-section p.text-muted {
    color: #94a3b8 !important;
}

/* =========================================================
   55. SECTION-BG DARK OVERRIDE — MILCUT PRODUCTS & EXPERTS
   ========================================================= */
/* .section-bg in this site's style.css applies a dark background.
   The MiICut Products and Meet the Team sections both use this class.
   Force a clean light background and dark typography. */
.team.ftco-section.section-bg {
    background: #f8fafc !important;
}
.team.ftco-section.section-bg .member-info h4,
.team.ftco-section.section-bg .member-info h4 a {
    color: #1e293b !important;
    font-weight: 700;
}
.team.ftco-section.section-bg .member-info h4 a:hover {
    color: #e25101 !important;
}
.team.ftco-section.section-bg .member-info span,
.team.ftco-section.section-bg .member-info p {
    color: #475569 !important;
}
/* Expert member cards on light bg */
.team.ftco-section.section-bg .member {
    background: #fff;
    border-radius: 14px !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.28s ease;
}
.team.ftco-section.section-bg .member:hover {
    border-color: rgba(226,81,1,0.3) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.09);
    transform: translateY(-4px);
}
.team.ftco-section.section-bg .member h4 {
    color: #1e293b !important;
    font-weight: 700;
}
.team.ftco-section.section-bg .member span,
.team.ftco-section.section-bg .member p {
    color: #64748b !important;
}
/* Subheading in section-bg */
.team.ftco-section.section-bg .subheading {
    color: #e25101 !important;
}
.team.ftco-section.section-bg h2 {
    color: #1e293b !important;
}
.team.ftco-section.section-bg p.text-muted,
.team.ftco-section.section-bg .text-muted {
    color: #64748b !important;
}
.team.ftco-section.section-bg p.text-dark,
.team.ftco-section.section-bg .text-dark {
    color: #334155 !important;
}

/* =========================================================
   56. EXPERT CAROUSEL — IMAGE CENTERING
   ========================================================= */
.team-home .pic {
    width: 110px;
    height: 110px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.team-home .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.team-home .member {
    padding: 1.5rem 1rem !important;
}

/* =========================================================
   57. MIICUT TEASER SECTION — FORCE LIGHT BACKGROUND & DARK TEXT
   ========================================================= */
/* The .services-section class in style.css can apply a dark background even
   when .bg-light is also present. Force the teaser section and its card white. */
.ftco-section.services-section.bg-light {
    background: #f8f9fa !important;
}
.ftco-section.services-section.bg-light .media-body.bg-white {
    background: #ffffff !important;
}
.ftco-section.services-section.bg-light .media-body h2,
.ftco-section.services-section.bg-light .media-body .heading {
    color: #1e293b !important;
}
.ftco-section.services-section.bg-light .media-body p {
    color: #475569 !important;
}
/* Also ensure the heading class doesn't go white from any other rule */
.ftco-section.bg-light .heading {
    color: #1e293b !important;
}
