/* ==========================================================================
   CarService HK - ServiceMyCar Style CSS (Bootstrap Based)
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #00a651;
    --primary-dark: #008c44;
    --primary-light: #e8f5e9;
    --primary-rgb: 0, 166, 81;

    --secondary: #1a1a1a;
    --accent: #f7941d;

    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-light: #adb5bd;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f3f4f6;
    --bg-dark: #1a1a1a;

    --border-color: #dee2e6;
    --border-light: #e9ecef;

    --font-family:
        'Noto Sans HK', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

.wi-200 {
    max-width: 200px;
}

.wi-100 {
    max-width: 100px;
}

/* ==========================================================================
   Header - ServiceMyCar Full Width Style
   ========================================================================== */

/* Top Bar - Full Width Green */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar a {
    color: white;
}

.top-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item svg {
    width: 16px;
    height: 16px;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-switch a {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.15);
}

.lang-switch a.active,
.lang-switch a:hover {
    background: white;
    color: var(--primary);
}

/* Main Header */
.main-header,
.navbar.sticky-top {
    background: white !important;
    padding: 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 3000 !important; /* Extremely high to stay above everything */
}

/* Ensure the header-top doesn't get overlapped if it's also sticky (it's not currently) */
.header-top {
    position: relative;
    z-index: 3001;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav > .nav-item > .nav-link {
    padding: 10px 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 4px;
}

.main-nav > .nav-item > .nav-link:hover,
.main-nav > .nav-item > .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown Menus */
.nav-item.dropdown .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px;
    min-width: 220px;
}

.dropdown-item {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Mega Menu for Brands */
.mega-menu {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mega-menu-column h6 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.mega-menu-column a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.mega-menu-column a:hover {
    color: var(--primary);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.header-phone svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.booking-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: #e68618;
    border-color: #e68618;
    color: white;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-dark {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ==========================================================================
   Hero Section - ServiceMyCar Style
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary);
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

.hero-features li svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Hero Form */
.hero-form {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.hero-form .form-control {
    border-radius: 6px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

.hero-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.hero-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* ==========================================================================
   Service Categories Strip
   ========================================================================== */

.service-strip {
    background: var(--primary);
    padding: 15px 0;
}

.service-strip-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.service-strip-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.service-strip-item svg {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.service-strip-item span {
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.section {
    padding: 60px 0;
}

.section-gray {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-title-underline {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* Steps */
.how-steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.how-step {
    text-align: center;
    max-width: 250px;
}

.how-step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
}

.how-step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.how-step-number {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.how-step h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.how-step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   CTA Banner - Green
   ========================================================================== */

.cta-banner {
    background: var(--primary);
    padding: 20px 0;
}

.cta-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.cta-banner-item:hover {
    color: rgba(255, 255, 255, 0.85);
}

.cta-banner-item svg {
    width: 22px;
    height: 22px;
}

.cta-banner .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.cta-banner .btn:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon svg,
.service-card-icon img {
    width: 35px;
    height: 35px;
    color: var(--primary);
}

.service-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Brands Section
   ========================================================================== */

.brands-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.brands-tabs .nav-link {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-light);
    border: none;
}

.brands-tabs .nav-link.active,
.brands-tabs .nav-link:hover {
    background: var(--primary);
    color: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.brand-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition);
}

.brand-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.brand-card img {
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-card span {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   Warranty Section
   ========================================================================== */

.warranty-section {
    background: var(--bg-light);
    padding: 50px 0;
}

.warranty-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.warranty-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.warranty-number {
    font-size: 60px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.warranty-number small {
    font-size: 24px;
    display: block;
    color: var(--text-muted);
    font-weight: 400;
}

.warranty-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* ==========================================================================
   Key Features
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary);
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */

.reviews-section {
    padding: 60px 0;
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.review-author h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.review-stars {
    color: var(--accent);
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   As Heard On / Partners
   ========================================================================== */

.partners-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo {
    height: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ==========================================================================
   Achievements
   ========================================================================== */

.achievements-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.achievement-item {
    text-align: center;
    padding: 20px;
}

.achievement-item img {
    height: 80px;
    margin-bottom: 10px;
}

.achievement-item span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
    padding: 60px 0;
}

.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    font-size: 15px;
    padding: 18px 20px;
    background: white;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, #2d2d2d 100%);
    padding: 20px 0;
}

.footer-cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-cta-item {
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer-cta-item:hover {
    color: var(--primary);
}

.footer-cta-item svg {
    width: 20px;
    height: 20px;
}

.footer-main {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-brand h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-brands-list a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.footer-brands-list a:hover {
    background: var(--primary);
    color: white;
}

.footer-column h5 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-payments span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.payment-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */

.blog-layout {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 30px;
    padding: 40px 0;
}

.blog-sidebar-left,
.blog-sidebar-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.sidebar-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    padding: 8px 10px;
    border-radius: 5px;
}

.sidebar-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-links svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* Blog Content */
.blog-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.blog-header {
    margin-bottom: 30px;
}

.blog-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-item svg {
    width: 16px;
    height: 16px;
}

.blog-featured-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
}

.blog-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-body h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
}

.blog-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 12px;
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-body li {
    margin-bottom: 8px;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.sidebar-cta h5 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.sidebar-cta p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.sidebar-cta .btn {
    width: 100%;
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.sidebar-cta .btn:hover {
    background: var(--bg-light);
}

/* Related Posts */
.related-posts {
    padding: 40px 0;
    background: var(--bg-light);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.post-card-image {
    height: 150px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 20px;
}

.post-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-card .read-more {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* ==========================================================================
   Mobile CTA Bar
   ========================================================================== */

.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 11px 5px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 999;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 99999999;
}

.mobile-cta-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.mobile-cta-btn i {
    font-size: 18px;
}

.mobile-cta-btn.call {
    background: var(--primary);
    color: white;
}

.mobile-cta-btn.whatsapp {
    background: #25d366;
    color: white;
}

.mobile-cta-btn.enquire {
    background: var(--accent);
    color: white;
}

.mobile-cta-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Ensure body has enough padding for the floating bar */
@media (max-width: 767px) {
    body {
        padding-bottom: 100px !important;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-layout {
        grid-template-columns: 1fr 280px;
    }

    .blog-sidebar-left {
        display: none;
    }
}

@media (max-width: 991px) {
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-phone {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-right {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .top-bar-left {
        display: none;
    }

    .hero-section {
        padding: 30px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-image {
        display: none;
    }

    .service-strip-items {
        gap: 15px;
    }

    .service-strip-item {
        padding: 8px 12px;
    }

    .service-strip-item span {
        font-size: 11px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .how-steps {
        flex-direction: column;
        gap: 30px;
    }

    .footer-main .row > div {
        margin-bottom: 30px;
    }

    .mobile-cta-bar {
        display: block;
    }

    body {
        padding-bottom: 80px;
    }

    .blog-sidebar-right {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .warranty-number {
        font-size: 48px;
    }

    .cta-banner-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   Mega Menu Styles
   ========================================================================== */

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

.mega-menu {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    margin-top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    visibility: hidden;
    display: block;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.nav-item.dropdown:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu .dropdown-item {
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.mega-menu .dropdown-item:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    transform: translateX(5px);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.letter-spacing-1 {
    letter-spacing: 1px;
}
.transition {
    transition: all 0.3s ease;
}
.hover-bg-opacity-20:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Accordion Custom Styling */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover,
.hover-translate-y:hover {
    transform: translateY(-8px);
}

.service-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-include-card {
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
}

.service-include-card:hover {
    border-color: var(--primary) !important;
    background-color: white !important;
}

/* Footer Brands */
.footer-brands-section {
    background-color: #00a651;
}

.footer-brands-section ul {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Language Switcher */
.lang-switcher a.fw-bold {
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: none;
}

/* Tabler Icons fix */
.ti {
    display: inline-block;
    line-height: 1;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .mega-menu {
        position: relative !important;
        width: 100% !important;
        box-shadow: none !important;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item.dropdown.show .mega-menu {
        display: block;
    }

    .navbar-nav .nav-link {
        padding: 15px 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1001;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-nav-links {
    padding: 20px;
}

.mobile-nav-links > a,
.mobile-nav-section > .section-toggle {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-section .section-links {
    display: none;
    padding-left: 20px;
}

.mobile-nav-section.active .section-links {
    display: block;
}

.mobile-nav-section .section-links a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}
.text-accent {
    color: var(--accent) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}
.shadow {
    box-shadow: var(--shadow);
}
.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Bootstrap Color Overrides */
:root {
    --bs-primary: var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-dark);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

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

/* Bootstrap Variable Overrides and Blue Fixes */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--primary) !important;
    color: white !important;
}

.btn-warning {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: #e68618 !important;
    border-color: #e68618 !important;
}

/* Global shadow and focus ring fix */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25) !important;
}

/* Achievement Section Fix */
.section-light {
    background-color: var(--bg-light);
}

/* Removing any remaining blue from focus states */
a:focus-visible {
    outline-color: var(--primary) !important;
}

.btn-accent {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

.btn-accent:hover {
    background-color: #e68618 !important;
    border-color: #e68618 !important;
}

/* ==========================================================================
   Brand Logo Buttons
   ========================================================================== */

.brand-logo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 80px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.brand-logo-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.brand-logo-btn img.brand-logo {
    display: block;
    margin: 0 auto;
    min-height: 40px;
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-logo-btn:hover img.brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.hover-shadow:hover {
    box-shadow: var(--shadow);
}

.ti-chevron-right {
    line-height: 2.3em;
}

.dropdown-toggle::after {
    display: none;
}
