:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --accent-color: #2ecc71; /* Industrial Green */
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
}

/* Force dark theme onto the body and overwrite Bootstrap defaults */
body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* Base custom container boundary rules */
.site-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Hero Section Formatting */
.hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 80px 20px 60px 20px !important;
    border-bottom: 1px solid #2d2d2d !important;
}

.hero-tagline {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
    letter-spacing: -1px !important;
    color: #fff !important;
}

.hero-sub {
    font-size: 1.25rem !important;
    color: var(--text-muted) !important;
    max-width: 750px !important;
    margin-bottom: 35px !important;
}

/* Button Frameworks */
.cta-group {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}

.btn {
    padding: 14px 28px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: 1.1rem !important;
    transition: opacity 0.2s !important;
    box-sizing: border-box !important;
    text-align: center !important;
    display: inline-block !important;
}

.btn-primary {
    background-color: var(--accent-color) !important;
    color: #000 !important;
    border: 2px solid var(--accent-color) !important;
}

.btn-secondary {
    color: var(--text-color) !important;
    border: 2px solid #444 !important;
    background-color: transparent !important;
}

.btn-card {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    font-size: 1rem !important;
    padding: 10px 20px !important;
    background-color: transparent !important;
    color: var(--text-color) !important;
    border: 2px solid #444 !important;
}

    .btn-card:hover {
        border-color: var(--text-color) !important;
    }

.btn:hover {
    opacity: 0.9 !important;
}

/* Section Layout Elements */
.section-wrapper {
    padding: 40px 0 !important;
}

.section-title {
    text-align: center !important;
    font-size: 1.8rem !important;
    margin-bottom: 40px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* Isolated Motion Unseen CSS Grid System bypassing Bootstrap Card limits */
.mu-grid {
    display: grid !important;
    gap: 25px !important;
    margin-bottom: 20px !important;
    grid-template-columns: 1fr !important; /* Mobile layout fallback string */
}
/* Replace the column media query section inside your site.css with this: */
@media (min-width: 768px) {
    .col-2 {
        display: flex !important;
        flex-direction: row !important;
        gap: 25px !important;
    }

    .col-3 {
        display: flex !important;
        flex-direction: row !important;
        gap: 25px !important;
    }
    /* Forces the cards to split the horizontal space evenly instead of capturing 100% width */
    .col-2 .card {
        flex: 1 !important;
        width: calc(50% - 13px) !important;
    }

    .col-3 .card {
        flex: 1 !important;
        width: calc(33.33% - 17px) !important;
    }
}

/* Individual Card Structural Adjustments */
.card {
    background-color: var(--card-bg) !important;
    padding: 30px !important;
    border-radius: 8px !important;
    border: 1px solid #2d2d2d !important;
    color: var(--text-color) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.card-featured {
    border-color: var(--accent-color) !important;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.15) !important;
}

.card-portal-highlight {
    border-color: #3498db !important;
}

.badge {
    position: absolute !important;
    top: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: var(--accent-color) !important;
    color: #000 !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
}

.card h3 {
    margin-top: 0 !important;
    font-size: 1.4rem !important;
    color: #fff !important;
}

.card-featured h3 {
    color: var(--accent-color) !important;
}

.card-portal-highlight h3 {
    color: #3498db !important;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 5px 0 0 0;
    color: #fff;
}

.card-meta {
    color: var(--accent-color) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
}

.card-portal-highlight .card-meta {
    color: #3498db !important;
}

.card p {
    color: var(--text-muted) !important;
    margin: 0 0 30px 0 !important;
    font-size: 0.95rem !important;
}

.per-unit {
    font-size: 1rem !important;
    font-weight: normal !important;
    color: #888888 !important;
}

/* Progressive Disclosure Dropdowns Styling */
.accordion-section {
    margin: 60px 0 !important;
}

details {
    background-color: var(--card-bg) !important;
    padding: 15px 20px !important;
    border-radius: 6px !important;
    margin-bottom: 12px !important;
    border: 1px solid #2d2d2d !important;
    cursor: pointer !important;
}

summary {
    font-weight: 600;
    font-size: 1.1rem;
    outline: none;
    color: #fff;
}

details[open] summary {
    color: var(--accent-color) !important;
    margin-bottom: 10px;
}

details p {
    color: var(--text-muted) !important;
    margin: 0;
    padding-top: 5px;
}

/* Cinematic Video Playback Overlay Background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

/* Modal Structural Wrapper */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: #000;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
}

    .modal-content video {
        width: 100%;
        height: auto;
        display: block;
    }

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    line-height: 1;
    transition: color 0.2s;
}

    .close-button:hover {
        color: var(--accent-color);
    }

/* FORCE HORIZONTAL COLUMNS BY OVERRIDING BOOTSTRAP CELL-BOUNDARIES */

.site-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    display: block !important;
}

/* Force 3 side-by-side columns on all laptop, desktop, and tablet displays */
@media (min-width: 768px) {
    .site-container .mu-grid.col-3 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 20px !important;
        width: 100% !important;
    }

    /* Force 2 side-by-side columns for the Data Access section */
    .site-container .mu-grid.col-2 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 20px !important;
        width: 100% !important;
    }

    /* Recalculate inner widths so columns break out of Bootstrap's block layout */
    .site-container .mu-grid.col-3 .card {
        flex: 1 !important;
        width: calc(33.333% - 14px) !important;
        max-width: calc(33.333% - 14px) !important;
    }

    .site-container .mu-grid.col-2 .card {
        flex: 1 !important;
        width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

/* Mobile responsive fallback layout string */
@media (max-width: 767px) {
    .site-container .mu-grid.col-3,
    .site-container .mu-grid.col-2 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .site-container .mu-grid .card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important;
    }
}