/* === NON-CRITICAL CSS - Below the Fold & Interactive Elements === */

.text-center {
  text-align: center !important;
}


.card-group {
  display: flex;
  flex-direction: row;
  gap: var(--bs-card-group-gap, 0); /* Optional spacing */
}
.card-group > .card {
  flex: 1 1 0;
  margin-bottom: 0;
}

/* Horizontal centering utility */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Block display utility */
.d-block {
  display: block;
}

/* Dropdown menus - not visible on initial load */
.dropdown > ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    list-style: none;
    padding: 0.25rem 0;
    min-width: 180px;
    display: none;
    z-index: 1020;
    border: 1px solid #444;
    border-radius: 4px;
}

.dropdown:hover > ul {
    display: block;
}

.dropdown ul li {
    position: relative;
}

.dropdown-item {
    padding: 0.25rem 1.25rem;
    color: #fff;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: #333;
    border-left-color: #ff0000;
    padding-left: 1.5rem;
}

/* Mobile navigation interactions */
@media (max-width: 767px) {
    .nav-item {
        width: 100%;
    }

    .nav-link, .dropdown-toggle {
        display: block;
        width: 100%;
        padding: 0.15rem 1.5rem;
        font-size: 1rem;
        line-height: 1.4;
        margin-left: 40px;
    }

    .dropdown > ul {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        margin: 0;
        display: none;
        background-color: #333;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        padding: 0;
    }

    .dropdown.open > ul {
        display: block;
        max-height: 500px;
        padding: 0.5rem 0;
        margin-left: 60px;
    }

    .dropdown-item {
        padding: 0.25rem 2.5rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .nav-links.open .nav-text-mobile {
        display: block !important;
        color: #ffffff !important;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
        line-height: 1.4;
        text-align: center;
    }

    .hide-mobile {
        display: none;
    }

    .btn-danger {
        margin: 0.5rem 0 0 0;
        display: block;
        text-align: center;
        padding: 0.25rem;
        border-radius: 4px;
        font-size: 1.1rem;
        margin-left: 60px;
    }
}

/* Balanced dropdown spacing */
.dropdown-item {
    padding: 0.35rem 1.25rem;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .dropdown-item {
        padding: 0.5rem 1.25rem;
        line-height: 1.5;
    }
}

/* Base Styles - Layout components */
hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Banner Styles */
.banner {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 0.7rem;
    margin: 2rem 0;
    font-weight: bold;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
}

/* Card Styles - Below the fold content */
.card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: var(--transition);
    margin: 1rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-0.25rem);
}

.card-dark {
    background-color: var(--dark-gray);
    color: white;
    max-width: 90%;
    margin: 1.5rem auto;
}

.card-header {
    padding: 1.5rem 1rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body p {
    margin-bottom: 1rem;
}

.card-image {
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card2 {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body2 {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Typography */
h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.card-title .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #800000;
}

.text-success {
    color: var(--success-color);
}

/* Two-column Layout */
.columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 3rem;
    }

    .columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Image Styles */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.responsive-image-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    text-align: center;
}

.responsive-image-2 img {
    width: 105px;
    height: auto;
    display: block;
}

.float-right-image {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.float-left-image {
    float: left;
    margin: 20px 20px 0 0;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .float-right-image, .float-left-image {
        float: none;
        display: block;
        margin: 20px auto;
        max-width: 80%;
        width: 80%;
    }
}

.clearfix-section {
    margin: 2rem 0;
}

.custom-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .custom-image {
        width: 23%;
        float: right;
        margin-left: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .custom-text {
        overflow: hidden;
    }
    
    .float-start {
        float: left;
        margin-right: 1.5rem;
        margin-bottom: 0.5rem;
        width: 20%;
    }
}

/* Advanced CTA button interactions */
.cta-button:active {
    background-color: #0000cc;
    transform: scale(1.02);
}

.cta-button:focus {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .cta-button:hover {
        background-color: #0000ff;
        color: #ffffff;
        transform: scale(1.05);
    }
}

@media (hover: none) and (pointer: coarse) {
    .cta-button:active {
        background-color: #0000cc;
        color: #ffffff;
        transform: scale(1.02);
    }
}

/* List Styles */
.special-list {
    list-style: none;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    padding-left: 0;
}

.special-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: var(--text-1, #222);
}

.special-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0.2em;
    color: var(--primary-color, #cc0000);
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
    width: 1.25rem;
    text-align: center;
}

/* Services Section */
.services {
    margin: 3rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .three-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.text-with-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Blue Section Styles */
.blue-section {
    background-color: var(--blue-dark);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin: 2rem auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.blue-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.blue-section p {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin: 1.5rem 0;
}

/* Quote Container */
.quote-container {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    font-family: Arial, sans-serif;
    margin: 40px;
    display: flex;
    align-items: center;
}

.quote-box {
    border-left: 4px solid red;
    padding: 10px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 20px auto;
}

.quote-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.quote-box p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

/* Stretched Link */
.stretched-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
    content: "";
    background-color: rgba(0,0,0,0);
}

/* Small container adjustment */
.small-container {
    margin: 0 1rem;
}

@media (min-width: 768px) {
    .small-container {
        margin: 0 3rem;
    }
}

/* Read more link style */
.read-more {
    font-style: italic;
    font-weight: bold;
    margin-top: auto;
    padding-top: 1rem;
}

.read-more span {
    color: red;
    font-size: 1rem;
}

/* Three column grid */
.three-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .three-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Styling paragraph */
.sh {
    font-weight: 600;
    font-size: 1.1em;
    color: #8C0E10;
    margin-right: 5px;
}

.black-dots {
    list-style-type: disc;
}

.bullet-point {
    margin-bottom: 1em;
}

.line-head-bold {
    font-size: 1.25rem;
    font-weight: 600;
}

.highlight {
    background-color: black;
    color: white;
    padding: 2px 5px;
}

.lead-paragraph::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.75rem solid red;
    border-top: 0.375rem solid transparent;
    border-bottom: 0.375rem solid transparent;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.triangle-icon {
    width: 0;
    height: 0;
    border-left: 0.75rem solid red;
    border-top: 0.375rem solid transparent;
    border-bottom: 0.375rem solid transparent;
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Back to Top Button */
.back-to-top {
    background-color: black;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
    transition: transform ease-in-out 0.2s;
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 100;
    width: 57px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 4px;
}

.back-to-top span {
    font-size: 10px;
    font-weight: bold;
}

.back-to-top:hover {
    transform: scale(1.2);
    background-color: #006bb3;
    color: white;
}

/* Content Area - Responsive */
.content {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}



.content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

@media (max-width: 767px) {
    .content {
        padding: 1.5rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    font-size: 1rem;
}

@media (max-width: 767px) {
    footer {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Navbar Footer */
.nav {
    list-style: none;
    color: #fff;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nav li {
    display: inline;
    color: #fff;
}

.nav a {
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    color: #fff !important;
}

.nav a:hover {
    background-color: #800000;
}

/* List spacing */
li:not(.navbar-nav li) {
    margin-bottom: 9px;
}

.details {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--gray-color, #ddd);
    border-radius: var(--border-radius, 0.375rem);
    background-color: var(--light-color, #f8f9fa);
    padding: 0.75rem 1rem;
    transition: box-shadow 0.2s ease-in-out;
}

.details[open] {
    box-shadow: var(--box-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
}

/* Q&A */
details {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
}

summary {
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background: white;
    border-radius: 5px;
    list-style: none;
    display: flex;
    align-items: center;
}

summary::before {
    content: "▶";
    color: #0044cc;
    font-size: 16px;
    margin-right: 10px;
}

details[open] summary::before {
    content: "▼";
    color: #d9534f;
}

.details-content {
    background-color: #e6f2ff;
    padding: 10px;
    border-radius: 5px;
}

/* Fix for list items in The Sparqtron EMS Advantage section */
.ems-advantage-section ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-bottom: 20px;
}

.ems-advantage-section li {
    margin-bottom: 12px;
    line-height: 1.6;
}


/* Bootstrap 5 Padding Utilities in Pure CSS */
/* All sides */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Padding top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

/* Padding bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Padding left (start) */
.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: 0.25rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }

/* Padding right (end) */
.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: 0.25rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.pe-4 { padding-right: 1.5rem !important; }
.pe-5 { padding-right: 3rem !important; }

/* Horizontal (left + right) */
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

/* Vertical (top + bottom) */
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }


/* margin-top utility classes */
.mt-0     { margin-top: 0 !important; }
.mt-1     { margin-top: 0.25rem !important; }  /* 4px */
.mt-2     { margin-top: 0.5rem !important; }   /* 8px */
.mt-3     { margin-top: 1rem !important; }     /* 16px */
.mt-4     { margin-top: 1.5rem !important; }   /* 24px */
.mt-5     { margin-top: 3rem !important; }     /* 48px */
.mt-auto  { margin-top: auto !important; }


/* margin-bottom utility classes */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }  /* $spacer * 0.25 */
.mb-2 { margin-bottom: 0.5rem !important; }   /* $spacer * 0.5 */
.mb-3 { margin-bottom: 1rem !important; }     /* $spacer */
.mb-4 { margin-bottom: 1.5rem !important; }   /* $spacer * 1.5 */
.mb-5 { margin-bottom: 3rem !important; }     /* $spacer * 3 */
.mb-auto { margin-bottom: auto !important; }

/* Custom CTA Button */
.cta-btn {
  display: inline-block; /* Ensures proper sizing */
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background-color: black;
  color: white; /* Always visible text */
  border-radius: 6px;
  border: 2px solid #d4a017;
  font-weight: 600;
  text-decoration: none; /* Remove underline */
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}

.cta-btn:hover {
  background-color: blue;
  transform: translateY(-2px); /* Small hover lift */
}

.cta-btn:active {
  transform: translateY(0); /* Press-down effect */
}

/* Arrow inside button */
.cta-arrow {
  color: red;
  font-weight: bold;
  margin-left: 5px;
}

/*  Text-wrap-around-img */
  .clearfix::after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* IMAGE HANDLING */
  .image-text-content {
    overflow: hidden;
    margin: 30px 0;
  }
  
  .wrap-image {
    max-width: 35%;
    margin: 20px;
    float: left;
  }
  
  .wrap-image.right {
    float: right;
  }
  
  .custom-image {
    margin: 20px;
    max-width: 35%;
  }
  /* END - Text-wrap-around-img */

  .black-dots li::before{.black-dots{list-style-type:disc}
  .bullet-point{margin-bottom:1em}
  .line-head-bold{font-size:1.25rem;font-weight:600}content:'■';color:#000;display:inline-block;width:1em;margin-left:-1em}h3.square-before{color:blue;font-weight:700}
  
  .black-square::before{content:"■ ";color:#000;font-size:1em;margin-right:5px;text-align:left; margin-top: 40px;}
  .red-square::before{content:"■ ";color:#cc0000;font-size:1em;margin-right:5px;text-align:left; margin-top: 40px;}