/* C&I Page Styles */
.ci-page {
    width: 100%;
    background: #000;
    color: #fff;
    padding-bottom: 200px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Common Font Classes */
.font-regular-16-new {
    font-size: 16px;
    line-height: 1.5;
}

.font-regular-20-new {
    font-size: 20px;
    line-height: 1.5;
}

.font-bold-16-new {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.font-bold-20-new {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.font-bold-24-new {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.font-bold-52-new {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
}

.font-bold-60-new {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
}

/* ========== Main Banner ========== */
.main-banner {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    min-height: 700px;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 69, 148, 0.8) 0%, rgba(0, 0, 0, 0.1) 81%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.main-banner .banner-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.main-banner .banner-content {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    max-width: 1200px;
}

.main-banner .banner-text {
    color: #fff;
}

.main-banner .banner-title {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: pre-line;
    margin-bottom: 48px;
}

.main-banner .banner-subtitle {
    line-height: 1.5;
    margin-bottom: 52px;
}

.main-banner .banner-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-banner .banner-btn {
    padding: 10px 26px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 100px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 240px;
}

.main-banner .banner-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* Banner Bottom Cards */
.banner-bottom-cards {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 100px;
}

.banner-cards-animate {
    animation: fadeUpIn 1s ease-out 1s both;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    padding: 0;
}

.banner-card-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.banner-card-title {
    color: #fff;
    font-weight: 500;
}

/* ========== Solution For Section ========== */
.solution-for-section {
    padding-top: 148px;
    background: #000;
}

.solution-for-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.solution-for-item {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.solution-for-item:hover {
    transform: translateY(-4px);
}

.solution-for-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 24px;
}

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

.solution-for-item:hover .solution-for-img img {
    transform: scale(1.05);
}

.solution-for-title {
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    padding: 0 8px;
}

/* When only 1 item */
.solution-for-grid .solution-for-item:only-child {
    max-width: 400px;
    margin: 0 auto;
}

/* When only 2 items */
.solution-for-grid .solution-for-item:first-child:nth-last-child(2),
.solution-for-grid .solution-for-item:first-child:nth-last-child(2) ~ .solution-for-item {
    max-width: 500px;
}

/* ========== Reduce Electricity Costs Section ========== */
.reduce-costs-section {
    padding-top: 140px;
    background: #000;
}

.reduce-costs-section .section-title {
    text-align: center;
}

.reduce-costs-desc {
    text-align: center;
    margin-bottom: 50px;
}

.reduce-costs-desc p {
    margin-bottom: 16px;
}

.reduce-costs-desc strong {
    color: #fff;
    font-weight: 700;
}

.reduce-costs-chart {
    width: 100%;
}

.reduce-costs-chart img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========== Reliable Power Supply Section ========== */
.reliable-power-section {
    padding-top: 140px;
    background: #000;
}

.reliable-power-desc {
    text-align: center;
    margin-bottom: 50px;
}

/* Carousel */
.reliable-power-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.reliable-power-carousel .carousel-inner {
    border-radius: 8px;
    overflow: hidden;
}

.reliable-power-carousel .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.reliable-power-carousel .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.reliable-power-carousel .carousel-indicators li {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 6px;
}

.reliable-power-carousel .carousel-indicators li.active {
    background-color: #fff;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.carousel-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-dot.active {
    background: #fff;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Specs */
.reliable-power-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    width: 100%;
}

.reliable-power-specs .spec-item {
    text-align: left;
}

.reliable-power-specs .spec-label {
    color: #646464;
    margin-bottom: 5px;
}

.reliable-power-specs .spec-value {
    color: #fff;
    margin-bottom: 4px;
}

.reliable-power-specs .spec-desc {
    color: #fff;
}

/* When only 1 or 2 specs */
.reliable-power-specs .spec-item:only-child {
    grid-column: 2;
}

/* ========== Smart Energy Management Section ========== */
.smart-energy-section {
    padding-top: 140px;
    background: #000;
}

.smart-energy-subtitle {
    margin-bottom: 50px;
    text-align: center;
}

.smart-energy-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.smart-energy-img {
    width: 100%;
}

.smart-energy-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.smart-energy-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

.smart-energy-item {
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}

.smart-energy-item:before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.6;
}

/* When only 1 item */
.smart-energy-items .smart-energy-item:only-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

/* When only 2 items */
.smart-energy-items .smart-energy-item:first-child:nth-last-child(2),
.smart-energy-items .smart-energy-item:first-child:nth-last-child(2) ~ .smart-energy-item {
    grid-column: span 1;
}

/* ========== Customer Success Stories Section ========== */
.customer-stories-section {
    padding-top: 140px;
    background: #000;
}

.customer-stories-desc {
    text-align: center;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.customer-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.customer-stories-grid.grid-single {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.customer-stories-grid.grid-double {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.story-card {
    border-radius: 8px;
    overflow: hidden;
    background: #1D1D1D;
    transition: all 0.3s ease;
    min-height: 520px;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

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

.story-card-inner:hover {
    text-decoration: none;
    color: inherit;
}

.story-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

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

.story-card-title {
    color: #fff;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card-desc {
    color: #c8c8c8;
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View More */
.customer-stories-more {
    text-align: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding-bottom: 2px;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    transition: opacity 0.3s ease;
}

.view-more-btn:hover {
    text-decoration: none;
    color: #00c85a;
    border-color: #00c85a;
}

.view-more-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.view-more-btn:hover .view-more-arrow {
    transform: translateX(3px);
}

/* ========== Contact Section ========== */
.contact-section {
    padding-top: 140px;
    background: #000;
}

.contact-content {
    display: grid;
    grid-template-columns: calc(60% - 80px) 40%;
    gap: 80px;
}

.contact-text .contact-title {
    color: #fff;
    margin-bottom: 28px;
    text-align: left;
}

.contact-desc {
    color: #fff;
    margin-bottom: 36px;
}

.contact-button {
    display: flex;
    justify-content: flex-start;
}

.contact-btn {
    padding: 17px 26px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 100px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 280px;
    text-align: center;
}

.contact-btn:hover {
    background: #000;
    color: #fff;
}

.contact-img {
    width: 100%;
}

.contact-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========== Responsive - Tablet ========== */
@media (max-width: 1200px) {
    .main-banner {
        min-height: 700px;
        height: calc(100vh - 60px);
    }

    .banner-bottom-cards {
        gap: 40px;
    }

    /* Tablet font adjustments */
    .font-bold-60-new {
        font-size: 48px;
    }

    .font-bold-52-new {
        font-size: 42px;
    }

    .font-regular-20-new {
        font-size: 18px;
    }

    .font-bold-20-new {
        font-size: 18px;
    }

    .font-regular-16-new {
        font-size: 15px;
    }

    .font-bold-16-new {
        font-size: 15px;
    }

    .font-bold-24-new {
        font-size: 22px;
    }
}

/* ========== Responsive - Mobile ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .main-banner {
        min-height: 600px;
        height: calc(100vh - 60px);
    }

    .main-banner .banner-content {
        max-width: 90%;
        top: 30%;
    }

    .main-banner .banner-subtitle {
        margin-bottom: 32px;
    }

    .main-banner .banner-btn {
        min-width: 200px;
        padding: 12px 24px;
    }

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

    /* Mobile font adjustments */
    .font-bold-60-new {
        font-size: 36px;
    }

    .font-bold-52-new {
        font-size: 32px;
    }

    .font-regular-20-new {
        font-size: 16px;
    }

    .font-bold-20-new {
        font-size: 16px;
    }

    .font-regular-16-new {
        font-size: 14px;
    }

    .font-bold-16-new {
        font-size: 14px;
    }

    .font-bold-24-new {
        font-size: 20px;
    }

    .solution-for-section,
    .reduce-costs-section,
    .reliable-power-section,
    .smart-energy-section,
    .customer-stories-section,
    .contact-section {
        padding-top: 100px;
    }

    .banner-bottom-cards {
        gap: 24px;
        bottom: 30px;
    }

    .banner-card-icon {
        width: 16px;
        height: 16px;
    }

    .banner-card-icon img {
        width: 16px;
        height: 16px;
    }

    .banner-card-title {
        font-size: 13px;
    }

    .solution-for-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 32px;
    }

    .solution-for-img {
        height: 150px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
    }

    .contact-img {
        order: 1;
    }

    .contact-text {
        order: 2;
    }

    .contact-text .contact-title {
        text-align: center;
    }

    .contact-button {
        justify-content: center;
    }

    .reliable-power-specs,
    .smart-energy-items {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .customer-stories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }
}

/* ========== Responsive - Small Mobile ========== */
@media (max-width: 480px) {
    .main-banner {
        min-height: 500px;
        height: calc(100vh - 60px);
    }

    .main-banner .banner-content {
        top: 25%;
    }

    .main-banner .banner-subtitle {
        margin-bottom: 24px;
    }

    .main-banner .banner-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 180px;
    }

    .section-title {
        font-size: 24px;
    }

    /* Small mobile font adjustments */
    .font-bold-60-new {
        font-size: 28px;
    }

    .font-bold-52-new {
        font-size: 24px;
    }

    .font-regular-20-new {
        font-size: 14px;
    }

    .font-bold-20-new {
        font-size: 16px;
    }

    .font-regular-16-new {
        font-size: 13px;
    }

    .font-bold-16-new {
        font-size: 13px;
    }

    .font-bold-24-new {
        font-size: 18px;
    }

    .solution-for-section,
    .reduce-costs-section,
    .reliable-power-section,
    .smart-energy-section,
    .customer-stories-section,
    .contact-section {
        padding-top: 60px;
    }

    .banner-bottom-cards {
        bottom: 16px;
        gap: 16px;
    }

    .banner-card-icon {
        width: 14px;
        height: 14px;
    }

    .banner-card-icon img {
        width: 14px;
        height: 14px;
    }

    .banner-card-title {
        font-size: 11px;
    }

    .solution-for-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .solution-for-img {
        height: 120px;
    }

    .contact-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
    }
}
