/* ==========================================================================
   CMS PHYSIOTHERAPY - LOGO BRANDED COLOR THEME & DYNAMIC UI ENHANCEMENTS
   ========================================================================== */

/* --- Logo Palette Override (#0b7aa8 Teal Blue & #75b727 Healing Green) --- */
:root {
    --bs-primary: #0b7aa8 !important;
    --bs-primary-rgb: 11, 122, 168 !important;
    --bs-secondary: #75b727 !important;
    --bs-dark: #0f172a !important;
    
    --brand-blue: #0b7aa8;
    --brand-blue-dark: #08638a;
    --brand-green: #75b727;
    --brand-green-dark: #619a1f;
    --dark-navy: #0f172a;
    --bg-ice: #f8fafc;
    
    --card-shadow: 0 10px 30px rgba(11, 122, 168, 0.08);
    --card-shadow-hover: 0 20px 45px rgba(11, 122, 168, 0.18);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Color Utility Overrides */
.text-primary {
    color: var(--brand-blue) !important;
}

.text-secondary {
    color: var(--brand-green) !important;
}

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

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

.btn-primary {
    background-color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(11, 122, 168, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-blue-dark) !important;
    border-color: var(--brand-blue-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 122, 168, 0.4);
}

.btn-secondary {
    background-color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background-color: var(--brand-green-dark) !important;
    border-color: var(--brand-green-dark) !important;
}

/* --- Navigation & Glassmorphism Header --- */
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--brand-blue) !important;
}

.topbar {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%) !important;
}

/* --- Section Titles Branded Underline Accent --- */
.section-title .sub-style::before,
.section-title .sub-style::after,
.sub-title::before,
.sub-title::after {
    border-color: var(--brand-green) !important;
}

.section-title .sub-style, .sub-title {
    color: var(--brand-green) !important;
}

/* --- Hero Carousel Gradient Overlay --- */
.header-carousel-item {
    position: relative;
}

.header-carousel-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(11, 122, 168, 0.65) 100%);
    z-index: 1;
}

.header-carousel-item .carousel-caption {
    z-index: 2;
}

/* --- NEW DYNAMIC FEATURED SERVICES HIGHLIGHT SECTION --- */
.dynamic-highlights-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 80px 0;
    position: relative;
}

.highlight-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    border: 1px solid rgba(11, 122, 168, 0.12);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    transition: var(--transition-smooth);
}

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

.highlight-card:hover::before {
    height: 6px;
}

.highlight-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(11, 122, 168, 0.1) 0%, rgba(117, 183, 39, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--brand-blue);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.highlight-card:hover .highlight-icon-box {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 12px;
}

.highlight-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.highlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.highlight-btn:hover {
    color: var(--brand-green);
    transform: translateX(5px);
}

/* --- Popular Locations Pill Tag Styling with Logo Green Hover --- */
.popular_city {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(11, 122, 168, 0.15);
    max-height: 240px;
    overflow-y: auto;
}

.popular_city a {
    display: inline-block;
    padding: 7px 16px;
    background: #f1f5f9;
    color: #334155 !important;
    border-radius: 25px;
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: var(--transition-smooth);
}

.popular_city a:hover {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11, 122, 168, 0.3);
}

/* --- Floating Sticky Quick Action Bar for Mobile Devices --- */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    padding: 10px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.mobile-sticky-action-bar .btn-sticky {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-sticky-call {
    background: var(--brand-blue);
    color: #ffffff !important;
}

.btn-sticky-call:hover {
    background: var(--brand-blue-dark);
}

.btn-sticky-appointment {
    background: var(--brand-green);
    color: #ffffff !important;
}

.btn-sticky-appointment:hover {
    background: var(--brand-green-dark);
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 65px !important;
    }
}
