/* ============================================================
   LANDING — COMMERCIAL & INDUSTRIAL ESS 5MWh
   ============================================================ */

/* ============================================================
   HERO SPLIT SECTION
   ============================================================ */

.ci5-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

/* ---- LEFT: Image panel ---- */
.ci5-hero-img-wrap {
    position: relative;
    overflow: hidden;
    background-color: #b8d9c0;
}

.ci5-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s ease;
}

.ci5-hero-img-wrap:hover .ci5-hero-img {
    transform: scale(1.03);
}

/* ---- RIGHT: Dark panel ---- */
.ci5-hero-panel {
    background-color: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
}

.ci5-hero-panel-inner {
    max-width: 420px;
    width: 100%;
}

/* Label */
.ci5-hero-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: #9ca3af;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Heading */
.ci5-hero-heading {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 500;
    color: var(--color-3);
    line-height: 1.25;
    margin: 0 0 36px 0;
    letter-spacing: -0.3px;
}

/* Button */
.ci5-hero-btn {
    display: inline-block;
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-3);
    border: 1.5px solid var(--color-3);
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.ci5-hero-btn:hover {
    background-color: var(--color-3);
    color: #0d0d0d;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: stack image on top, panel below */
@media (max-width: 860px) {
    .ci5-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ci5-hero-img-wrap {
        min-height: 300px;
        max-height: 420px;
    }

    .ci5-hero-panel {
        padding: 48px 36px;
        justify-content: flex-start;
    }

    .ci5-hero-panel-inner {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .ci5-hero-img-wrap {
        min-height: 220px;
        max-height: 300px;
    }

    .ci5-hero-panel {
        padding: 36px 20px;
    }

    .ci5-hero-label {
        font-size: 10px;
        letter-spacing: 0.9px;
        margin-bottom: 14px;
    }

    .ci5-hero-heading {
        margin-bottom: 28px;
    }

    .ci5-hero-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* ============================================================
   LIQUID COOLING SECTION
   ============================================================ */

.ci5-lc-section {
    background-color: #ffffff;
    padding: 64px 24px;
}

.ci5-lc-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

/* ---- LEFT: Text ---- */
.ci5-lc-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ci5-lc-heading {
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 800;
    color: #0d1117;
    line-height: 1.25;
    margin: 0 0 24px 0;
    letter-spacing: -0.2px;
}

.ci5-lc-desc {
    font-size: clamp(13.5px, 1.5vw, 15px);
    font-weight: 400;
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
}

/* ---- RIGHT: Image ---- */
.ci5-lc-img-wrap {
    overflow: hidden;
    border-radius: 8px;
}

.ci5-lc-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ci5-lc-img-wrap:hover .ci5-lc-img {
    transform: scale(1.03);
}

/* ============================================================
   RESPONSIVE — LIQUID COOLING
   ============================================================ */

@media (max-width: 860px) {
    .ci5-lc-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Image moves below text on tablet/mobile */
    .ci5-lc-img-wrap {
        order: 2;
    }

    .ci5-lc-text {
        order: 1;
    }
}

@media (max-width: 520px) {
    .ci5-lc-section {
        padding: 44px 16px;
    }

    .ci5-lc-container {
        gap: 24px;
    }

    .ci5-lc-heading {
        margin-bottom: 16px;
    }
}

/* ============================================================
   TAB PANE SECTION
   ============================================================ */

.ci5-tabs-section {
    background-color: #ffffff;
    padding: 0 24px 72px;
}

.ci5-tabs-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* ---- Tab Nav ---- */
.ci5-tab-nav {
    display: flex;
    align-items: flex-end;
    gap: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.ci5-tab-btn {
    background: transparent;
    border: 1.5px solid transparent;
    border-bottom: none;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    position: relative;
    bottom: -1px;
    margin-right: 4px;
    line-height: 1;
}

.ci5-tab-btn:last-child {
    margin-right: 0;
}

.ci5-tab-btn:hover {
    color: #16a34a;
}

.ci5-tab-btn.active {
    color: #16a34a;
    font-weight: 700;
    border-color: #16a34a;
    background-color: #ffffff;
    z-index: 1;
}

/* ---- Tab Panels wrapper ---- */
.ci5-tab-panels {
    border: 1.5px solid #16a34a;
    border-radius: 0 8px 8px 8px;
    padding: 36px 40px;
    background: #ffffff;
}

/* ---- Individual Panel ---- */
.ci5-tab-panel {
    display: none;
}

.ci5-tab-panel.active {
    display: block;
}

/* Panel heading */
.ci5-tp-heading {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 800;
    color: #0d1117;
    line-height: 1.3;
    margin: 0 0 18px 0;
    letter-spacing: -0.2px;
}

/* Panel description */
.ci5-tp-desc {
    font-size: 14px;
    color: #16a34a;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

/* Bullet list */
.ci5-tp-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ci5-tp-list li {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — TAB PANE
   ============================================================ */

@media (max-width: 860px) {
    .ci5-tabs-section {
        padding: 0 16px 56px;
    }

    .ci5-tab-panels {
        padding: 28px 24px;
        border-radius: 0 6px 6px 6px;
    }

    .ci5-tab-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .ci5-tab-nav {
        flex-wrap: wrap;
        gap: 4px;
    }

    .ci5-tab-btn {
        border-radius: 6px;
        border-bottom: 1.5px solid #d1d5db;
        bottom: 0;
        flex: 1 1 auto;
        text-align: center;
        font-size: 12px;
        padding: 9px 10px;
    }

    .ci5-tab-btn.active {
        border-color: #16a34a;
    }

    .ci5-tab-panels {
        border-radius: 8px;
        margin-top: 8px;
        padding: 20px 16px;
    }

    .ci5-tp-list li {
        font-size: 13px;
    }
}

/* ============================================================
   SPECS TABLE SECTION
   ============================================================ */

.ci5-specs-section {
    background-color: #ffffff;
    padding: 0 24px 80px;
}

.ci5-specs-container {
    max-width: 1140px;
    margin: 0 auto;
}

.ci5-specs-main-title {
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 800;
    color: #0d1117;
    margin: 0 0 28px 0;
    letter-spacing: -0.2px;
}

/* ---- Controls bar ---- */
.ci5-specs-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #374151;
}

.ci5-specs-show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ci5-select {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    cursor: pointer;
}

.ci5-specs-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ci5-search-input {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    color: #374151;
    width: 180px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ci5-search-input:focus {
    border-color: #16a34a;
}

/* ---- Table wrap ---- */
.ci5-specs-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.ci5-specs-table {
    width: 100%;
    border-collapse: collapse;
}

/* Group header row */
.ci5-spec-group td {
    background-color: #dcfce7;
    color: #166534;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-bottom: 1px solid #bbf7d0;
}

/* Secondary group label (smaller, lighter) */
.ci5-group-sm td {
    background-color: #f0fdf4;
    color: #16a34a;
    font-weight: 600;
    font-size: 13px;
}

/* Data rows */
.ci5-spec-row td {
    padding: 11px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.5;
}

.ci5-spec-row:last-child td {
    border-bottom: none;
}

.ci5-spec-row:nth-child(even) td {
    background-color: #fafafa;
}

.ci5-spec-row:hover td {
    background-color: #f0fdf4;
}

.ci5-spec-key {
    width: 38%;
    font-weight: 500;
    color: #1e293b;
}

.ci5-spec-val {
    color: #4b5563;
}

.ci5-val-green {
    color: #16a34a;
    font-weight: 500;
}

/* ---- Footer: info + pagination ---- */
.ci5-specs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.ci5-pagination {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ci5-pg-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.ci5-pg-btn:hover:not(.disabled) {
    border-color: #16a34a;
    color: #16a34a;
}

.ci5-pg-btn.active {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    font-weight: 700;
}

.ci5-pg-btn.disabled {
    color: #d1d5db;
    cursor: default;
}

/* ============================================================
   RESPONSIVE — SPECS TABLE
   ============================================================ */

@media (max-width: 680px) {
    .ci5-specs-section {
        padding: 0 14px 60px;
    }

    .ci5-specs-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .ci5-search-input {
        width: 100%;
    }

    .ci5-spec-key {
        width: 45%;
    }

    .ci5-spec-row td,
    .ci5-spec-group td {
        padding: 9px 12px;
        font-size: 12.5px;
    }

    .ci5-specs-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
