/* Swiper Navigation Custom UI */
body {
    font-family: 'Roboto', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.widget-title,
.feature-title,
.form-title,
.jsw-section-title,
.feature-detail-title {
    font-family: 'Barlow', sans-serif !important;
}

.swiper-container {
    position: relative;
    padding: 0 50px;
    /* Space for arrows */
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    /* Bold Black Circle */
    border-radius: 50% !important;
    color: #fff !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000 !important;
    /* Ensure visibility over images */
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: 900 !important;
}

.swiper-button-prev {
    left: 20px !important;
    /* Positioned over the image edge */
}

.swiper-button-next {
    right: 20px !important;
    /* Positioned over the image edge */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #000 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Gallery Item Shadow and Light Border */
.swiper-slide a {
    display: block;
    border: none;
    /* Removed light border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Shadow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 15px 5px;
    /* Spacing for shadow */
}

.swiper-slide a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.swiper-slide img {
    border-radius: 8px;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    /* Control the size of the watermark */
    height: auto;
    opacity: 0.15;
    /* Make the watermark subtle */
    pointer-events: none;
    /* Make it unclickable */
    z-index: 5;
}

/* Ensure containers for watermarks have necessary positioning and overflow control */
.about-img,
.gallery-img,
.product-card,
.blog-item,
.sidebar-banner,
.result-image-wrapper,
figure.effect-bubba {
    position: relative !important;
    overflow: hidden !important;
}

:root {
    --jsw-blue: #1D4289;
    --jsw-red: #E31E24;
    --jsw-text: #333333;
    --jsw-light: #ffffff;
    --jsw-gray: #666666;
    --jsw-border: #dddddd;
}

/* Hamburger menus */
.hamburger,
.hamburger-bottom {
    display: none;
}

.jsw-top-tier {
    display: flex;
    align-items: stretch;
    height: 100px;
    /* Thinner bar for a more compact look while keeping logo large */
    background: #fff;
    z-index: 1000;
}

.jsw-logo-section {
    background: transparent;
    /* Remove the white background block */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 500px;
    /* Proportional width for brand balance */
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.jsw-logo-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.jsw-logo-section img {
    max-height: 280px;
    /* Larger height for better visibility */
    width: auto;
    object-fit: contain;
    position: relative;
    top: 15px;
    left: auto;
    transform: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1) contrast(1);
    z-index: 1005;
}

.mobile-logo {
    display: none;
}


.jsw-main-nav-section {
    background-color: var(--jsw-blue);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    /* Centered links in blue bar */
    padding-right: 0;
}

.jsw-main-nav-section ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.jsw-main-nav-section ul li {
    margin: 0 20px;
    height: 100%;
}

.jsw-main-nav-section ul li a {
    color: #fff;
    font-weight: 700;
    font-size: 14.4px;
    /* Precise font size */
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.8px;
    transition: color 0.3s;
    height: 100%;
    position: relative;
    z-index: 10001;
}

.jsw-main-nav-section ul li a:hover,
.jsw-main-nav-section ul li.active>a {
    color: #fff;
}

.jsw-main-nav-section ul li a i {
    font-size: 18px;
    margin-top: 2px;
}

/* Dropdown & Mega Menu Styling */
.jsw-main-nav-section ul li {
    position: static;
    /* Removed relative positioning to allow full-width dropdown */
    height: 100%;
}

.jsw-main-nav-section ul li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* Align perfectly to bottom of blue bar */
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 15px 8%;
    /* Balanced padding */
    border-top: 1px solid #0000FF;
    /* Thin light blue line from screenshot */
    border-radius: 0 !important;
    /* Sharp corners */
    min-height: auto;
    margin-top: 0;
}

/* Hover bridge to keep dropdown open */
.jsw-main-nav-section ul li .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.jsw-main-nav-section ul li:hover>.dropdown-menu {
    display: block;
}

.jsw-main-nav-section ul li.is-open>.dropdown-menu {
    display: block !important;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 30px !important;
    padding: 0 !important;
    margin: 0;
    width: 100%;
    list-style: none;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li {
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    display: flex;
    flex-direction: column;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li:first-child {
    text-align: left !important;
    align-items: flex-start !important;
    padding-left: 40px;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li:nth-child(2) {
    text-align: left !important;
    align-items: flex-start !important;
    padding-left: 20px;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li:last-child {
    text-align: left !important;
    align-items: flex-start !important;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li a {
    color: var(--jsw-blue) !important;
    font-size: 14px !important;
    /* Smaller font size as requested */
    font-weight: 700 !important;
    font-family: 'Barlow', sans-serif !important;
    padding: 0 !important;
    margin-bottom: 6px !important;
    text-transform: none !important;
    display: inline-block !important;
    letter-spacing: 0.2px !important;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li a:hover {
    color: var(--jsw-red) !important;
    text-decoration: none !important;
    background: transparent !important;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li p {
    color: #555 !important;
    font-size: 12px !important;
    /* Smaller body text */
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

/* Consistent alignment for branch dropdown items */
.jsw-main-nav-section .dropdown-menu .sub-navbar li {
    align-items: flex-start !important;
    text-align: left !important;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li a {
    color: var(--jsw-blue) !important;
    font-size: 16px;
    font-weight: 700;
    padding: 0 !important;
    border-bottom: none !important;
    display: inline-block !important;
}

.jsw-main-nav-section .dropdown-menu .sub-navbar li a:hover {
    background-color: transparent !important;
    padding-left: 0 !important;
    color: var(--jsw-red) !important;
    text-decoration: underline;
}

/* Contact Form Dropdown Styles */
.contact-dropdown {
    min-width: 500px !important;
    padding: 35px !important;
}

.form-title {
    font-family: 'Barlow', sans-serif;
    color: var(--jsw-blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid #efefef;
    padding-bottom: 15px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--jsw-blue);
}

.form-group textarea {
    resize: none;
    height: 45px;
    grid-column: span 2;
}

qty-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.captcha-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

#captcha-display canvas {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#cpatchaTextBox {
    flex-grow: 1;
    height: 35px;
    padding: 5px 10px;
}

.refresh-cap {
    background: none;
    border: none;
    color: var(--jsw-blue);
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s;
}

.refresh-cap:hover {
    transform: rotate(90deg);
}

.submit-enquiry {
    background: var(--jsw-red);
    color: #fff;
    border: none;
    padding: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-enquiry:hover {
    background: #c2191f;
    transform: translateY(-2px);
}

/* Mega Menu Column Layouts */
.jsw-main-nav-section ul li .dropdown-menu ul.container {
    display: grid;
    gap: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
    min-width: 600px;
}

.jsw-main-nav-section ul li .dropdown-menu ul.col-3 {
    grid-template-columns: repeat(3, 1fr);
    min-width: 900px;
}

.jsw-main-nav-section ul li .dropdown-menu ul.col-5 {
    grid-template-columns: repeat(4, 1fr);
    min-width: 1000px;
}

.jsw-main-nav-section .dropdown-menu ul li {
    margin: 0 0 10px 0;
    /* Added bottom margin */
    display: block;
    /* Ensure each item takes its own line */
    width: 100%;
}

.jsw-main-nav-section .dropdown-menu ul li a {
    color: var(--jsw-blue) !important;
    text-transform: none;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 15px !important;
    /* Increased padding */
    display: block !important;
    /* Force block display */
    line-height: 1.5;
    /* Add line height for better spacing */
    border-bottom: 1px solid #f0f0f0;
}

.jsw-main-nav-section .dropdown-menu ul li:last-child a {
    border-bottom: none;
}

.jsw-main-nav-section .dropdown-menu ul li a:hover {
    background-color: #f8f9fa;
    padding-left: 20px !important;
    /* Slight indent on hover */
    transition: all 0.3s ease;
}

.jsw-main-nav-section .dropdown-menu ul li a span {
    display: block;
    margin-bottom: 5px;
}

.jsw-main-nav-section .dropdown-menu ul li a p {
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-transform: none;
}

.jsw-main-nav-section .dropdown-menu ul li a b {
    color: #333;
    display: block;
    margin-top: 5px;
}

/* Nested Sub-menu */
.jsw-main-nav-section ul li .sub-menu {
    display: none;
    background: #f9f9f9;
    padding: 10px;
    list-style: none;
    margin-top: 10px;
    position: absolute;
    min-width: 200px;
    left: 0;
}

.jsw-main-nav-section .has-child:hover>.sub-menu {
    display: block;
}

.jsw-main-nav-section .has-child.is-open>.sub-menu {
    display: block !important;
}

.jsw-main-nav-section .sub-menu li {
    margin: 0 0 8px 0 !important;
}

.jsw-main-nav-section .sub-menu li a {
    font-weight: 500 !important;
    font-size: 14px !important;
}

.jsw-bottom-tier {
    background: rgba(255, 255, 255, 0.85);
    /* Refined transparency for hero overlay */
    border-bottom: 1px solid #e5e5e5;
    border-top: none;
    padding: 0 40px 0 0;
    display: flex;
    justify-content: flex-end;
    /* Right alignment per screenshot */
    height: 48px;
    position: absolute;
    z-index: 999;
    width: 100%;
    transition: background 0.3s, position 0.3s;
}

.jsw-bottom-tier.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
    /* Solid white when sticky */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.jsw-secondary-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jsw-secondary-nav li {
    border-right: 1px solid #e5e5e5;
    height: 100%;
}

.jsw-secondary-nav li:first-child {
    border-left: none;
}

.jsw-secondary-nav li:last-child {
    border-right: none;
}

.jsw-secondary-nav li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: #666;
    font-weight: 600;
    font-size: 12.667px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.jsw-secondary-nav li.dropdown {
    position: relative;
}

.jsw-secondary-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: none;
    padding: 10px 0;
}

.jsw-secondary-nav li.dropdown:hover>.dropdown-menu,
.jsw-secondary-nav li.dropdown.is-open>.dropdown-menu {
    display: block;
}

.jsw-secondary-nav .sub-navbar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jsw-secondary-nav .sub-navbar li {
    border-right: none !important;
    width: 100%;
}

.jsw-secondary-nav .sub-navbar li a {
    padding: 10px 20px !important;
    display: block !important;
    font-size: 14px !important;
    color: #333 !important;
}

.jsw-secondary-nav .sub-navbar li a:hover {
    background: #f8f8f8;
    color: var(--jsw-red) !important;
}

.jsw-secondary-nav li a.active {
    color: var(--jsw-red);
}

.jsw-secondary-nav li a:hover,
.jsw-secondary-nav li.active a,
.jsw-secondary-nav li a.active {
    color: var(--jsw-red) !important;
}

.jsw-secondary-nav li a i {
    font-size: 10px;
    margin-left: 3px;
}

/* JSW Hero Section Styles */
/* Custom Hero Slider Styles */
.jsw-hero-slider-section {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

.jsw-hero-slider-section .swiper-container {
    margin: 0;
    padding: 0;
    width: 100%;
}

.hero3-section-area {
    height: 80vh;
    /* Laptop height - reduced */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

@media (max-width: 991px) {
    .hero3-section-area {
        height: 60vh;
        /* Smaller for tablets */
    }
}

@media (max-width: 767px) {
    .hero3-section-area {
        height: 45vh;
        background-size: contain;
        /* Adjusted for better image visibility */
        padding: 0;
        margin: 0;
    }
}

/* Visibility Utilities */
.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }

    .d-md-none {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .d-block {
        display: block !important;
    }
}

/* Swiper Pagination Customization */
.hero-slider-desktop .swiper-pagination,
.hero-slider-mobile .swiper-pagination {
    bottom: 25px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #e23636;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #e23636 !important;
    /* JSW Orange */
    opacity: 1;
    width: 30px;
    /* Long active bullet for premium feel */
    border-radius: 6px;
}

.jsw-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.jsw-hero-content-box {
    padding-left: 8%;
    max-width: 60%;
    max-height: -100px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.jsw-text-side {
    flex-shrink: 0;
}

.jsw-shield-text {
    font-family: 'Barlow', sans-serif;
    color: var(--jsw-blue);
    font-weight: 900;
    font-size: 80px;
    line-height: 0.9;
    margin-bottom: 10px;
}

.jsw-tagline {
    color: var(--jsw-red);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 0;
}

.jsw-feature-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jsw-badge-item {
    display: flex;
    align-items: center;
}

.jsw-badge-circle {
    width: 70px;
    height: 70px;
    border: 3px solid var(--jsw-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    color: var(--jsw-blue);
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.jsw-greenpro-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 80px;
}

.jsw-warranty-seal {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 120px;
}

/* Section Title Base */

.jsw-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 0;
    margin: 0 auto;
}

/* Refined Features Grid Styles */
/* Features Grid - Premium Refinement */
.jsw-features-grid {
    padding: 20px 0 80px 0;
    background: #ffffff !important;
}

.jsw-section-title {
    text-align: center;
    font-size: 32px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    color: var(--jsw-blue);
    margin-top: 20px;
    /* Professional gap below the nav bar */
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 100;
}

.jsw-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--jsw-red);
}

.feature-grid-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Slightly reduced gap to ensure 4 fit comfortably */
    margin-bottom: 40px;
    flex-wrap: wrap;
    /* Essential for the single container approach */
}

.feature-item {
    width: calc(25% - 30px);
    /* Exactly 4 per row minus gap */
    min-width: 160px;
    /* Maintain minimum size */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin: 10px 0;
    transition: all 0.3s ease;
}


.feature-icon-circle {
    width: 110px;
    height: 110px;
    border: 0;
    /* Outer CSS circle removed */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0;
}

.feature-item:hover .feature-icon-circle {
    border: 1px solid var(--jsw-blue);
    /* Professional blue border on hover only */
    background: #fff;
    box-shadow: 0 5px 15px rgba(29, 66, 137, 0.1);
}

.feature-icon-circle img {
    max-width: 100%;
    /* Magnified inner circle from brand imagery */
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon-circle img {
    transform: scale(1.05);
    /* Subtle hover lift */
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    font-family: 'Barlow', sans-serif;
    line-height: 1.2;
    margin-top: 5px;
    transition: all 0.3s;
    min-height: 34px;
    /* Maintain alignment symmetry */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.feature-item:hover .feature-title {
    text-decoration: underline;
    text-decoration-color: var(--jsw-blue);
    color: #000;
}

/* Feature Details Section */
.jsw-features-details {
    padding: 20px 0 80px;
    background: #ffffff !important;
    /* Clean, premium white background */
}

.feature-detail-item {
    padding: 60px 0;
    position: relative;
    width: 100%;
}

.feature-detail-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    /* Centered dotted line matching reference */
    max-width: 760px;
    border-top: 1px dashed #214391;
}

.feature-detail-title {
    text-align: center;
    color: var(--jsw-blue);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 40px;
}

/* Row wrapper for circle + card overlap effect - Centered and More Compact */
.feature-detail-row {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 760px;
    /* Matching the dotted line width for consistency */
    margin: 0 auto;
}

/* Dashed circle container — overlaps the pill with a clean color gap */
.feature-detail-circle {
    width: 200px;
    height: 200px;
    min-width: 200px;
    border: none;
    /* Removed thick white border to allow background gap to show */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fbfd;
    /* Matches section background for the "cutout" look */
    position: relative;
    z-index: 2;
}

.feature-detail-circle img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    background: #fff;
    /* Solid white background for the icon */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Icon-specific shadow for depth */
    padding: 10px;
}

/* White perfect pill card overlapping the circle */
.feature-detail-card {
    background: #fff;
    border-radius: 100px;
    padding: 30px 40px 30px 110px;
    /* Adjusted padding for better visual balance */
    flex: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    margin-left: -100px;
    border: none;
    min-height: 140px;
    display: flex;
    align-items: center;
}

/* For reversed rows: circle on right, card on left */
.feature-detail-row-reverse {
    flex-direction: row-reverse;
}

.feature-detail-row-reverse .feature-detail-circle {
    margin-left: 0;
}

.feature-detail-row-reverse .feature-detail-card {
    margin-left: 0;
    margin-right: -100px;
    padding: 30px 110px 30px 40px;
}

.feature-detail-card ul {
    list-style: disc;
    /* Use standard disc for perfect consistency */
    padding-left: 20px;
    /* Proper indentation inside the card */
    margin: 0;
    text-align: left;
}

.feature-detail-card ul li {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 5px;
    position: relative;
}

.feature-detail-card ul li:last-child {
    margin-bottom: 0;
}



/* Custom Footer Styles */
.footer-custom {
    background-color: #001e45;
    color: #fff;
    padding: 40px 0 20px;
    /* Reduced from 60px to shift whole footer up */
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    border-top: 4px solid #d32f2f;
}

.footer-widget {
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .branches-column .footer-widget {
        padding-left: 45px;
    }
}

.footer-widget h4.widget-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: none;
    position: relative;
    padding-bottom: 0;
}

.footer-logo {
    margin-bottom: -30px !important;
    /* Move matter even nearer to logo */
    margin-top: -55px;
    /* Move logo even higher up */
    text-align: left !important;
}

.matterchange {
    margin-top: -55px;
}

.footer-logo img {
    max-width: 250px;
    height: auto;
    display: block;
    margin-left: -35px !important;
    margin-right: 25px;
}

.footer-bottom p {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-widget p {
    line-height: 1.6;
    color: #ccc;
    font-size: 14px;
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-links li a:hover {
    color: #fff;
    text-decoration: underline;
    padding-left: 5px;
}

.social-links-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    /* Don't wrap unless absolutely necessary */
}

.social-links-list li {
    margin: 0;
}

.social-links-list li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links-list li a i {
    width: 45px;
    /* Slightly larger circles */
    height: 45px;
    background: #fff;
    color: #001e45;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    /* No margin needed if no text */
    font-size: 20px;
    /* Larger icon font */
    transition: all 0.3s ease;
}

.social-links-list li a:hover {
    color: #ccc;
}

.social-links-list li a:hover i {
    background: #d32f2f;
    color: #fff;
}

.newsletter-box {
    display: flex;
    align-items: stretch;
    margin-top: 15px;
    max-width: 280px;
}

.newsletter-box input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-right: none;
    color: #fff;
    padding: 10px 15px;
    flex-grow: 1;
    font-size: 14px;
    outline: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-box button {
    background: #fff;
    border: 1px solid #fff;
    color: #d32f2f;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.newsletter-box button:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ccc;
}

/* Responsive Support */
@media (max-width: 1199px) {
    .jsw-logo-section {
        width: 605px;
        min-width: auto;
    }

    .jsw-main-nav-section ul li {
        margin-left: 15px;
    }
}

@media (max-width: 991px) {
    .jsw-top-tier {
        flex-direction: column;
        height: auto;
    }

    .jsw-logo-section {
        width: 100%;
        padding: 10px;
    }

    .jsw-main-nav-section {
        padding: 15px;
        justify-content: center;
    }

    .jsw-main-nav-section ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .jsw-main-nav-section ul li {
        margin: 5px 10px;
    }

    .jsw-bottom-tier {
        padding: 0;
        justify-content: center;
        position: relative;
        overflow: visible;
    }

    .hamburger-bottom {
        display: block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--jsw-blue);
        font-size: 24px;
        cursor: pointer;
        z-index: 1002;
    }

    .jsw-secondary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        z-index: 1001;
    }

    .jsw-secondary-nav.show {
        display: flex;
    }

    .jsw-secondary-nav li {
        width: 100%;
    }

    .jsw-secondary-nav li a {
        padding: 10px;
        text-align: center;
        white-space: normal;
    }
}

/* Ensure smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Heading Stylings */
.jsw-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--jsw-blue);
    text-transform: uppercase;
    margin-top: 12px;
    margin-bottom: 25px;
}

/* New Design Grid Styles */
.design-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 10px 0;
}

.design-item {
    width: 450px;
    margin-bottom: 20px;
}

.design-item a {
    display: block;
    width: 100%;
}

.design-item figure {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.design-item:hover figure {
    border-color: var(--jsw-blue);
    background: #fff;
    transform: translateY(-5px);
}

.design-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.design-item .design-item-content {
    padding: 20px;
    text-align: left;
    background-color: #f8f9fa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.design-item h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.4;
    min-height: 42px;
}

.design-item .btn {
    border: 1px solid var(--jsw-blue);
    color: var(--jsw-blue);
    padding: 7px 35px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: all 0.3s;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
}

.design-item:hover .btn {
    background: var(--jsw-blue);
    color: #fff;
}

/* Breadcrumb Styling */
.breadcrumb {
    border-top: 1px solid #eeeeee;
    padding: 20px 0;
    margin-top: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    list-style: none;
}

.breadcrumb li {
    font-size: 13px;
    color: #999;
    /* Lighter text as requested */
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb li a:hover {
    color: var(--jsw-blue);
    text-decoration: none;
}

.breadcrumb li i {
    font-size: 16px;
    margin-right: 5px;
}

.breadcrumb li+li::before {
    content: ">";
    margin: 0 10px;
    color: #ccc;
    font-size: 12px;
}

.breadcrumb li.active {
    color: #333;
    font-weight: 600;
}

/* Section Separator Line */
.tp-line {
    display: flex;
    width: 100%;
    height: 3px;
    margin-top: 10px;
}

.tp-line-left {
    background-color: var(--jsw-blue);
    flex: 1;
}

.tp-line-right {
    background-color: var(--jsw-red);
    flex: 1;
}

.clear {
    clear: both;
}

/* Modal Styling */
.jsw-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.jsw-modal-container {
    background: #fff;
    width: 90%;
    max-width: 900px;
    position: relative;
    padding: 0;
    /* Header handles padding */
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jsw-modal-header {
    background: #1D4289;
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    position: relative;
}

.jsw-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.jsw-modal-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
    line-height: 1;
}

.jsw-modal-close:hover {
    background: #e30613;
}

.jsw-modal-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.modal-tech-header {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-tech-header img {
    max-width: 100%;
    height: auto;
}

.modal-body-split {
    display: flex;
    gap: 20px;
}

.modal-split-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid #f5f5f5;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.modal-split-item img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    transition: opacity 0.3s ease;
    /* Smooth fade when zoom starts */
}

.img-zoom-lens {
    position: absolute;
    border: 1px solid #d4d4d4;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    cursor: crosshair;
    display: none;
    z-index: 100;
}

.img-zoom-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 50;
    background-repeat: no-repeat;
    background-color: #fff;
    pointer-events: none;
}

.modal-specs-footer {
    text-align: center;
    padding: 20px 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: 'Rajdhani', sans-serif;
    border-top: 1px solid #f5f5f5;
    margin-top: 20px;
}

/* Section Title Styling */
.section-title {
    margin-bottom: 50px;
}

.section-title .title {
    font-size: 38px;
    font-weight: 700;
    color: var(--jsw-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--jsw-red);
}

@media (max-width: 768px) {

    /* hamburger override handled in 991px block below */
    .hamburger {
        display: block;
    }

    .jsw-main-nav-section {
        position: relative;
    }

    .jsw-main-nav-section ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--jsw-blue);
        flex-direction: column;
        z-index: 1001;
    }

    .jsw-main-nav-section ul.show {
        display: flex;
    }

    .jsw-main-nav-section ul li {
        margin: 0;
        width: 100%;
    }

    .jsw-main-nav-section ul li a {
        padding: 10px;
        justify-content: center;
    }

    .modal-body-split {
        flex-direction: column;
    }

    /* Mobile Features Grid - 4 column layout */
    .feature-grid-row {
        gap: 12px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .feature-item {
        width: calc(25% - 12px);
        margin: 0;
        min-width: 80px;
    }

    .feature-icon-circle {
        width: 75px;
        height: 75px;
        margin-bottom: 12px;
    }

    .feature-title {
        font-size: 12px;
        min-height: 26px;
    }

    /* Mobile Feature Detail Items - Smaller */
    .feature-detail-item {
        padding: 30px 0;
    }

    .feature-detail-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .feature-detail-circle {
        width: 90px;
        height: 90px;
        min-width: 90px;
    }

    .feature-detail-row {
        flex-direction: column;
        max-width: 100%;
    }

    .feature-detail-card {
        padding: 20px 20px 20px 20px;
        margin-left: 0;
        margin-top: 15px;
        min-height: auto;
        border-radius: 8px;
    }

    .feature-detail-row-reverse {
        flex-direction: column;
    }

    .feature-detail-row-reverse .feature-detail-card {
        margin-right: 0;
        padding: 20px 20px 20px 20px;
    }

    .feature-detail-card ul li {
        font-size: 13px;
        line-height: 1.4;
    }
}

.footer-widget p {
    margin-top: -5px;
    /* removes default <p> top margin */
}

/* Final Responsive Fixes for Phone View */
@media (min-width: 992px) {
    .header-mobile-right {
        display: none !important;
    }
}

@media (max-width: 991px) {

    /* Make header a block container so both rows stack vertically */
    .jsw-header {
        position: relative !important;
        display: block !important;
    }

    /* ══════════════════════════════════════
       ROW 1: Blue strip – Logo LEFT | Hamburger RIGHT
    ══════════════════════════════════════ */
    .jsw-top-tier {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        height: 55px !important;
        /* Compact mobile navbar */
        min-height: 55px !important;
        background-color: #1D4289 !important;
        /* Changed to blue */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 12px !important;
        position: relative !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    /* Logo block – left side */
    .jsw-logo-section {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 0 !important;
        background: transparent !important;
        position: static !important;
    }

    .jsw-logo-section .desktop-logo {
        display: none !important;
    }

    .mobile-logo {
        display: block !important;
        max-height: 42px !important;
        /* Compact logo for reduced navbar */
    }

    .jsw-logo-section img {
        width: auto !important;
        position: static !important;
        top: auto !important;
        transform: none !important;
        filter: none !important;
    }

    /* Nav section – right side, just holds hamburger on mobile */
    .jsw-main-nav-section {
        flex: 0 0 auto !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        height: 100% !important;
    }

    /* Top hamburger – appears inside the blue bar on the RIGHT */
    .hamburger {
        display: block !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        z-index: auto !important;
        color: #ffffff !important;
        /* Changed to white */
        font-size: 26px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 2px !important;
        line-height: 1 !important;
    }

    /* Hide the desktop nav list – drawer handles mobile navigation */
    .jsw-main-nav-section ul {
        display: none !important;
    }

    /* ══════════════════════════════════════
       ROW 2: Hidden on mobile as per request
    ══════════════════════════════════════ */
    .jsw-bottom-tier {
        display: none !important;
    }

    /* Remove unnecessary white space between header and content in mobile */
    .jsw-hero-slider,
    .breadcrumb-area,
    .about-area,
    .breadcrumb-height,
    .pt-140,
    .pt-100,
    .product-gallery-area,
    .product-detail-area,
    .product-area,
    .gallery-area,
    .contact-area,
    .contact-page-content {
        padding-top: 0 !important;
        /* Removed 5px for exact fit */
        margin-top: 0 !important;
    }

    .product-gallery-area {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }

    .product-gallery-area .section-title {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .product-gallery-area .container {
        padding-top: 0 !important;
    }

    .jsw-hero-container {
        margin-top: 0 !important;
    }

    /* Hide the secondary nav list – shown only when toggled */
    .jsw-secondary-nav {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #1D4289 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        z-index: 5000 !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .jsw-secondary-nav.show {
        display: flex !important;
    }

    /* Secondary nav links */
    .jsw-secondary-nav li {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        width: 100% !important;
        height: auto !important;
    }

    .jsw-secondary-nav li a {
        color: #ffffff !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        display: block !important;
        height: auto !important;
    }

    .jsw-secondary-nav li a:hover {
        color: #ffcccb !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* Download Brochure sub-dropdown */
    .jsw-secondary-nav .dropdown-menu {
        position: static !important;
        background: rgba(0, 0, 0, 0.25) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: none !important;
    }

    .jsw-secondary-nav li.is-open>.dropdown-menu {
        display: block !important;
    }

    .jsw-secondary-nav .sub-navbar li a {
        color: #fff !important;
        padding: 12px 32px !important;
        font-size: 13px !important;
    }

    .jsw-secondary-nav .sub-navbar li a:hover {
        color: #ffcccb !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }

    /* Kill the is-sticky behaviour on mobile (plain stack is enough) */
    .jsw-bottom-tier.is-sticky {
        position: relative !important;
        top: auto !important;
        box-shadow: none !important;
        animation: none !important;
    }

    /* Desktop-only elements off */
    .header-mobile-right {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .footer-custom {
        padding: 50px 25px !important;
        background-color: #001e45 !important;
    }

    .footer-logo {
        margin-top: 0 !important;
        margin-bottom: 25px !important;
        text-align: left !important;
    }

    .footer-logo img {
        margin-left: 0 !important;
        max-width: 220px !important;
    }

    .footer-widget h4.widget-title {
        font-size: 24px !important;
        border-bottom: none !important;
        color: #fff !important;
    }

    .footer-links li a {
        font-size: 18px !important;
    }

    .social-links-list {
        justify-content: flex-start !important;
        gap: 20px !important;
    }

    .feature-grid-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .feature-detail-row,
    .feature-detail-row-reverse {
        flex-direction: column !important;
        align-items: center !important;
    }

    .feature-detail-card {
        margin: 20px 0 0 0 !important;
        width: 100% !important;
    }

    .breadcrumb-area {
        height: 350px !important;
        min-height: 350px !important;
    }

    .jsw-hero-container {
        height: auto !important;
        min-height: 180px !important;
        /* Drastically reduced to prevent gap */
    }

    .jsw-hero-bg {
        height: 100% !important;
        object-fit: cover !important;
    }

    .product-gallery-area {
        margin-top: -65px !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .jsw-top-tier {
        height: 58px !important;
    }

    .jsw-logo-section img {
        max-height: 55px !important;
        /* Larger logo on small screens */
    }

    /* Aggressively remove gap between banner and products */
    .product-gallery-area {
        margin-top: -65px !important;
        padding-top: 0 !important;
    }

    .jsw-hero-container {
        min-height: 180px !important;
    }

    .hamburger {
        font-size: 22px !important;
    }

    .hamburger-bottom {
        font-size: 20px !important;
    }

    .jsw-bottom-tier {
        height: 44px !important;
    }
}