﻿/*!
Theme Name: JMR Group
Description: Custom WordPress theme converted from Zend Framework for JMR Group. Designed to replicate the original site exactly while providing maximum content management flexibility.
Author: Converted from Zend Framework
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jmr-group
Tags: business, custom, responsive, trailer-parts, automotive

This theme maintains pixel-perfect fidelity to the original JMR Group website while leveraging modern WordPress capabilities.
*/

/* ==========================================================================
   JMR Group Theme Styles - Exact Replication of Original Design
   ========================================================================== */

/* Container Width Override - Match Original Design */
.container {
    max-width: 960px !important;
    margin: 0 auto;
    padding: 0 15px;
}

/* Responsive Container System */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    color: #464B53;
    font-size: 14px;
    margin: 0;
    padding: 0;
    line-height: 1.42857143;
}

/* Responsive Typography Base */
html {
    font-size: 100%; /* 16px base */
}

@media (min-width: 768px) {
    html {
        font-size: 106.25%; /* 17px */
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 112.5%; /* 18px */
    }
}

/* Responsive heading sizes */
h1 { 
    font-size: 2rem; /* 32px at base */
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 { 
    font-size: 1.75rem; /* 28px at base */
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h3 { 
    font-size: 1.5rem; /* 24px at base */
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 { 
    font-size: 1.25rem; /* 20px at base */
    line-height: 1.5;
    margin-bottom: 0.625rem;
}

h5 { 
    font-size: 1.125rem; /* 18px at base */
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

h6 { 
    font-size: 1rem; /* 16px at base */
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

a {
    color: #464B52;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive images with aspect ratio preservation */
.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Lazy loading support */
img[loading="lazy"] {
    background-color: #f3f3f3;
}

/* Responsive background images */
.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Performance optimization for images */
@media (max-width: 768px) {
    /* Reduce image quality on mobile for faster loading */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Header Styles */
header {
    background: #464B54;
    padding: 22px;
    min-height: 60px; /* Reduced minimum height */
    display: flex;
    align-items: flex-start; /* Align items to top for flexibility */
    flex-wrap: wrap;
    overflow: visible; /* Ensure content isn't clipped */
}

header .logo {
    margin: 10px 0 0 0;
    display: block;
    flex: 0 0 auto; /* Don't shrink the logo */
    max-width: none; /* Remove any width constraints */
}

header .logo img {
    max-width: none; /* Allow width to be larger than container */
    height: auto; /* Maintain aspect ratio */
    max-height: none; /* Remove any height constraints */
    min-width: 50px; /* Minimum width constraint */
    min-height: auto; /* No minimum height constraint */
    display: block;
}

header nav.navbar-nav {
    float: right;
    margin: 25px 0 5px 0;
    background: none;
    border: none;
    min-height: auto;
    flex: 1 1 auto; /* Allow navigation to take remaining space */
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

header nav.navbar-nav ul.nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav.navbar-nav ul.nav li {
    background: none;
    display: inline-block;
}

header nav.navbar-nav ul.nav li.current-menu-item a,
header nav.navbar-nav ul.nav li.active a {
    color: #1FAA96 !important;
    font-weight: normal;
    background: none;
}

header nav.navbar-nav ul.nav li a {
    color: #919299;
    margin-left: 24px;
    background: none;
    padding: 0;
    display: inline-block;
}

header nav.navbar-nav ul.nav li a:hover {
    color: #fff;
    text-decoration: none;
    background: none;
}

/* Dropdown Menu Styles */
header nav.navbar-nav ul.nav li.dropdown ul.dropdown-menu {
    background: #464B54;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 0;
}

header nav.navbar-nav ul.nav li.dropdown ul.dropdown-menu li a {
    color: #919299;
    padding: 8px 15px;
    margin-left: 0;
}

header nav.navbar-nav ul.nav li.dropdown ul.dropdown-menu li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Social Links */
header .social,
footer .social {
    width: 100%;
    position: relative;
    display: block;
    font-weight: bold;
    text-align: right;
    flex: 0 0 100%; /* Take full width on new line if needed */
    margin-top: 10px;
}

header .social a,
header .social span,
footer .social a,
footer .social span {
    color: #1FAA96;
    margin-left: 29px;
    display: inline-block;
    vertical-align: middle;
}

/* FontAwesome Social Icons - Universal Styling */
header .social a.social-link-linkedin,
header .social a.social-link-facebook,
header .social a.social-link-twitter,
header .social a.social-link-instagram,
header .social a.social-link-youtube,
footer .social a.social-link-linkedin,
footer .social a.social-link-facebook,
footer .social a.social-link-twitter,
footer .social a.social-link-instagram,
footer .social a.social-link-youtube {
    display: inline-block;
    vertical-align: middle;
    margin-top: 0;
    background: #1FAA96;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

header .social a.social-link-linkedin:hover,
header .social a.social-link-facebook:hover,
header .social a.social-link-twitter:hover,
header .social a.social-link-instagram:hover,
header .social a.social-link-youtube:hover,
footer .social a.social-link-linkedin:hover,
footer .social a.social-link-facebook:hover,
footer .social a.social-link-twitter:hover,
footer .social a.social-link-instagram:hover,
footer .social a.social-link-youtube:hover {
    background: #169d8a;
    text-decoration: none;
}

header .social a.social-link-linkedin i,
header .social a.social-link-facebook i,
header .social a.social-link-twitter i,
header .social a.social-link-instagram i,
header .social a.social-link-youtube i,
footer .social a.social-link-linkedin i,
footer .social a.social-link-facebook i,
footer .social a.social-link-twitter i,
footer .social a.social-link-instagram i,
footer .social a.social-link-youtube i {
    font-size: 16px;
    color: white;
    vertical-align: middle;
    display: inline-block;
    line-height: 32px;
    margin: 0;
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free", sans-serif;
    font-weight: 400;
}

/* Network-specific hover colors for brand recognition */
header .social a.social-link-facebook:hover,
footer .social a.social-link-facebook:hover {
    background: #1877f2;
}

header .social a.social-link-twitter:hover,
footer .social a.social-link-twitter:hover {
    background: #1da1f2;
}

header .social a.social-link-instagram:hover,
footer .social a.social-link-instagram:hover {
    background: #e4405f;
}

header .social a.social-link-youtube:hover,
footer .social a.social-link-youtube:hover {
    background: #ff0000;
}

header .social a.jmr,
footer .social a.jmr {
    margin-top: 0;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1;
}

header .social a.blog-link,
header .social a.catalogue-link,
footer .social a.blog-link,
footer .social a.catalogue-link,
header .social a.header-menu-link,
footer .social a.header-menu-link {
    margin-top: 0;
    vertical-align: middle;
}

header .social a.phone,
footer .social a.phone {
    margin-top: 10px;
}

header .social a.phone img,
footer .social a.phone img {
    margin-top: -10px;
    margin-right: 10px;
}

/* Remove old image styling since we're using FontAwesome now */
header .social a img,
footer .social a img {
    margin-top: -8px;
}

/* Content Area */
.content {
    min-height: 400px;
    background: #fff;
    padding-top: 0;
}

/* Homepage specific - remove ALL spacing */
.home .content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Title Styles */
.title {
    background: url('assets/images/parts-ribbon.jpg') no-repeat center center;
    background-size: cover;
    font-size: 44px;
    line-height: 44px;
    font-weight: bold;
    font-style: italic;
    text-transform: lowercase;
    color: #91929A;
    height: 80px;
    margin-bottom: 30px;
    width: 100%;
    display: block;
}

.title .container {
    padding-top: 38px;
    height: auto;
    margin-top: 0;
}

/* Original title positioning for content pages like testimonials */
.full.content .title .container {
    padding-top: 39px;
}

/* Specific rule for homepage title positioning */
body.home .title .container {
    padding-top: 32px !important;
    margin-top: 0 !important;
    position: relative;
    top: 0px;
}

/* HR Divider - Full Width */
.hr {
    background: url('assets/images/hr.png') no-repeat center center;
    width: 100%;
    height: 1px;
    margin: 0 0 20px 0;
    display: block;
}

/* Footer Styles */
footer .hr {
    margin-top: 40px;
    margin-bottom: 4px;
}

footer .dark {
    background: #464B54;
    padding: 25px 0 0 0;
}

footer .logo-area .logo {
    margin-top: 14px;
    float: left;
}

footer .footer-navigation,
footer .secondary-nav {
    margin: 25px 0 20px 0;
    width: 100%;
    float: right;
    text-align: right;
}

footer .footer-navigation ul,
footer .secondary-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer .footer-navigation ul li,
footer .secondary-nav ul li {
    list-style: none;
    display: inline;
    margin-left: 20px;
    color: #91929A;
}

footer .footer-navigation ul li a,
footer .secondary-nav ul li a {
    color: #91929A;
}

footer .footer-navigation ul li a:hover,
footer .secondary-nav ul li a:hover {
    color: #fff;
    text-decoration: none;
}

footer .secondary-nav li {
    margin-left: 20px;
}

footer .secondary-nav li:first-child {
    margin-left: 0;
}

footer .secondary-nav li a {
    display: inline-flex;
    align-items: center;
    color: #fff;
}

footer .secondary-nav img {
    margin-right: 7px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Content Divider - HR element used within page content */
hr.content-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent 10%, #1BB8A6 50%, transparent 90%);
    margin: 30px 0;
    opacity: 0.6;
}

hr.content-divider.width-full {
    background: linear-gradient(to right, transparent 0%, #1BB8A6 50%, transparent 100%);
}

hr.content-divider.width-narrow {
    background: linear-gradient(to right, transparent 25%, #1BB8A6 50%, transparent 75%);
}

hr.content-divider.width-standard {
    background: linear-gradient(to right, transparent 10%, #1BB8A6 50%, transparent 90%);
}

/* Page Content Styling */
.page-content h2 {
    color: #1BB8A6;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 30px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    color: #464B53;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-content p strong {
    color: #1BB8A6;
    font-weight: bold;
}

/* Legacy Content Box Styles - Keep for backward compatibility */
.contentbox {
    margin-bottom: 30px;
    padding-bottom: 30px;
    position: relative;
}

.contentbox:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 10%, #1BB8A6 50%, transparent 90%);
    opacity: 0.6;
}

.contentbox:last-child:after {
    display: none;
}

.contentbox-title {
    color: #1BB8A6;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.contentbox-content {
    color: #464B53;
    font-size: 14px;
    line-height: 1.6;
    padding-top: 10px;
}

.contentbox-content p {
    margin-bottom: 15px;
}

.contentbox-content p strong {
    color: #1BB8A6;
    font-weight: bold;
}

/* Content Wrapper */
.content-wrapper {
    padding: 30px 0;
}

/* About Us Page Specific */
.about-us .title {
    margin-bottom: 30px;
}

/* Branches Page Title - consistent with About Us */
.branches .title .container {
    padding-top: 38px !important;
}

/* About Statistics */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #1BB8A6;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

/* Responsive adjustments for stats */
@media (max-width: 768px) {
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        min-width: auto;
        text-align: center;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 5px;
    }
}

footer .credits {
    margin-top: 22px;
    padding: 15px 0;
    color: #91929A;
    font-size: 12px;
}

footer .cred {
    float: left;
}

footer .copyright {
    float: right;
}

footer .cred small,
footer .copyright small {
    color: #91929A;
}

footer .cred a {
    color: #91929A;
}

/* Page Content */
.site-main {
    padding: 20px 0;
}

/* Homepage - remove top padding */
.home .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

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

.entry-title {
    color: #464B53;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.entry-content {
    line-height: 1.6;
    color: #464B53;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #464B53;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 12px;
    color: #91929A;
}

.breadcrumbs a {
    color: #1FAA96;
}

/* Responsive Image */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Widget Area */
.widget-area {
    padding-left: 30px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    color: #464B53;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Pagination */
.paginationControl {
    font-weight: bold;
    color: #24AA94;
    margin: 30px 0;
}

.paginationControl a {
    font-weight: bold;
    color: #24AA94;
}

.paginationControl .pages {
    width: 50%;
    text-align: center;
    margin-top: 4px;
    float: left;
}

.paginationControl .controls {
    width: 25%;
    float: left;
}

.paginationControl .controls img {
    margin: 0 3px;
}

/* Navigation */
.posts-navigation,
.post-navigation {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.posts-navigation a,
.post-navigation a {
    color: #1FAA96;
    font-weight: bold;
}

/* Entry Meta */
.entry-meta {
    margin-bottom: 20px;
    font-size: 12px;
    color: #91929A;
}

.entry-meta a {
    color: #1FAA96;
}

.entry-meta .posted-on,
.entry-meta .byline,
.entry-meta .cat-links {
    margin-right: 15px;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 20px;
}

/* Tags */
.entry-footer .tags {
    margin-top: 20px;
    font-size: 12px;
}

.entry-footer .tags a {
    color: #1FAA96;
    margin-right: 5px;
}

/* Edit Link */
.edit-link {
    margin-top: 15px;
    display: block;
    font-size: 12px;
}

.edit-link a {
    color: #91929A;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Clearing */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

/* Additional WordPress specific styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 12px;
    color: #91929A;
    text-align: center;
    margin-top: 5px;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

/* Mobile Top Bar */
.mobile-top-bar {
    background: #363B43;
    border-bottom: 2px solid #2a2e35;
    padding: 10px 0;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-top-bar .container {
    text-align: center;
}

.mobile-top-bar .social {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.mobile-top-bar .social a {
    color: #fff;
    margin: 0 8px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    padding: 2px 0;
    transition: color 0.3s ease;
}

.mobile-top-bar .social a:hover {
    color: #1FAA96;
    text-decoration: none;
}

.mobile-top-bar .social a.social-link {
    margin-right: 12px;
}

.mobile-top-bar .social a.social-link i {
    font-size: 16px;
}

.mobile-top-bar .social a.jmr,
.mobile-top-bar .social a.blog-link,
.mobile-top-bar .social a.catalogue-link {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Add separator between LinkedIn and text links */
.mobile-top-bar .social a.social-link-linkedin + a {
    border-left: 1px solid #555;
    padding-left: 12px;
    margin-left: 8px;
}

/* Add separator between text links */
.mobile-top-bar .social a.jmr + a.jmr,
.mobile-top-bar .social a.blog-link + a.catalogue-link,
.mobile-top-bar .social a.jmr + a.catalogue-link {
    border-left: 1px solid #555;
    padding-left: 12px;
    margin-left: 8px;
}

/* Show mobile top bar only on mobile */
@media (max-width: 767px) {
    .mobile-top-bar {
        display: block !important;
    }
    
    /* Adjust header padding to account for top bar */
    header {
        border-top: none;
    }
}

/* Bootstrap responsive utilities */
.visible-xs {
    display: none !important;
}

@media (max-width: 767px) {
    .visible-xs {
        display: block !important;
    }
    table.visible-xs {
        display: table !important;
    }
    tr.visible-xs {
        display: table-row !important;
    }
    th.visible-xs,
    td.visible-xs {
        display: table-cell !important;
    }
}

.hidden-xs {
    display: block !important;
}

@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    float: right;
    margin-top: 15px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

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

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ==============================================
   Responsive Media Queries
   ============================================== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
    
    /* Padding adjustments */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Specific styles for landscape phones */
}

/* Medium Devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    header {
        position: relative;
        padding: 15px 22px;
    }
    
    header .container > .row {
        align-items: center;
    }
    
    .header-nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #464B54;
        z-index: 9999;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        padding: 60px 20px 20px 20px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    }
    
    .header-nav-wrapper.active {
        right: 0 !important;
        display: block !important;
    }
    
    header .logo {
        margin: 0;
        text-align: left;
    }
    
    header .logo img {
        max-width: 120px;
        height: auto;
    }
    
    /* Hide desktop social links in mobile menu - they're in top bar */
    .header-nav-wrapper .desktop-social-links {
        display: none !important;
    }
    
    /* Hide desktop menu, show mobile menu in mobile view */
    .header-nav-wrapper nav.desktop-nav {
        display: none !important;
    }
    
    .header-nav-wrapper nav.mobile-nav {
        display: block !important;
        float: none;
        margin: 0;
        width: 100%;
    }
    
    header nav.navbar-nav ul.nav {
        display: block;
        margin: 0;
        padding: 0;
    }
    
    header nav.navbar-nav ul.nav li {
        display: block;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    header nav.navbar-nav ul.nav li a {
        display: block;
        padding: 15px 0;
        margin-left: 0;
        color: #fff;
        text-decoration: none;
    }
    
    header nav.navbar-nav ul.nav li a:hover {
        background: rgba(255,255,255,0.1);
        padding-left: 10px;
    }
    
    /* Dropdown menus on mobile */
    header nav.navbar-nav ul.nav li.dropdown > a:after {
        content: '\25BC';
        float: right;
        font-size: 12px;
    }
    
    header nav.navbar-nav ul.nav li.dropdown ul.dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border: none;
        display: none;
        padding-left: 20px;
    }
    
    header nav.navbar-nav ul.nav li.dropdown.active ul.dropdown-menu {
        display: block;
    }
    
    /* Hide phone display on mobile */
    header #phone-display {
        display: none;
    }
    
    /* Footer responsive styles */
    footer {
        padding: 20px 0;
    }
    
    footer .cred,
    footer .copyright {
        float: none;
        text-align: center;
        margin: 10px 0;
    }
    
    footer .secondary-nav ul {
        text-align: center;
        padding: 10px 0;
    }
    
    footer .secondary-nav ul li {
        display: inline-block;
        margin: 5px;
    }
    
    footer .social {
        text-align: center;
        margin: 15px 0;
    }
    
    footer .logo-area {
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Service blocks responsive */
    .service-block {
        margin-bottom: 20px;
        height: auto !important;
        min-height: 150px;
    }
    
    .services-grid .service-image-block {
        height: auto !important;
        min-height: 200px;
        margin-bottom: 20px;
    }
    
    /* Branches page responsive */
    .branches .map {
        display: none; /* Hide map on mobile, show accordion only */
    }
    
    .branches .province-accordion {
        margin-bottom: 10px;
    }
    
    .branches .map-container iframe {
        height: 250px;
    }
    
    /* Home page blocks responsive */
    .full.home .locate,
    .full.home .request {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .full.home .brands {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .widget-area {
        padding-left: 0;
        margin-top: 30px;
    }
}

/* Homepage Styles - replicating original JMR Group layout */
.full.home {
    /* Reset any inherited styles */
    padding: 0 !important;
    margin: 0 !important;
}

/* Container on homepage - remove top spacing */
.home .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Additional header content - remove spacing */
.additional-header-content {
    margin: 0 !important;
    padding: 0 !important;
    height: 0;
    overflow: hidden;
}

/* Banner wrapper - absolutely flush with header */
.full.home .banner-wrapper {
    position: relative;
    height: 261px;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: none;
    top: 0 !important;
}

/* Force banner to be absolutely flush - specific targeting */
.home .content .container .full.home .banner-wrapper {
    margin-top: 0 !important;
    transform: translateY(0) !important;
}

/* Banner Row - Remove all gaps, ensure proper layout */
.full.home .banner-wrapper .row {
    margin: 0 !important;
    padding: 0 !important;
    height: 261px;
    width: 100%;
    max-width: none;
}

/* Main Banner Column - Remove padding/gaps, let Bootstrap handle responsive */
.full.home .banner-wrapper .col-md-9 {
    padding: 0 !important;
    margin: 0 !important;
    height: 261px;
    border: none;
    outline: none;
}

/* Promotional Banner Column - Remove padding/gaps, let Bootstrap handle responsive */
.full.home .banner-wrapper .col-md-3 {
    padding: 0 !important;
    margin: 0 !important;
    height: 261px;
    border: none;
    outline: none;
}

.full.home .banner-wrapper #banner {
    width: 100%;
    height: 261px;
    display: block;
    overflow: hidden;
    position: relative;
}

.full.home .banner-wrapper #banner .carousel-inner {
    height: 261px;
}

.full.home .banner-wrapper #banner .carousel-inner .item {
    height: 261px;
}

.full.home .banner-wrapper #banner img {
    width: 100%;
    height: 261px;
    object-fit: fill;
    display: block;
}

/* Banner Carousel Controls */
.full.home .banner-wrapper #banner .carousel-control {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.full.home .banner-wrapper #banner .carousel-control:hover {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.full.home .banner-wrapper #banner .carousel-control.left {
    left: 10px;
}

.full.home .banner-wrapper #banner .carousel-control.right {
    right: 10px;
}

.full.home .banner-wrapper #banner .carousel-control .glyphicon {
    font-size: 18px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Banner Carousel Indicators */
.full.home .banner-wrapper #banner .carousel-indicators {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    margin: 0;
}

.full.home .banner-wrapper #banner .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.full.home .banner-wrapper #banner .carousel-indicators .active {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Hide navigation elements when disabled via settings */
.full.home .banner-wrapper #banner[data-show-indicators="false"] .carousel-indicators {
    display: none !important;
}

.full.home .banner-wrapper #banner[data-show-controls="false"] .carousel-control {
    display: none !important;
}

.full.home .banner-wrapper .promo-banner {
    width: 100%;
    height: 261px;
    display: block;
    overflow: hidden;
}

.full.home .banner-wrapper .promo-banner img {
    width: 100%;
    height: 261px;
    object-fit: fill;
    display: block;
}

/* CSS-based Promotional Banner */
.full.home .banner-wrapper .promo-banner.css-banner {
    background: linear-gradient(to right, #1FAA96 0%, #1FAA96 60%, #F4D03F 60%, #F4D03F 100%);
    position: relative;
    overflow: hidden;
}

.full.home .banner-wrapper .promo-banner.css-banner .promo-content {
    position: relative;
    height: 100%;
    padding: 10px;
    color: white;
}

.full.home .banner-wrapper .promo-banner.css-banner .promo-text {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    line-height: 1.1;
    width: 140px;
}

.full.home .banner-wrapper .promo-banner.css-banner .promo-text h3 {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.full.home .banner-wrapper .promo-banner.css-banner .promo-text p {
    margin: 3px 0;
    color: white;
    font-size: 9px;
    line-height: 1.1;
}

.full.home .banner-wrapper .promo-banner.css-banner .mann-logo {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 60px;
}

.full.home .banner-wrapper .promo-banner.css-banner .mann-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.full.home .banner-wrapper .promo-banner.css-banner .catalogue-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.full.home .banner-wrapper .promo-banner.css-banner .catalogue-btn a {
    background: #464B54;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
}

.full.home .banner-wrapper .promo-banner.css-banner .catalogue-btn span {
    background: #464B54;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
    opacity: 0.7; /* Slightly faded to indicate it's not clickable */
    cursor: default;
}

.full.home .banner-wrapper .promo-banner.css-banner .tagline {
    position: absolute;
    bottom: 35px;
    left: 10px;
    font-size: 9px;
    color: white;
    font-style: italic;
}

.full.home .banner-wrapper .promo-banner.css-banner .newsletter-section {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1FAA96;
    padding: 8px;
    text-align: center;
    border: 2px solid white;
    width: 100px;
}

.full.home .banner-wrapper .promo-banner.css-banner .newsletter-section h4 {
    margin: 0 0 5px 0;
    font-size: 11px;
    color: white;
    font-weight: bold;
}

.full.home .banner-wrapper .promo-banner.css-banner .newsletter-section p {
    margin: 0 0 8px 0;
    font-size: 8px;
    line-height: 1.1;
    color: white;
}

.full.home .banner-wrapper .promo-banner.css-banner .newsletter-section .signup-btn {
    background: white;
    color: #1FAA96;
    padding: 4px 8px;
    text-decoration: none;
    font-size: 9px;
    font-weight: bold;
    border-radius: 2px;
}

.full.home .banner-wrapper .promo-banner.css-banner .newsletter-section .signup-btn span,
.full.home .banner-wrapper .promo-banner.css-banner .newsletter-section span.signup-btn {
    background: white;
    color: #1FAA96;
    padding: 4px 8px;
    text-decoration: none;
    font-size: 9px;
    font-weight: bold;
    border-radius: 2px;
    opacity: 0.7; /* Slightly faded to indicate it's not clickable */
    cursor: default;
}

.full.home p {
    line-height: 17px;
    margin: 20px 0;
    font-size: 14px;
}

.full.home .carousel {
    margin: 0 auto;
}

/* Title Section with Background */
.full.home .title {
    background: url('assets/images/parts-ribbon.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 80px;
    margin-bottom: 30px;
    color: #91929A;
    font-weight: bold;
    font-size: 44px;
    line-height: 44px;
    font-style: italic;
    display: block;
    text-transform: lowercase;
}

/* Override container styling for homepage title */
.full.home .title .container {
    padding-top: 32px !important;
    height: auto;
    margin-top: 0;
    position: relative;
    top: 0px;
}

/* Service Blocks Container */
.full.home .blocks {
    margin-top: 32px;
}

.full.home .green-blocks {
    margin-bottom: 26px;
}

.full.home .green-blocks .row {
    margin: 0;
}

.full.home .green-blocks .col-md-4 {
    padding: 0 15px 0 0;
    margin-bottom: 18px;
}

.full.home .green-blocks .col-md-4:nth-child(3n+1) {
    padding-left: 0;
}

/* Small Service Blocks - Core Styling */
.full.home .small-block {
    background: url('assets/images/coloured-block.png') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 115px;
    position: relative;
    display: block;
}

/* Service Image Blocks - For uploaded images */
.full.home .service-image-block {
    width: 100%;
    height: 115px;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.full.home .service-image-block a {
    display: block;
    width: 100%;
    height: 100%;
}

.full.home .service-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Use cover for better responsive fill */
    display: block;
}

.full.home .small-block h2 {
    position: absolute;
    top: 32px;
    left: 19px;
    width: calc(100% - 38px);
    font-size: 14px;
    line-height: 16px;
    color: #fff;
    font-weight: bold;
    margin: 0;
}

.full.home .small-block .icon {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.full.home .small-block .icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* HR Divider */
.full.home .hr img {
    width: 100%;
    height: auto;
}

/* Bottom Section Layout */
.full.home .full-width {
    margin-top: 20px;
}

.full.home .full-width .row {
    margin: 0;
    display: flex;
    align-items: flex-start;
    height: 160px !important;
}

/* Bottom Section - Ensure all three have identical styling */
.full.home .full-width .col-md-3,
.full.home .full-width .col-md-6 {
    padding: 0 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px !important;
}

.full.home .full-width .col-md-3:first-child {
    padding-left: 0;
}

/* Container alignment - equal spacing between all sections */
.full.home .full-width .col-md-3,
.full.home .full-width .col-md-6 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.full.home .full-width .col-md-3:first-child {
    padding-left: 0;
}

.full.home .full-width .col-md-6:last-child {
    padding-right: 0;
}

/* Force identical sizing for both locate and request elements */
.full.home .locate,
.full.home .request {
    width: 220px !important;
    height: 160px !important;
    margin: 0 auto !important;
    position: relative !important;
    background-size: auto !important;
    background-repeat: no-repeat !important;
    display: block !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box !important;
}

/* Individual background images with exact positioning from original */
.full.home .locate {
    background: url('assets/images/locate-branch.png') no-repeat -6px -14px;
}

.full.home .request {
    background: url('assets/images/request-part-block.png') no-repeat center center;
}

.full.home .brands {
    width: 100%;
    height: 180px !important;
    margin: 0 auto;
    position: relative;
    background: url('assets/images/brands-block.png') no-repeat center center;
    background-size: contain;
    overflow: hidden;
    display: block;
}

/* Consistent styling for locate and request sections */
.full.home .locate h2,
.full.home .request h2 {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #464B52;
    text-transform: uppercase;
    margin: 0;
    line-height: 16px;
    white-space: nowrap;
    padding: 0 5px;
    box-sizing: border-box;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Brands heading - different positioning */
.full.home .brands h2 {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #464B52;
    text-transform: uppercase;
    margin: 0;
    line-height: 10px;
    white-space: nowrap;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
    /* Let Bootstrap handle responsive behavior naturally */
}

@media (max-width: 768px) {
    .full.home .banner-wrapper {
        height: auto; /* Allow height to expand for stacked banners */
    }
    
    .full.home .banner-wrapper .row {
        height: auto; /* Allow row to expand */
    }
    
    /* Mobile: Both banners full width and stacked */
    .full.home .banner-wrapper .col-md-9,
    .full.home .banner-wrapper .col-md-3 {
        height: 200px; /* Shorter height for mobile */
        margin-bottom: 10px; /* Add gap between stacked banners */
    }
    
    .full.home .banner-wrapper #banner img,
    .full.home .banner-wrapper .promo-banner img {
        height: 200px;
    }
    
    .full.home .banner-wrapper .promo-banner.css-banner {
        height: 200px;
    }
    
    .full.home .small-block,
    .full.home .service-image-block {
        height: 100px;
    }
    
    .full.home .small-block h2 {
        font-size: 12px;
        top: 25px;
    }
    
    /* Bottom section mobile alignment */
    .full.home .full-width .col-md-3,
    .full.home .full-width .col-md-6 {
        padding: 0 0 15px 0;
        margin-bottom: 15px;
    }
    
    .full.home .brands {
        width: 100%;
        height: 160px !important;
    }
    
    .full.home .locate,
    .full.home .request {
        width: 180px;
        height: 160px !important;
    }
    
    .full.home .locate h2,
    .full.home .request h2 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .full.home .locate,
    .full.home .request {
        width: 100%;
        margin: 10px 0;
        float: none;
    }
    
    .full.home .brands {
        margin-left: 0;
        width: 100%;
    }
}

.full.home .blocks a {
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: block;
}

.full.home .blocks a:hover {
    color: #fff;
    text-decoration: none;
}

/* Link styling for clickable sections */
.full.home .locate-branch,
.full.home .request-part {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 160px !important;
    margin: 0;
    padding: 0;
}

.full.home .locate-branch:hover,
.full.home .request-part:hover {
    text-decoration: none;
}

/* Request part icon - keep this specific styling */
.full.home .request .icon {
    background: url('assets/images/request-part-icon.png') no-repeat center center;
    background-size: contain;
    width: 90px;
    height: 92px;
    position: absolute;
    top: 57px;
    left: 63px;
}

/* JMR Brand Slideshow - FIXED POSITIONING AND CLIPPING */
.full.home .brands .jmr-brand-slideshow {
    position: absolute;
    top: 35px;
    left: 10px;
    right: 10px;
    bottom: 15px;
    height: 130px;
    overflow: hidden !important; /* Ensure off-screen slides are clipped */
    width: calc(100% - 20px); /* Explicit width for proper clipping */
}

/* Fade animation styles - SAFE DEFAULT */
.full.home .brands .jmr-brand-slideshow .brand-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.full.home .brands .jmr-brand-slideshow .brand-slide.jmr-active {
    opacity: 1;
}

/* Slide animation styles - DEDICATED CLASSES FOR EACH STATE */
.full.home .brands .jmr-brand-slideshow.slide-animation .brand-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important; /* Hidden by default */
    transform: translateX(100%) !important; /* Default: off-screen right */
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out !important;
}

/* Slide ready to enter from right */
.full.home .brands .jmr-brand-slideshow.slide-animation .brand-slide.jmr-ready-right {
    opacity: 1 !important; /* Visible but off-screen */
    transform: translateX(100%) !important; /* Positioned off-screen right */
    transition: none !important; /* No transition when positioning */
}

/* Active slide in center */
.full.home .brands .jmr-brand-slideshow.slide-animation .brand-slide.jmr-active {
    opacity: 1 !important; /* Visible */
    transform: translateX(0) !important; /* Centered */
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out !important;
}

/* Slide sliding out to left */
.full.home .brands .jmr-brand-slideshow.slide-animation .brand-slide.jmr-sliding-out {
    opacity: 1 !important; /* Visible during slide out */
    transform: translateX(-100%) !important; /* Slide off-screen left */
    transition: transform 0.6s ease-in-out !important;
}

/* Completely hidden slide */
.full.home .brands .jmr-brand-slideshow.slide-animation .brand-slide.jmr-hidden {
    opacity: 0 !important; /* Completely invisible */
    transform: translateX(-100%) !important; /* Keep off-screen left */
    transition: none !important; /* No transition when hiding */
    pointer-events: none !important; /* Disable interaction */
    visibility: hidden !important; /* Additional layer of invisibility */
    z-index: -1 !important; /* Push behind other slides */
}

.full.home .brands .jmr-brand-slideshow .brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.full.home .brands .jmr-brand-slideshow .brand-item {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 5px 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.full.home .brands .jmr-brand-slideshow .brand-item img.brand-logo {
    max-width: 100px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.full.home .brands .jmr-brand-slideshow .brand-item .brand-placeholder {
    height: 80px;
    width: 100px;
}

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

/* Blog page container */
.full.blog .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Blog sidebar */
.blog .aside {
    margin-bottom: 30px;
}

.blog .aside h3 {
    color: #464B53;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.blog .aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.blog .aside ul li a {
    color: #1FAA96;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.blog .aside ul li a:hover {
    color: #189a88;
    text-decoration: underline;
}

/* Blog posts */
.blog .content-wrapper {
    margin-bottom: 0;
}

.blog .post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blog .post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.blog .post-title {
    color: #1FAA96;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog .post-title:hover {
    color: #189a88;
    text-decoration: underline;
}

.blog .date {
    color: #91929A;
    font-size: 12px;
    margin-bottom: 15px;
    font-style: italic;
}

.blog .image {
    margin-bottom: 15px;
}

.blog .image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.blog .content {
    padding: 0;
}

.blog .content .wrapper {
    color: #464B53;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    overflow: hidden;
    min-height: 100px;
    max-height: 100px;
}

.blog .read-more {
    color: #1FAA96;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.blog .read-more:hover {
    color: #189a88;
    text-decoration: underline;
}

/* Pagination */
.paginationControl {
    margin: 40px 0 20px 0;
    overflow: hidden;
}

.paginationControl .pages {
    float: left;
    margin: 0;
}

.paginationControl .page-no {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    color: #464B53;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    font-size: 14px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.paginationControl .page-no:hover {
    color: #1FAA96;
    border-color: #1FAA96;
    background: #fff;
}

.paginationControl .page-no.active {
    color: #fff;
    background: #1FAA96;
    border-color: #1FAA96;
}

.paginationControl .controls {
    margin: 0;
}

.paginationControl .next {
    color: #1FAA96;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.paginationControl .next:hover {
    color: #189a88;
    text-decoration: underline;
}

.paginationControl .next img {
    width: 12px;
    height: auto;
}

/* Responsive design for blog */
@media (max-width: 768px) {
    .blog .aside {
        margin-bottom: 20px;
    }
    
    .blog .post {
        margin-bottom: 25px;
    }
    
    .blog .post-title {
        font-size: 16px;
    }
    
    .blog .content .wrapper {
        min-height: 80px;
        max-height: 80px;
    }
    
    .paginationControl {
        text-align: center;
    }
    
    .paginationControl .pages {
        float: none;
        display: inline-block;
        margin-bottom: 15px;
    }
    
    .paginationControl .controls {
        float: none !important;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .blog .post {
        margin-bottom: 20px;
    }
    
    .blog .post-title {
        font-size: 14px;
    }
    
    .blog .content .wrapper {
        min-height: 60px;
        max-height: 60px;
        font-size: 13px;
    }
    
    .paginationControl .page-no {
        padding: 6px 10px;
        font-size: 12px;
        margin: 0 1px;
    }
}

/* Single blog post styles */
.blog .single-post {
    margin-bottom: 0;
}

.blog .single-post .post-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1FAA96;
    font-weight: bold;
    line-height: 1.3;
}

.blog .single-post .featured-image {
    margin: 20px 0;
}

.blog .single-post .featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.blog .single-post .post-content {
    color: #464B53;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
}

.blog .single-post .post-content h1,
.blog .single-post .post-content h2,
.blog .single-post .post-content h3,
.blog .single-post .post-content h4,
.blog .single-post .post-content h5,
.blog .single-post .post-content h6 {
    color: #1FAA96;
    margin: 20px 0 15px 0;
    font-weight: bold;
}

.blog .single-post .post-content p {
    margin-bottom: 15px;
}

.blog .single-post .post-content ul,
.blog .single-post .post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.blog .single-post .post-content li {
    margin-bottom: 8px;
}

.blog .single-post .post-content a {
    color: #1FAA96;
    text-decoration: none;
}

.blog .single-post .post-content a:hover {
    color: #189a88;
    text-decoration: underline;
}

.blog .post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.blog .post-navigation .nav-previous,
.blog .post-navigation .nav-next {
    margin-bottom: 10px;
}

.blog .post-navigation a {
    color: #1FAA96;
    text-decoration: none;
    font-weight: bold;
}

.blog .post-navigation a:hover {
    color: #189a88;
    text-decoration: underline;
}

.blog .post-meta {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #464B53;
}

.blog .post-meta .post-categories,
.blog .post-meta .post-tags {
    margin-bottom: 10px;
}

.blog .post-meta a {
    color: #1FAA96;
    text-decoration: none;
}

.blog .post-meta a:hover {
    color: #189a88;
    text-decoration: underline;
}

.blog .back-to-blog {
    color: #1FAA96;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #1FAA96;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.blog .back-to-blog:hover {
    color: #fff;
    background: #1FAA96;
    text-decoration: none;
}

/* ==========================================================================
   Testimonials Page Styles
   ========================================================================== */

/* Testimonials page container */
.full.content .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Content wrapper for each testimonial - no extra spacing */
.full.content .content-wrapper {
    margin-bottom: 0;
}

/* Testimonial content box - matching original exactly */
.contentbox {
    background: url('assets/images/hr.png') no-repeat center bottom;
    margin-bottom: 20px;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.contentbox:hover {
    box-shadow: none;
}

/* Testimonial title (company name) - original styling */
.contentbox-title {
    color: #1FAA96;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 22px 0;
    padding: 0;
    border: none;
}

/* Testimonial content text - original styling */
.contentbox-content {
    color: #464B53;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 34px;
}

.contentbox-content p {
    margin-bottom: 15px;
}

.contentbox-content p:last-child {
    margin-bottom: 0;
}

/* Responsive design for testimonials */
@media (max-width: 768px) {
    .full.content .content-wrapper {
        margin-bottom: 0;
    }
    
    .contentbox {
        margin-bottom: 15px;
    }
    
    .contentbox-title {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .contentbox-content {
        padding-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .full.content .content-wrapper {
        margin-bottom: 0;
    }
    
    .contentbox {
        margin-bottom: 12px;
    }
    
    .contentbox-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .contentbox-content {
        font-size: 13px;
        padding-bottom: 25px;
    }
}

/* ==========================================================================
   Branches Page Styles
   ========================================================================== */

/* Branches page container */
.full.branches .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Map container and positioning - Use actual image dimensions */
.branches .map {
    position: relative;
    display: inline-block;
    width: 375px; /* Actual image width */
    height: 324px; /* Actual image height */
    margin: 0 auto;
}

.branches .map .branches-map {
    width: 375px; /* Actual image width */
    height: 324px; /* Actual image height */
    display: block;
}

/* Map markers - exact positioning from original Zend Framework site */
.branches .map .marker {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
    top: 4px;
    left: 291px;
}

.branches .map .marker:hover {
    transform: scale(1.1);
}

.branches .map .marker img {
    width: auto;
    height: auto;
    display: block;
}

/* Specific marker positions from original CSS */
.branches .map .marker#m-delmas {
    top: 61px;
    left: 282px;
}

.branches .map .marker#m-pomona {
    top: 61px;
    left: 258px;
}

.branches .map .marker#m-alrode {
    top: 76px;
    left: 244px;
}

.branches .map .marker#m-vryheid {
    top: 116px;
    left: 301px;
}

.branches .map .marker#m-empangeni {
    top: 129px;
    left: 329px;
}

.branches .map .marker#m-pinetown {
    top: 170px;
    left: 305px;
}

.branches .map .marker#m-port_elizabeth {
    top: 270px;
    left: 190px;
}

.branches .map .marker#m-george {
    top: 272px;
    left: 125px;
}

.branches .map .marker#m-cpt {
    top: 275px;
    left: 45px;
}

/* Group description section */
.branches .group {
    padding: 20px 0;
}

.branches .group h2 {
    color: #1FAA96;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.branches .group p {
    color: #464B53;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.branches .group a {
    color: #1FAA96;
    text-decoration: none;
}

.branches .group a:hover {
    text-decoration: underline;
}

/* Province selection buttons */
.branches .branches_pane {
    background: #1FAA96;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-bottom: 2px;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.branches .branches_pane:hover {
    background: #189a88;
}

.branches .branch {
    background: #f8f9fa;
    color: #464B53;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-bottom: 2px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

.branches .branch:hover {
    background: #e8f5f4;
    border-color: #1FAA96;
}

/* Province arrow styling */
.branches .province-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #464B53;
    transition: transform 0.3s ease;
}

.branches .branch:hover .province-arrow {
    color: #1FAA96;
}

/* Province accordion styling */
.branches .province-accordion {
    margin-bottom: 2px;
}

.branches .province-content {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 0;
    margin-top: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Branch details sections */
.branches .w3-container {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 0;
}

.branches .w3-container h2 {
    color: #1FAA96;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.branches .w3-container h3 {
    color: #464B53;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.branches .w3-container p {
    color: #464B53;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.branches .w3-container strong {
    font-weight: bold;
}

/* Services panel labels */
.branches .services_panel {
    margin: 10px 0;
}

.branches .services_panel .label {
    display: inline-block;
    background: #1FAA96;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
}

/* Google Maps iframe styling */
.branches .map-container {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.branches .map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* Contact information styling */
.branches .contact-info {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #1FAA96;
    margin: 15px 0;
}

.branches .contact-info h4 {
    color: #1FAA96;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.branches .contact-info p {
    margin-bottom: 5px;
    color: #464B53;
    font-size: 14px;
}

.branches .contact-info a {
    color: #1FAA96;
    text-decoration: none;
}

.branches .contact-info a:hover {
    text-decoration: underline;
}

/* Responsive design for branches page */
@media (max-width: 768px) {
    .branches .map {
        width: 100%;
        max-width: 375px;
        height: auto;
        margin-bottom: 20px;
        transform: scale(0.85);
        transform-origin: center top;
    }
    
    .branches .map .branches-map {
        width: 100%;
        max-width: 375px;
        height: auto;
    }
    
    .branches .group {
        padding: 15px 0;
    }
    
    .branches .group h2 {
        font-size: 20px;
    }
    
    .branches .branches_pane,
    .branches .branch {
        padding: 15px;
        font-size: 16px;
    }
    
    .branches .w3-container {
        padding: 15px;
    }
    
    .branches .w3-container h2 {
        font-size: 18px;
    }
    
    .branches .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .branches .map-container iframe {
        height: 200px;
    }
    
    .branches .services_panel .label {
        display: block;
        margin-bottom: 8px;
        text-align: center;
    }
    
    /* Mobile responsive map marker positioning from original CSS */
    .content .branches .map .marker {
        top: 0px;
        left: 230px;
    }
    
    .content .branches .map .marker#m-delmas {
        top: 42px;
        left: 225px;
    }
    
    .content .branches .map .marker#m-pomona {
        top: 42px;
        left: 203px;
    }
    
    .content .branches .map .marker#m-alrode {
        top: 54px;
        left: 192px;
    }
    
    .content .branches .map .marker#m-vryheid {
        top: 85px;
        left: 236px;
    }
    
    .content .branches .map .marker#m-empangeni {
        top: 97px;
        left: 260px;
    }
    
    .content .branches .map .marker#m-pinetown {
        top: 130px;
        left: 244px;
    }
    
    .content .branches .map .marker#m-port_elizabeth {
        top: 210px;
        left: 151px;
    }
    
    .content .branches .map .marker#m-george {
        top: 212px;
        left: 94px;
    }
    
    .content .branches .map .marker#m-cpt {
        top: 213px;
        left: 36px;
    }
}



/* ==========================================================================
   Get in Touch Widget Styles
   ========================================================================== */

.widget_jmr_get_in_touch .contact-info {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.widget_jmr_get_in_touch .contact-info h3 {
    color: #333;
    margin: 0 0 25px 0;
    font-size: 24px;
}

.widget_jmr_get_in_touch .contact-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.widget_jmr_get_in_touch .contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_jmr_get_in_touch .contact-item h4 {
    color: #1BB8A6;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.widget_jmr_get_in_touch .contact-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.widget_jmr_get_in_touch .contact-item a {
    color: #1BB8A6;
    text-decoration: none;
}

.widget_jmr_get_in_touch .contact-item a:hover {
    color: #159a89;
    text-decoration: underline;
}

.widget_jmr_get_in_touch .support-number {
    font-size: 20px;
    font-weight: bold;
    color: #d32f2f \!important;
}

.widget_jmr_get_in_touch .support-number:hover {
    color: #b71c1c \!important;
}

.widget_jmr_get_in_touch .btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #1BB8A6;
    color: #1BB8A6;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.widget_jmr_get_in_touch .btn-outline:hover {
    background: #1BB8A6;
    color: white;
    text-decoration: none;
}

/* Sidebar styles */
.widget-area .widget {
    margin-bottom: 30px;
}

.widget-area .widget-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1BB8A6;
}

@media (max-width: 768px) {
    .widget_jmr_get_in_touch .contact-info {
        padding: 20px;
    }
}

/* ==============================================
   Additional Responsive Breakpoints
   ============================================== */

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Desktop-specific adjustments */
    .container {
        /* Already handled by responsive container system */
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Large desktop adjustments */
    body {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .mobile-menu-toggle,
    .header-nav-wrapper,
    .mobile-menu-overlay,
    header .social,
    footer {
        display: none !important;
    }
    
    header {
        position: static;
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Desktop Navigation Display */
@media (min-width: 769px) {
    .header-nav-wrapper {
        position: static !important;
        right: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: transparent !important;
        z-index: auto !important;
        transition: none !important;
        overflow-y: visible !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .header-nav-wrapper nav.mobile-nav {
        display: none !important;
    }
    
    .header-nav-wrapper nav.desktop-nav {
        display: block !important;
    }
}
