/* Around theme dropdown integration for SWX Mega Menu */
.navbar .dropdown-menu .swx-mega-menu-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--swx-columns, 3), minmax(0, 1fr)) !important;
    gap: 1.25rem 2rem;
    width: var(--swx-max, 1100px) !important;
    max-width: 95vw;
    margin: 0 auto;
    padding: 1rem 1.25rem !important;
}
.navbar .dropdown-menu .swx-mega-menu-col {
    padding: 0 0.75rem;
}
.navbar .dropdown-menu .swx-mega-menu-list {
    list-style: none !important;
    padding-left: 0 !important;
}
@media (max-width: 991px) {
    .navbar .dropdown-menu .swx-mega-menu-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem !important;
    }
}

/* Mega Menu full-width footer link */
.swx-mega-menu-footer {
    width: 100%;
    text-align: center;
    margin: 1.2rem 0 0.2rem 0;
}
.swx-mega-menu-footer-link {
    display: inline-block;
    font-weight: 600;
    color: #0f2f5c;
    background: #f3f6fa;
    border-radius: 2em;
    padding: 0.5em 1.5em;
    font-size: 1.08em;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.swx-mega-menu-footer-link:hover {
    background: #e0e7f1;
    color: #02aee0;
}
/**
 * ServiceWerx Industries - Default Styles
 * Minimal default styling for industries display.
 * Override these styles in your theme's stylesheet.
 */

/* Modern Industries Grid - Around Theme Style */
.swx-industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.swx-industry-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swx-industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.swx-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.swx-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f5f7fa;
}

.swx-card-image img {
    position: absolute;
    top: 0;
    left: 0;

/* Benefit icon styling for Elementor widget */
.swx-benefit-icon {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 48px;
     height: 48px;
     border-radius: 50%;
     color: #ffffff; /* default for icon (overridden via elementor control) */
     background-color: transparent; /* can be set via elementor control */
     margin-bottom: 12px;
}
.swx-benefit-icon svg {
     width: 24px;
     height: 24px;
}

/* Feature icon styles */
.swx-feature-icon img {
     max-width: 64px;
     height: auto;
     display: inline-block;
     margin-bottom: 12px;
}
.swx-feature-icon .swx-feature-icon-text {
     font-size: 40px;
     display: inline-block;
     margin-bottom: 12px;
}

/* Benefits - icon left layout */
.swx-benefit-item--icon-left {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}
.swx-benefit-item--icon-left .swx-benefit-icon {
    width: 56px;
    height: 56px;
    flex: none;
}
.swx-benefit-item--icon-left .swx-benefit-title {
    margin: 0 0 6px;
}

/* Hero: icon left layout */
.swx-hero-layout-icon_left .swx-hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
}
.swx-hero-layout-icon_left .swx-hero-icon {
    max-width: 160px;
}
/* Vertical alignment variants */
.swx-hero-icon-align-top .swx-hero-content { align-items: start; }
.swx-hero-icon-align-center .swx-hero-content { align-items: center; }
@media (max-width: 768px) {
    .swx-hero-layout-icon_left .swx-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .swx-hero-layout-icon_left .swx-hero-icon {
        margin: 0 auto 20px;
    }
}
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.swx-industry-card:hover .swx-card-image img {
    transform: scale(1.08);
}

.swx-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swx-industry-card:hover .swx-card-overlay {
    opacity: 1;
}

.swx-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.swx-card-icon {
    font-size: 42px;
    margin-bottom: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.swx-card-icon img,
.swx-card-icon svg {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.swx-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: rgb(74,75,101);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.swx-industry-card:hover .swx-card-title {
    color: #0f2f5c;
}

.swx-card-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgb(115,116,145);
    margin: 0 0 16px;
    flex: 1;
}

.swx-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #02aee0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.3s ease;
}

.swx-industry-card:hover .swx-card-more {
    gap: 10px;
}

.swx-card-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.swx-industry-card:hover .swx-card-more svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .swx-industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .swx-industries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .swx-card-content {
        padding: 20px;
    }
    
    .swx-card-title {
        font-size: 20px;
    }
}

/* Legacy Grid Styles (for backward compatibility) */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Mega Menu Grid */

/* --- ServiceWerx Mega Menu Widget --- */
/* --- ServiceWerx Mega Menu Widget --- */
.swx-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(var(--swx-columns, 3), 1fr);
    gap: 2rem;
    max-width: min(var(--swx-max, 1100px), calc(100vw - 2rem));
    margin: 0 auto;
}
/* Center the mega dropdown and prevent viewport overflow */
.navbar .dropdown-menu-lg,
ul.navbar-nav .dropdown-menu-lg {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 100vw;
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
}
.swx-mega-menu-grid.columns-2 { --swx-columns: 2; }
.swx-mega-menu-grid.columns-3 { --swx-columns: 3; }
.swx-mega-menu-grid.columns-4 { --swx-columns: 4; }
.swx-mega-menu-grid.columns-5 { --swx-columns: 5; }
.swx-mega-menu-grid.columns-6 { --swx-columns: 6; }
.swx-mega-menu-col {
    min-width: 0;
    padding: 0 0.5rem;
}
.swx-mega-menu-heading {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.05em;
    letter-spacing: 0.01em;
}
.swx-mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.swx-mega-menu-item {
    margin: 0 0 0.5rem 0;
}
.swx-mega-menu-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    padding: 0.15em 0;
    border-radius: 3px;
    transition: background 0.15s;
}
.swx-mega-menu-item a:hover {
    background: #f5f7fa;
}
.swx-mega-menu-icon img, .swx-mega-menu-icon svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
}
.swx-mega-menu-desc {
    color: #707070;
    font-size: .92em;
    margin-left: 2.1rem;
    margin-top: -0.2em;
}
@media (max-width: 991px) {
    .swx-mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    .swx-mega-menu-col {
        padding: 0;
    }
}

.industry-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.industry-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.industry-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.industry-card:hover .industry-image img {
    transform: scale(1.05);
}

.industry-card-content {
    padding: 30px;
}

.industry-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
}

.industry-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #333;
}

.industry-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 15px;
}

.industry-card-more {
    display: inline-block;
    color: #0066cc;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Industries Menu */
.industries-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

.industry-menu-item {
    border-bottom: none;
}

.industry-menu-item:last-child {
    border-bottom: none;
}

.industry-menu-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    padding: 6.8px 0;
    margin-bottom:0;
    font-size:14px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.industry-menu-item a:hover {
    background-color: #f5f5f5;
}

.industry-menu-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.industry-menu-title {
    font-weight: 600;
    font-size: 16px;
}

/* Single Industry Page */
.industry-single {
    max-width: 1200px;
    margin: 0 auto;
}

.industry-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 60px;
}

.industry-hero-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.industry-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
}

.industry-tagline {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.95;
}

.industry-hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.industry-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.industry-content,
.industry-benefits,
.industry-features,
.industry-testimonial,
.industry-final-cta {
    padding: 60px 20px;
}

.industry-benefits {
    background: #f9f9f9;
}

.industry-final-cta {
    background: #f0f0f0;
    text-align: center;
}

.industry-benefits h2,
.industry-features h2,
.industry-final-cta h2 {
    text-align: center;
    font-size: 36px;
    margin: 0 0 50px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.benefit-item h3 {
    font-size: 20px;
    margin: 0 0 15px;
    color: #333;
}

.benefit-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin: 0 0 15px;
    color: #333;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Testimonial */
.testimonial-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    font-style: italic;
    line-height: 1.8;
    padding: 40px;
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.testimonial-quote p {
    margin: 0 0 20px;
}

.testimonial-quote footer {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button-primary {
    background: #667eea;
    color: #fff;
}

.button-primary:hover {
    background: #5568d3;
}

.button-secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.button-secondary:hover {
    background: #667eea;
    color: #fff;
}

.button-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Archive Page */
.industries-archive .page-header {
    text-align: center;
    padding: 60px 20px;
}

.industries-archive .page-header h1 {
    font-size: 48px;
    margin: 0 0 20px;
}

.industries-archive .page-header p {
    font-size: 20px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Filters */
.industry-filters {
    margin: 40px 0;
    text-align: center;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-list li a {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-list li a:hover,
.filter-list li a.active {
    background: #667eea;
    color: #fff;
}

/* Pagination */
.pagination {
    margin: 60px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #667eea;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .industry-title {
        font-size: 32px;
    }

    .industry-tagline {
        font-size: 18px;
    }

    .industry-hero-description {
        font-size: 16px;
    }

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

    .industry-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        text-align: center;
    }
}

/* ========================================
   Elementor Widget Styles - Industry Hero
   ======================================== */
.swx-hero-wrapper {
    position: relative;
    overflow: hidden;
}

.swx-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.swx-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swx-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.swx-hero-icon {
    font-size: 80px;
    margin-bottom: 20px;
    line-height: 1;
}

.swx-hero-icon img,
.swx-hero-icon svg {
    max-width: 120px;
    max-height: 120px;
}

.swx-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
}

.swx-hero-tagline {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px;
    opacity: 0.95;
}

.swx-hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 30px;
    opacity: 0.9;
}

.swx-hero-cta {
    margin-top: 30px;
}

.swx-hero-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.swx-hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .swx-hero-title {
        font-size: 32px;
    }
    
    .swx-hero-tagline {
        font-size: 18px;
    }
    
    .swx-hero-description {
        font-size: 16px;
    }
    
    .swx-hero-icon {
        font-size: 60px;
    }
}

/* ========================================
   Elementor Widget Styles - Industry Benefits
   ======================================== */
.swx-benefits-wrapper {
    width: 100%;
}

.swx-benefits-section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 50px;
}

.swx-benefits-grid {
    display: grid;
}

.swx-benefit-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.swx-benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.swx-benefit-icon {
    width: 48px;
    height: 48px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
}

.swx-benefit-icon svg {
    width: 24px;
    height: 24px;
}

.swx-benefit-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #333;
}

.swx-benefit-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .swx-benefits-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* ========================================
   Elementor Widget Styles - Industry Features
   ======================================== */
.swx-features-wrapper {
    width: 100%;
}

.swx-features-section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 50px;
}

.swx-features-grid {
    display: grid;
}

.swx-feature-item {
    text-align: center;
    transition: all 0.3s ease;
}

.swx-feature-item:hover {
    transform: translateY(-5px);
}

.swx-feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.swx-feature-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #333;
}

.swx-feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .swx-features-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* ========================================
   Elementor Widget Styles - Industry Testimonial
   ======================================== */
.swx-testimonial-wrapper {
    border-left: 4px solid;
    max-width: 800px;
    margin: 0 auto;
}

.swx-testimonial-icon {
    margin-bottom: 20px;
}

.swx-testimonial-icon svg {
    width: 48px;
    height: 48px;
}

.swx-testimonial-quote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.8;
    margin: 0 0 20px;
}

.swx-testimonial-quote p {
    margin: 0;
}

.swx-testimonial-author {
    font-size: 16px;
    font-style: normal;
}

.swx-testimonial-author strong {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.swx-testimonial-author span {
    display: block;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .swx-testimonial-quote {
        font-size: 18px;
    }
    
    .swx-testimonial-author {
        font-size: 14px;
    }
}
